diff --git a/src/content/newsletters/2024-10-31.mdx b/src/content/newsletters/2024-10-31.mdx index be34ff0..bb0b4f1 100644 --- a/src/content/newsletters/2024-10-31.mdx +++ b/src/content/newsletters/2024-10-31.mdx @@ -29,6 +29,12 @@ We've added two new board members: - [Mike Shaver](https://ladybird.org/posts/mike-shaver-joins-board/): a browser industry veteran, former VP of Engineering at Mozilla, Director of Engineering at Facebook, and many other things. Mike is a hardcore engineering leader and will help us raise the bar for Ladybird and ourselves. +### Fixing excessing repainting by locking refresh rate + +Until recently, we used a "push" model for repainting. Any event that might invalidate rendering, like scrolling a page, would schedule event loop processing to perform style, layout, or painting updates if necessary. Repainting in this fashion often resulted in excessive work, as we produced more frames than the display could render. + +This month, we solved this issue by switching to a "pull" model, where the repainting task is always scheduled 60 times per second and performs style, layout, and paint updates if necessary. Making this change also aligned us more closely with the model described in the HTML specification. + ### Credits We thank the following people who contributed code to Ladybird in October 2024: