Using the startMainLoop function and LoadingBar class
The optional debug mode bar on the top shows a log of render/update frames the main loop has processed.
- Green lines are updates which were rendered to the screen.
- Orange lines are updates which were not rendered to the screen.
- White lines are frames on which the game state was not updated.
Press f to fast-forward time in the debug mode.
Compatibility: Chrome 41, Firefox 36, IE 11.