-
Notifications
You must be signed in to change notification settings - Fork 503
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
Changing the window size during automatic layout will cause font jitter and blur. #5258
Comments
Thanks for filling a bug. |
sure import { Button, VerticalBox, ScrollView } from "std-widgets.slint";
export component AppWindow inherits Window {
VerticalBox {
ScrollView {
VerticalBox {
Text {
text: "first first first first first first first first first first first";
}
Text {
text: "second second second second second second second second second second";
}
}
}
}
} If you quickly change the size of the window, you will find the problem. |
I can reproduce this. The So from what I can see, it jitters when using |
For the OpenGL renderer, the difference is the timing when |
Commit 1e450ab originally fixed this. Meanwhile, after many refactorings, this doesn't work anymore for the FemtoVG renderer. That's because the contents placement (or layer's contents gravity) is set before the hidden layer NSOpenGLContext creates is associated with the view. For the Skia GL surface that already works, but for clarify the code is moved into the same location. For Skia Metal rendering, apply the same on the metal layer (through the view). For this to work the contents scale also needs to be applied. To avoid further visual effects, the scale needs to be applied as early as possible, so apply it right after creating the surface and latest at rendering time. Fixes #5258
Commit 1e450ab originally fixed this. Meanwhile, after many refactorings, this doesn't work anymore for the FemtoVG renderer. That's because the contents placement (or layer's contents gravity) is set before the hidden layer NSOpenGLContext creates is associated with the view. For the Skia GL surface that already works, but for clarify the code is moved into the same location. For Skia Metal rendering, apply the same on the metal layer (through the view). For this to work the contents scale also needs to be applied. To avoid further visual effects, the scale needs to be applied as early as possible, so apply it right after creating the surface and latest at rendering time. Fixes #5258
Area.mp4
This problem will not affect normal use, but I still hope to get any solution.
Very good GUI library, thank you for your work.
The text was updated successfully, but these errors were encountered: