mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-29 11:07:16 +02:00
A typo in the changes to our userland timekeeping classes caused us to make a syscall every time we want to check whether a timer is ready to fire in `EventLoopManagerUnix::wait_for_events()`. Instead, only use coarse time, and get it immediately before it is used in both cases. This reduces CPU usage by an (eyeballed) 20-30% while playing back video with VideoPlayer.
17 KiB
17 KiB