Closed Justyna-JustCode closed 3 months ago
Thanks for filling a bug.
(I cannot reproduce the hanging on Linux/X11 with winit. So it is probably a problem specific to window.) Would you be able to use a debugger and get a stack trace while the process is hanging?
performance on Windows is not great, to be honest 🙈
Is that a debug or release build?
Would you be able to use a debugger and get a stack trace while the process is hanging?
Is this one fine?
Is that a debug or release build?
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 https://github.com/slint-ui/slint/issues/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 :wink: ). Also, the overall performance gets much better.
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:
https://github.com/slint-ui/slint/assets/21989150/6671c128-cefb-47ab-9439-c4fc7b98cb9e
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 🙈