-
Notifications
You must be signed in to change notification settings - Fork 636
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
FemtoVG / Windows: Window content lag when resizing window #5563
Comments
I can't quite reproduce this, but I guess the way the GL driver handles surface resizing depends also on the driver here. I'm curious, is this the same if you do a release build? |
Yes, exactly the same on --release build |
Just wild guess, maybe this reference from iced is related to this issue: iced-rs/iced#1203 |
is the problem hapenning with both the femtovg and skia renderer? |
If this also happens with |
Tests using Slint v1.7.2 renderer-femtovg ------> lags like shown in video |
Thank you for testing. Interesting that this is specific to FemtoVG then - hard to image why... unless this is "simply" a performance issue. When resizing the window with femtovg, do you see also a spike in CPU usage compared to Skia? |
I did a test here: https://uploadnow.io/f/Gc8790p |
True, that's a little higher, but not by that much. I looked at the code I don't failing to find a good explanation here. When resizing with FemtoVG and with Skia OpenGL, we call exactly the same code to resize the surface. |
@teknalb I ran into strange things, that have led me maybe there is something like slint's eco mode, and window resizing not captured as some interaction with window content, so call for screen update is not invoked in time. |
Slint v1.6.0
Rust v1.79.0
lag.mp4
The text was updated successfully, but these errors were encountered: