We implemented the world in the web worker. The main thread (renderer) is stepped by a requestAnimationFrame (raf). How should the world be stepped?
move them synchronously. Raf issues postMessage to worker to step the world.
move them independently. Use a timeout in the worker with interval 1000/60. May be interval needs to be a 1000/(60*2)
move them independently but do not let the world to go ahead too much. Not sure I understand this solution but it is what cannon.js does in this example
This issue may depend on the design of #4 for variable timeframe physics.
We implemented the world in the web worker. The main thread (renderer) is stepped by a requestAnimationFrame (raf). How should the world be stepped?
This issue may depend on the design of #4 for variable timeframe physics.