Bug 480987

Summary: Show FPS increases CPU usage of kwin_wayland by around 20%.
Product: [Plasma] kwin Reporter: feature
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor CC: kde
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description feature 2024-02-07 06:37:43 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Show FPS increases CPU usage of kwin_wayland by around 25%.

STEPS TO REPRODUCE
1. In settings select window management
2. Select Desktop effects
3. Enable Show FPS

OBSERVED RESULT
CPU usage increases by about 20%

EXPECTED RESULT
CPU usage should not noticeably increase.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Comment 1 Vlad Zahorodnii 2024-02-12 09:08:48 UTC
The show fps triggers constant repaints. kwin seems to spend most of its time in the driver code.