Glenn Fiedler's fixed timestep with fake threads
- by kaoD
I've implemented Glenn Fiedler's Fix Your Timestep! quite a few times in single-threaded games.
Now I'm facing a different situation: I'm trying to do this in JavaScript. I know JS is single-threaded, but I plan on using requestAnimationFrame for the rendering part.
This leaves me with two independent fake threads: simulation and rendering (I…