You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following doesnt affect CPU usage when busy is false.
Spinner {
indeterminate: true;
visible: busy;
}
I would expect Widgets that have opacity = 0 to not be drawn and not affect performance.
Also, maxing out a CPU core to display a Spinner seems a bit overkill.
The text was updated successfully, but these errors were encountered:
The workaround here is to do visible: opacity > 0;
I wonder if there should be an optimization in the renderer for this to not visit elements that have a 0 opacity.
ogoffart
changed the title
Spinner counts as visible when opacity is 0.0
Renderer still visit elements with zero opacity
Sep 9, 2024
Items that are zero opacity will still have a width and height though? So say it's a grid, setting visible false will free up a space. While opacity zero correctly keeps that grid space full. But showing nothing.
Rust on Windows 11.
Using the code below to be able to fade Spinner in and out based on busy, CPU usage is high when busy is false.
The following doesnt affect CPU usage when busy is false.
I would expect Widgets that have
opacity = 0
to not be drawn and not affect performance.Also, maxing out a CPU core to display a Spinner seems a bit overkill.
The text was updated successfully, but these errors were encountered: