Bug 448473 - Frame rate varies between 28 and 48 while a maximized window is focused
Summary: Frame rate varies between 28 and 48 while a maximized window is focused
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: input (show other bugs)
Version: 5.23.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2022-01-14 16:05 UTC by Patrick Silva
Modified: 2022-01-26 16:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2022-01-14 16:05:48 UTC
SUMMARY
According to 'Show fps' effect enabled in 'Desktop Effects' KCM, when my desktop is focused, frame rate is 58.
However, when System Settings is maximized and focused, frame rate is 48, and when Konsole is maximized and focused, frame rate is 28. Furthermore, mouse pointer movement feels laggy. Tried all 'Latency' settings available in Compositor KCM, but nothing changes.

STEPS TO REPRODUCE
1. use Wayland session
2. enable 'Show fps' effect in Desktop Effects KCM
3. observe the frame rate while your desktop is focused, maximized Konsole is focused, maximized System Settings is focused

OBSERVED RESULT
frame rate is lower than normal, laggy mouse pointer movement

EXPECTED RESULT
 in my case, constant 60 fps (refresh rate is 60 Hz in Display Configuration KCM)

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.90
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.0-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 2 × Intel® Celeron® CPU G1820 @ 2.70GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics
Comment 1 Patrick Silva 2022-01-14 16:08:09 UTC
journalctl log says:

kwin_wayland[6083]: kwin_libinput: Libinput: event4  - Logitech USB Keyboard: client bug: event processing lagging behind by 22ms, your system is too slow
Comment 2 Nate Graham 2022-01-14 21:37:07 UTC
Input handing is known to be non-ideal, yeah. I think it's being worked on.
Comment 3 Vlad Zahorodnii 2022-01-26 16:17:49 UTC
laggy input: was fixed

lower frame rate: the show fps measures the compositing frame rate, it's not the same as the output refresh rate, if there's nothing to paint, the compositing frame rate will be lower