Bug 476570 - Bad frametime with Nvidia 545.29.02 on X11
Summary: Bad frametime with Nvidia 545.29.02 on X11
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 5.27.9
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-05 04:00 UTC by duncanyoyo1
Modified: 2023-11-06 15:38 UTC (History)
2 users (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 duncanyoyo1 2023-11-05 04:00:09 UTC
SUMMARY

Since updating to 545.29.03 kwin seems to have bad frametimes, making everything seem stuttery or laggy.

There are moments where it will be smooth, but then it goes right back to stuttering. 

***
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
***


STEPS TO REPRODUCE
1. Use Nvidia card with 545.29.02
2. Watch any kwin animation or move a window, etc.


OBSERVED RESULT
Stutter/lag

EXPECTED RESULT
Smooth animations

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.27.9
(available in About System)
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 6.111.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION
X11

Not my thread, but I don't appear to be the only one encountering this issue.
https://www.reddit.com/r/archlinux/comments/17nrbcg/everything_is_stuttery_after_the_last_upgrade_on/
Comment 1 duncanyoyo1 2023-11-05 16:20:30 UTC
After doing some more digging, it seems to be somehow related to vsync. It seems like the framerate is getting stuck at 1/2 of what it should be. E.g. my 75Hz panel is showing ~38FPS.

Changing the latency option in Settings > Display and Monitor > Compositor does not make a difference.

It seems to be kwin as when I disable compositing, the issue goes away entirely. Same when gaming with the compositor off. No issues. 

Also I have KDE Frameworks Version: 5.111.0. somehow hit 6 by accident.
Comment 2 Zamundaaa 2023-11-06 15:24:44 UTC
This seems to be caused by the NVidia driver update and affects other compositors too, so please report this to NVidia
Comment 3 duncanyoyo1 2023-11-06 15:34:34 UTC
I haven't noticed it with compton or with Mutter, do you see somewhere people are reporting the issue with other compositors? 

The nvidia bug report is all KDE DEs.
Comment 4 Zamundaaa 2023-11-06 15:38:04 UTC
yes, here's someone reporting issues with Sway: https://www.reddit.com/r/archlinux/comments/17nrbcg/comment/k7uo45b/?utm_source=share&utm_medium=web2x&context=3

In general, if things break after a driver update, please report the problem to the driver vendor first. Especially in the case of proprietary drivers there's rarely anything we can do about it.