-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI hanging on Windows when multiple components are created #5338
Comments
Thanks for filling a bug. (I cannot reproduce the hanging on Linux/X11 with winit. So it is probably a problem specific to window.)
Is that a debug or release build? |
Is this one fine? TRACE
Of course, release is better than debug, but I meant for a release build. To be honest, the release build on Windows is worse than the debug build on Linux. |
The problem seems to be the accessibility code. Maybe the same as #5041 |
I can confirm that turning off the accessibility feature resolves the problem (although I had to figure out how to do this myself - either I'm blind, or the instructions on how to do this are not mentioned anywhere in the docs 😉 ). |
I'll close this as a duplicate of #5041, and the code should be better now. |
Windows 11
Slint 1.6 + Rust
When running our app on Windows (it seems to work just fine on Linux), the performance is poor when resizing the window.
I tried to narrow the problem down, and came up with this example:
One issue is that the items are unnecessarily re-created when the width changes, even when the model (
root.items-count
) stays the same. This is most probably the same as #3953. However, this is not the only problem.The main issue is that after changing the width of the window multiple times (click and move around for a while), the application gets hanged (after releasing the mouse). It seems that the hang duration is connected to how long we've been moving around and how "heavy" the component is. The funny thing is that the UI is actually updating during the resize (well... partially, e.g. the spinner is stopped), so it seems there's nothing to do by the app during the hang.
See the video:
explorer_Vi2USZyJWS.mp4
EDIT: I forgot to mention that the video is captured on a debug build. A release build is slightly more performant, so you just need to move around longer 😉
I tried it both with
FemtoVG
andSkia-OpenGL
renderers with no difference. Basically, performance on Windows is not great, to be honest 🙈The text was updated successfully, but these errors were encountered: