3 ms·
It "eats" almost all my processor..
by galfarragem 14y ago
It "eats" almost all my processor..
- gren 14y agoMmh unfortunately requestAnimationFrame() seems to be very "greedy", it seems its strategy is to consume as much resource as possible (if the render() is not enough fast).
- RoboTeddy 14y agoIn most browsers, requestAnimationFrame tries for 60fps. That means that if your program blocks on the cpu for more than 1000/60 = 17ms while it's rendering a frame, you'll be at 100% usage