News for hackers. Stuff that matters.
Re:Illuminated.js – 2D lights and shadows rendering engine f... by galfarragem on Friday May 11, 2012 @05:10AM (#3958340)
It "eats" almost all my processor..
Re:Illuminated.js – 2D lights and shadows rendering engine f... by gren on Friday May 11, 2012 @05:24AM (#3958378)
Mmh 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).
Re:Illuminated.js – 2D lights and shadows rendering engine f... by RoboTeddy on Friday May 11, 2012 @05:31AM (#3958396)
In 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