Bug 488865 - Stuttering widget/button popup animation
Summary: Stuttering widget/button popup animation
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 6.1.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-21 06:00 UTC by Miroslav Jarý
Modified: 2024-10-18 07:38 UTC (History)
4 users (show)

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


Attachments
Recording of the stuttering (452.55 KB, video/webm)
2024-06-26 18:04 UTC, Miroslav Jarý
Details
kwinoutputconfig.json causing the stuttering issue (24.57 KB, application/json)
2024-07-06 15:42 UTC, Miroslav Jarý
Details
Stuttery Animations (565.10 KB, video/webm)
2024-09-29 08:11 UTC, siddharth.manthan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Jarý 2024-06-21 06:00:00 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
If I click on a button on a panel that can be expanded to show additional info, the opening animation is quite laggy and bugged (see attached video). The worst case is with the sysmonitor widget, although opening e.g. Application launcher or "Show hidden icons".
Closing animation seems to be affected as well, but the buginess is less noticeable.

Note: In the video, it is not as noticeable, but when OBS is running in the background, the animations seem much smoother than when it is closed. That's why I couldn't record the bug with it, but I had to use Plasma's screencast

OBSERVED RESULT
Popup animations stutters and sometimes glitches out.

EXPECTED RESULT
Popup animations will be smooth.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.6.34-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 12 × 13th Gen Intel® Core™ i5-13420H
Memory: 15,4 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: LENOVO
Product Name: 82XV
System Version: LOQ 15IRH8
Comment 1 Nate Graham 2024-06-21 20:06:36 UTC
If you put `KWIN_DRM_DISABLE_TRIPLE_BUFFERING=1` in your /etc/environment file and restart the system, does the problem go away?
Comment 2 Miroslav Jarý 2024-06-21 20:12:45 UTC
Unfortunately, there is no difference when I apply this var & reboot; the issue persists.
Comment 3 Nate Graham 2024-06-25 20:34:11 UTC
Can you attach the video you said was going to be attached? I think it got lost in transit.
Comment 4 Miroslav Jarý 2024-06-26 18:04:44 UTC
Created attachment 171029 [details]
Recording of the stuttering
Comment 5 Nate Graham 2024-06-26 20:37:39 UTC
Thanks. Looks weird, maybe even a GPU driver glitch since I see your system is quite new.

Does it reproduce in a new clean user account with no customizations?
Comment 6 Miroslav Jarý 2024-06-27 13:02:32 UTC
Interesting.. I cannot reproduce it on a newly created user.

I'm now trying to find out what setting causes the bug, as it seems to have more layers to it (e.g. switching the theme to Breeze does reduce the bugginess a bit on my main account, but switching the theme on the new account does not introduce the issue).
Comment 7 Miroslav Jarý 2024-07-06 14:35:22 UTC
Quick update: I am unable to replicate it tweaking the settings via GUI, but if I copy files from .config to a newly created user, the stuttering returns. I'll continue my investigation and will post more info ASAP.

Also, I've noticed that the stutter is not limited to the panel; when e.g. I trigger the "logout/shutdown" fullscreen window, the initial fade in seems laggy too.
Comment 8 Miroslav Jarý 2024-07-06 15:41:49 UTC
After a while, I finally figured it out! It seems that something is wrong with my "kwinoutputconfig.json" file, which I suppose stores information about monitor layouts.

I would try to fix it, but I've spent so much time finding the cause of this issue, that I'll probably take the lazy way, and just delete it (and reconfigure my monitors again). Of course, if there will be a need to pinpoint the actual setting in the future, that causes this, I can try my best. For others, I've included the file in the attachments above.
Comment 9 Miroslav Jarý 2024-07-06 15:42:17 UTC
Created attachment 171428 [details]
kwinoutputconfig.json causing the stuttering issue
Comment 10 Afmer 2024-07-07 11:40:23 UTC
I have the same problem, but deleting the "kwinoutputconfig.json" file did not help me. Even when creating a new user with an empty .config, the problem also remains. But what is most important is that there is no such problem on X11. Only on Wayland
Comment 11 Afmer 2024-07-07 11:58:33 UTC
Rolling back Nvidia drivers from version 555 to 550 helped me
Comment 12 siddharth.manthan 2024-09-29 08:11:02 UTC
I am also facing this issue.

Info : 
Distro : Fedora 41 Beta (Plasma 6.2 Beta)
CPU : Amd 5600H GPU : Hybrid (AMD Vega 7 iGPU + Nvidia RTX 3050 Mobile)
Refresh Rate : 120Hz
Adaptive Sync : Always
Comment 13 siddharth.manthan 2024-09-29 08:11:34 UTC
Created attachment 174192 [details]
Stuttery Animations
Comment 14 siddharth.manthan 2024-09-29 10:21:51 UTC
This happens with both nvidia open drivers (560 series) and with nouveau drivers.
Comment 15 siddharth.manthan 2024-10-18 07:38:04 UTC
The issue fixed itself after I turned off adaptive sync.