mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Fix animation smoothness when using requestAnimationFrame. Previously, the flow for ticking animations was: Compositor -> Constellation -> Layout -> Script However, this means that the compositor <-> layout messages can thrash, meaning layout thread is very rarely idle. This means that the script thread (which joins on the layout thread during reflow) was unable to execute and run rAF callbacks. With this change, the flow is now: Compositor -> Constellation -> Script (when rAF is active). Compositor -> Constellation -> Layout (when transitions / animations are active and no rAF is present). This makes rAF based animation *much* smoother. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9858) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
Cargo.toml | ||
compositor.rs | ||
compositor_layer.rs | ||
compositor_thread.rs | ||
constellation.rs | ||
delayed_composition.rs | ||
headless.rs | ||
lib.rs | ||
pipeline.rs | ||
sandboxing.rs | ||
scrolling.md | ||
surface_map.rs | ||
timer_scheduler.rs | ||
touch.rs | ||
windowing.rs |