Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b376a535708e386590eeeb28fe63ec54c56723a1
      
https://github.com/WebKit/WebKit/commit/b376a535708e386590eeeb28fe63ec54c56723a1
  Author: Ian Grunert <[email protected]>
  Date:   2025-03-31 (Mon, 31 Mar 2025)

  Changed paths:
    M Source/WTF/wtf/RunLoop.h
    M Source/WTF/wtf/win/RunLoopWin.cpp

  Log Message:
  -----------
  [Win] Improvements to run loop timer resolution
https://bugs.webkit.org/show_bug.cgi?id=284823

Reviewed by Yusuke Suzuki.

WM_TIMER has a 10ms resolution, which means we can't hit 60fps on
requestAnimationFrame. By using MsgWaitForMultipleObjectsEx and
maintaining our own timer queue we can get better timer resolution.

* Source/WTF/wtf/RunLoop.h:
* Source/WTF/wtf/win/RunLoopWin.cpp:
(WTF::RunLoop::wndProc):
(WTF::RunLoop::run):
(WTF::RunLoop::msTillNextTimer):
(WTF::RunLoop::fireTimers):
(WTF::RunLoop::cycle):
(WTF::RunLoop::TimerBase::timerFired):
(WTF::RunLoop::TimerBase::start):
(WTF::RunLoop::TimerBase::stop):

Canonical link: https://commits.webkit.org/292977@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to