News for hackers. Stuff that matters.
Re:A first-person engine in 265 lines of JS by hunterloftis on Wednesday June 04, 2014 @01:33AM (#7844172)
It's #2. Redrawing at 60hz (or as close as the machine can come) is what hits the cpu so hard.
Re:A first-person engine in 265 lines of JS by s-macke on Wednesday June 04, 2014 @03:04AM (#7844352)
No, I don't use requestAnimationFrame right now. I think when I wrote it, it was not supported by IE. But can't remember.

I calculate as close as the machine can but with a window.setTimeout(Update, 0); in order to be responsive.