Repository navigation
Sidebar animation stuttering problem #3352
Replies: 1 comment
Tracked in #3353. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
The sidebar in qui can be collapsed and expanded, and when it does it animates the ui with it, but the current animation causes some large stutters, especially when on the main torrents view. I see this issue on a M1 Pro MacBook Pro with Orion(WebKit) the issue seems less obvious on Firefox and Chrome, but they still have the stuttering problem, and according to the devtools, the main bottleneck is the layout step, where it drops ~6 frames (120fps) for a few steps in a row. My proposed fix would be to change the current way it animates, currently (on desktop) it has a hidden parent with overflow-hidden and a width of zero that expands to it's correct size when it expands, this causes a lot of layout shifts that need to be continuously recalculated, so my fix which hasn't been fully made/formulated will be to use gpu-accelerated styles and composition to properly shift the layout without the lengthy style recalculation issues.
(I was told in the Discord server that the bot will turn this into a GitHub issue so I can contribute my fix when it is ready)
Thank you for the great tool!
Steps to reproduce
Environment
Log link
No response
Relevant logs
No response
Checklist
All reactions