Open lobabob opened 8 years ago
Web Workers are probably our best bet for the logic loop. Web workers will run asynchronously and not block the render loop.
Won't Web Workers use something like setInterval still though?
This has been changed to be part of the grand refactoring.
This also includes refactoring how calcInterval for Player works
Also, we can do web workers when they're actually needed. Web workers are currently overkill for our super simple game loop
The Logic Loop currently uses SetInterval which is not very consistent. This needs to be fixed.