Files
ladybird/Libraries/LibWeb/HTML
Andreas Kling 4d27e9aa5e LibWeb: Make setInterval() reuse the timer to reduce drift
Instead of creating a new single-shot timer every time a setInterval
timer reschedules itself, we now use a repeating Core::Timer internally.

This dramatically reduces timer drift, since the next timeout is now
based on when the timer fired, rather than when the timer callback
completed (which could take arbitrarily long since we run JS).

It's not perfect, but it's a huge improvement and allows us to play
DiabloWeb at full framerate (20 fps).
2025-12-01 19:58:47 +01:00
..
2025-08-23 16:04:36 -06:00
2025-08-23 16:04:36 -06:00
2024-11-25 21:13:53 +01:00
2025-08-08 10:23:17 +02:00