mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-03 05:12:55 +00:00
We trigger update_timers_and_animations() every time the event loop wakes up. If there's a real animation in the UI going on, that'll also trigger a request_redraw() call and all will be well. But when the only source of animation is set_has_active_animations() from RenderingMetricsCollector, then we might end up in a situation where the event loop is woken up before the rendered frame is on the screen, which means we invoke update_timers_and_animations(), but we won't render because the previous frame isn't shown yet. When it is shown and our presentation callback is invoked, has_active_animations() is false again. So instead, remember if we need to re-render once after rendering() and use that to decide if we need to re-render in the presentation callback. |
||
|---|---|---|
| .. | ||
| calloop_backend | ||
| display | ||
| LICENSES | ||
| renderer | ||
| calloop_backend.rs | ||
| Cargo.toml | ||
| display.rs | ||
| drmoutput.rs | ||
| fullscreenwindowadapter.rs | ||
| lib.rs | ||
| mouse-pointer.svg | ||
| noop_backend.rs | ||
| README.md | ||
NOTE: This library is an internal crate of the Slint project.
This crate should not be used directly by applications using Slint.
You should use the slint crate instead.
WARNING: This crate does not follow the semver convention for versioning and can
only be used with version = "=x.y.z" in Cargo.toml.