Skip to content
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

Open
teknalb opened this issue Jul 6, 2024 · 11 comments
Open

FemtoVG / Windows: Window content lag when resizing window #5563

teknalb opened this issue Jul 6, 2024 · 11 comments
Labels
a:backend-winit Winit backend (mS,mO) a:renderer-femtovg Femtovg renderer (mS) bug Something isn't working

Comments

@teknalb
Copy link
Contributor

teknalb commented Jul 6, 2024

Slint v1.6.0
Rust v1.79.0

lag.mp4
@tronical
Copy link
Member

tronical commented Jul 8, 2024

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?

@teknalb
Copy link
Contributor Author

teknalb commented Jul 8, 2024

Yes, exactly the same on --release build

@teknalb
Copy link
Contributor Author

teknalb commented Jul 8, 2024

Just wild guess, maybe this reference from iced is related to this issue: iced-rs/iced#1203

@ogoffart ogoffart added bug Something isn't working a:renderer-femtovg Femtovg renderer (mS) a:backend-winit Winit backend (mS,mO) and removed a:renderer-femtovg Femtovg renderer (mS) labels Aug 15, 2024
@ogoffart
Copy link
Member

is the problem hapenning with both the femtovg and skia renderer?

@tronical
Copy link
Member

If this also happens with renderer-skia as well as renderer-skia-opengl, then perhaps this is similar to #5791.

@teknalb
Copy link
Contributor Author

teknalb commented Aug 15, 2024

Tests using Slint v1.7.2

renderer-femtovg ------> lags like shown in video
renderer-software ------> no lag
renderer-skia-opengl --> no lag
renderer-skia -----------> weird subtle scaling issue when resizing
renderer-vulkan --------> (panic) windows.rs:32:13: Unable to locate LLVM installation

@tronical tronical added the a:renderer-femtovg Femtovg renderer (mS) label Aug 15, 2024
@tronical tronical changed the title Window content lag when resizing window FemtoVG / Windows: Window content lag when resizing window Aug 15, 2024
@tronical
Copy link
Member

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?

@teknalb
Copy link
Contributor Author

teknalb commented Aug 15, 2024

I did a test here: https://uploadnow.io/f/Gc8790p
Looks like femtovg uses a bit more CPU than other ones

@tronical
Copy link
Member

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.

@Enyium
Copy link
Contributor

Enyium commented Sep 11, 2024

@teknalb:

renderer-skia -----------> weird subtle scaling issue when resizing

Maybe like in #5765?

@lmaxyz
Copy link

lmaxyz commented Sep 11, 2024

@teknalb
Is it still reproduces if you add some real-time animation (for example permanent boxes background changing)?

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.
For example, in some environment "real-time" animation has lags if you don't interact with window content, but if you do flicking or scrolling lags disappears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:backend-winit Winit backend (mS,mO) a:renderer-femtovg Femtovg renderer (mS) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants