Bug 472794 - WindowHeap-based effects briefly freeze during animations
Summary: WindowHeap-based effects briefly freeze during animations
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-window-management (show other bugs)
Version: 5.27.8
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2023-07-30 10:07 UTC by Norbert Pfeiler
Modified: 2023-09-25 20:04 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 Norbert Pfeiler 2023-07-30 10:07:09 UTC
STEPS TO REPRODUCE
1. toggle overview (doesn’t matter if by key or screen corner)

OBSERVED RESULT
lags before and during animation
freeze 1 second after animation is done

EXPECTED RESULT
no lags

SOFTWARE/OS VERSIONS
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
no issue on X11
Comment 1 Nate Graham 2023-09-07 19:54:31 UTC
When you say, "freeze 1 second after animation is done" does this mean that after Overview finishes its opening animation, you're not able to use it?
Comment 2 Norbert Pfeiler 2023-09-07 20:23:04 UTC
i have this bound to the windows key

opening animation:
i’m moving my cursor in circles
holding down the windows key: no lag
letting go of the windows key: 
- ~0.5s lag (cursor doesn’t move)
- animation starts, proceeds and ends (most of the time smoothly)
- ~1s of normal behavior (moving cursor shows highlights hovered windows)
- another ~0.5s lag
- from now on hover works fine without lags
- however, adding or removing a letter from the search that filters any of the windows (requiring an animation) always lags <0.5s
- on the very first input the letter also appears twice (doesn’t happen after removing all the letters and typing it again)

closing animation:
holding down the windows key: no lag
letting go of the windows key: 
- animation starts, proceeds somewhat unsmooth and ends
- ~1s of normal behavior
- 2s of freeze

i have 4k and FHD+ screens with 10+3 windows open, atm
running on amdgpu
Comment 3 Nate Graham 2023-09-08 17:08:35 UTC
Ok, so it's not freezing, it's lagging. Thanks.

Do the Present Windows and Desktop Grid effects exhibit the same issue?
Comment 4 Bug Janitor Service 2023-09-23 03:46:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Norbert Pfeiler 2023-09-24 22:08:27 UTC
(In reply to Nate Graham from comment #3)
> Do the Present Windows and Desktop Grid effects exhibit the same issue?
they do


PS: Regarding the »freezing« vs. »lagging« distinction – I used »freeze« to convey a complete, albeit temporary, halt in function of the complete UI. In my view, it’s not synonymous with mere lagging. I can’t move my cursor, it’s not only the animation itself that has an issue. Trying to use my desktop with that, »freeze« felt more apt to describe it.