Bug 474044 - Enter Animation has low fps
Summary: Enter Animation has low fps
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (show other bugs)
Version: master
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-09-02 01:12 UTC by Fushan Wen
Modified: 2024-01-02 16:35 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0
Sentry Crash Report:
qydwhotmail: Wayland+
qydwhotmail: X11+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fushan Wen 2023-09-02 01:12:10 UTC
SUMMARY
The enter animation has abnormal low fps, while the exit animation is smooth.


STEPS TO REPRODUCE
1. Press Meta+W to open Overview
2. Press Esc to exit Overview
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: kwin_wayland at 91f027be5181739003e412f50dfe76502f11d52f
KDE Frameworks Version: 
Qt Version: 6.5.2

ADDITIONAL INFORMATION
When opening Overview, journalctl reports:

```
9月 02 09:04:40 ZHAN66 kwin_wayland_wrapper[16321]: amdgpu: amdgpu_cs_ctx_create2 failed. (-13)
9月 02 09:04:40 ZHAN66 kwin_wayland_wrapper[16321]: amdgpu: amdgpu_cs_ctx_create2 failed. (-13)
9月 02 09:04:40 ZHAN66 kwin_wayland[16321]: Could not create pipeline cache lock file '/home/qydw/.cache/kwin/qtpipelinecache-x86_64-little_endian-lp64/qqpc_opengl.lck'
9月 02 09:04:41 ZHAN66 kwin_wayland[16321]: Could not create pipeline cache lock file '/home/qydw/.cache/kwin/qtpipelinecache-x86_64-little_endian-lp64/qqpc_opengl.lck'
9月 02 09:04:41 ZHAN66 kwin_wayland[16321]: Could not create pipeline cache lock file '/home/qydw/.cache/kwin/qtpipelinecache-x86_64-little_endian-lp64/qqpc_opengl.lck'
```
Comment 1 Nate Graham 2023-09-02 04:32:50 UTC
Is this really a Qt6 issue? I can reproduce it in Plasma 5. See Bug 455780 and Bug 459467.
Comment 2 Fushan Wen 2023-09-03 04:19:51 UTC
Yes, the fps is signification lower than Plasma 5, on both X11 and Wayland
Comment 3 Nate Graham 2023-09-06 21:48:16 UTC
Interesting. For me it's no worse on Plasma 6 Wayland than it was on Plasma 5 Wayland.
Comment 4 Niccolò Venerandi 2023-09-25 11:14:49 UTC
Git commit 028dd552cfb9d826b40b9620d869c98d2aa3dca3 by Niccolò Venerandi.
Committed on 25/09/2023 at 13:14.
Pushed by niccolove into branch 'master'.

Merge desktop grid and overview together with a new three-state design

Merges the desktop grid and overview effects together in a new three-state one;
you can switch between them with a certain shortcut or gesture, and you can also
still access either the desktop grid or overview directly.

Default shortcuts are also updated to be Meta+G for Grid, Meta+W for Overview,
Meta+Tab to switch between the three states and Meta+Shift+Tab to cycle in the
opposite direction.
Related: bug 460661, bug 460774, bug 456572, bug 449601, bug 450262, bug 449801, bug 461510, bug 463886, bug 459754, bug 459749, bug 459748, bug 459467
FIXED-IN: 6.0

M  +2    -0    CMakeLists.txt
A  +7    -0    kconf_update/CMakeLists.txt
A  +20   -0    kconf_update/kwin-6.0-overview-activities-shortcuts.py
A  +11   -0    kconf_update/kwin.upd
M  +16   -3    src/libkwineffects/effecttogglablestate.cpp
M  +3    -1    src/libkwineffects/effecttogglablestate.h
M  +0    -1    src/plugins/CMakeLists.txt
D  +0    -49   src/plugins/desktopgrid/CMakeLists.txt
D  +0    -127  src/plugins/desktopgrid/desktopgrid_config.cpp
D  +0    -48   src/plugins/desktopgrid/desktopgrid_config.h
D  +0    -206  src/plugins/desktopgrid/desktopgrid_config.ui
D  +0    -32   src/plugins/desktopgrid/desktopgridconfig.kcfg
D  +0    -9    src/plugins/desktopgrid/desktopgridconfig.kcfgc
D  +0    -250  src/plugins/desktopgrid/desktopgrideffect.cpp
D  +0    -99   src/plugins/desktopgrid/desktopgrideffect.h
D  +0    -18   src/plugins/desktopgrid/main.cpp
D  +0    -92   src/plugins/desktopgrid/metadata.json
D  +0    -306  src/plugins/desktopgrid/qml/DesktopView.qml
D  +0    -328  src/plugins/desktopgrid/qml/main.qml
M  +27   -6    src/plugins/overview/kcm/overvieweffectkcm.cpp
M  +15   -1    src/plugins/overview/kcm/overvieweffectkcm.ui
M  +3    -0    src/plugins/overview/overviewconfig.kcfg
M  +229  -24   src/plugins/overview/overvieweffect.cpp
M  +37   -16   src/plugins/overview/overvieweffect.h
M  +44   -36   src/plugins/overview/qml/DesktopBar.qml
M  +541  -193  src/plugins/overview/qml/main.qml
M  +24   -18   src/plugins/private/qml/WindowHeapDelegate.qml
M  +1    -0    src/plugins/windowview/qml/main.qml
M  +0    -2    src/plugins/windowview/windowvieweffect.cpp

https://invent.kde.org/plasma/kwin/-/commit/028dd552cfb9d826b40b9620d869c98d2aa3dca3
Comment 5 Fushan Wen 2023-09-28 13:47:47 UTC
Not fixed, and becomes worse after the new overview effect is merged.
Comment 6 Prajna Sariputra 2023-11-03 04:13:55 UTC
I think I'm also experiencing this issue, I also see the `amdgpu: amdgpu_cs_ctx_create2 failed. (-13)` error messages while triggering overview/desktop grid combined effect, and the animations (especially concerning the desktop grid) feels rather choppy, certainly more so than in Plasma 5.27.9.

I compiled Plasma 6 using kdesrc-build, KWin is currently at commit abf642d42e8189deaabf1999661e83aab25b99fa in the ~/kde/src/kwin folder, and my GPU is the AMD Radeon 680M (integrated with the AMD Ryzen 7 6800H), with Mesa 23.2.1, kernel 6.5.9, Qt 6.6.0, on Arch Linux. I also only tested with Wayland for now, so not sure how it looks with X11.
Comment 7 Prajna Sariputra 2023-11-04 08:40:54 UTC
Turns out that the issue I am seeing is in fact a different problem, specific to touchpad gestures and the animation speed setting, I have filed bug 476536 for that, apologies.
Comment 8 Fushan Wen 2024-01-02 16:35:51 UTC
Recently the performance has become better