mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 17:37:33 +02:00
Previously a fixed-rate paint refresh timer kept queueing rendering update tasks at the maximum configured frame rate, regardless of whether anything had actually changed. This wasted CPU on idle pages, which spend most of their time in a steady state where no style, layout, or paint work is needed. Replace the repeating timer with a single-shot frame timer driven by PageClient::request_frame(). A rendering update is now scheduled only when something requires one. The configured maximum frame rate is preserved as a ceiling on how closely consecutive frames can follow each other.
91 KiB
91 KiB