libretro / libretro/RetroArch

RA/Wayland : vertical frequency applied internally but no screen mode switch

Open
#13,288 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug: vulkan bug: wayland de - kde distro: ubuntu linux gpu api: vulkan platform: linux
Dominant language
C
Stars
14.1k
Forks
2.2k
Avg merge
7h 35m
Merged PRs (30d)
51

Description

Hi ! Trying to minimize latency as much as possible (for cores which are not optimal, like puae, as it doesn't support runahead), I was suggested to switch to Wayland + Vulkan and using a single buffering mode with no VSync.

For some reason, there is no tearing when using single buffering under Wayland. Which means, 20 ms won on 50 Hz cores !

This issue is the following :

- when a core override is set, indicating a custom vertical frequency, it is applied by RA (internal rendering), however it doesn't trigger a monitor mode switch (which remains at the desktop frequency)

(for instance, by default, my monitor is at 144 Hz. I load the UAE core with a 50 Hz freq. override. In the video settings, the current vertical freq. is indeed 50 Hz but the monitor freq. is still 144 Hz)

however, under X, a custom freq. is both applied to RA and triggers a mode switch.

Configuration is : latest SNAP packages, KDE Neon (Ubuntu 20.04 based), Vulkan, AMD GPU, Plasma/Wayland.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how RetroArch applies core-override vertical frequency values under Wayland and compare that path with the working X display-mode switch. Reproduce the configuration with Vulkan, single buffering, and a 50 Hz override on a 144 Hz desktop; done means the monitor mode changes to the override frequency as it does under X.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.