Bug 455529

Summary: Show FPS effect - anything over 100 is shown as 100fps
Product: [Plasma] kwin Reporter: andy <andy>
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate, xaver.hugl
Priority: NOR    
Version First Reported In: 5.24.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: fps indicator showing 100

Description andy 2022-06-18 06:16:26 UTC
Created attachment 149877 [details]
fps indicator showing 100

SUMMARY
Anything over 100fps is shown as 100fps on the screen.  Also the last "0" in 100 is slightly cut off (see screenshot).

Have 165Hz monitor and using

KWIN_X11_REFRESH_RATE=165000
KWIN_X11_NO_SYNC_TO_VBLANK=1
KWIN_X11_FORCE_SOFTWARE_VSYNC=1

If I run an intense shader I can see the numbers dip below 100 (e.g. down to 60), but when running at high framerate it doesn't show numbers higher than 100.

STEPS TO REPRODUCE
1. Setup a screen with >100Hz refreshrate
2. Enable FPS effect

OBSERVED RESULT
FPS indicator show "100"

EXPECTED RESULT
FPS indicator shows e.g. "165"

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.15.46.1-lts
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION
Comment 1 andy 2022-07-18 01:22:30 UTC
Now seeing up to the max "165" I'm expecting in the fps effect, albeit with 3rd number partially cut off, /w KDE Plasma 5.25.3, KDE Frameworks 5.96.0