Re:What Spectre and Meltdown Mean for WebKit
by andrewmcwatters on Tuesday January 09, 2018 @07:13PM
(#16111439)
Timing behavior in literally any game.
Re:What Spectre and Meltdown Mean for WebKit
by iainmerrick on Wednesday January 10, 2018 @05:01AM
(#16113757)
Does the timer need to be much higher resolution than the frame rate? If so, why?
Maybe you want to measure the frame rate precisely? That is certainly something you can do, but not usually something you need to do.
For WebGL, don't you just rely on requestAnimationFrame to call you at the right times, and draw your frame as quickly as possible? What's the benefit of being able to measure the frame time to the nearest microsecond, rather than the nearest millisecond?