Summary: | Windowed Vulkan applications are limited to 58 FPS in XWayland | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | oemshani |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | nate, xaver.hugl |
Priority: | NOR | ||
Version First Reported In: | 5.24.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
oemshani
2022-02-10 17:53:41 UTC
Are native Wayland applications also affected? You could for example test Xonotic with $ GALLIUM_HUD=fps SDL_VIDEODRIVER=wayland xonotic-sdl Or does it really only affect Vulkan applications? Nevermind, I can reproduce. At least sort of - it works correctly on my 60Hz laptop (exactly 60fps) but on my desktop (120Hz display) I also only see 58-59Hz. Making the window fullscreen and back to windowed makes it work correctly as well though. When I resize the vkcube window it's random whether or not the refresh rate fits or not. This 17ms constant is where the 58-59fps comes from: https://gitlab.freedesktop.org/xorg/xserver/-/blob/master/hw/xwayland/xwayland-present.c#L47 So either Xwayland gets no frame callbacks or it ignores them. As glxgears is not affected (at least for me), I think it's safe to assume that the bug is in Xwayland. I opened https://gitlab.freedesktop.org/xorg/xserver/-/issues/1309, you can add your information there if you want |