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.

Press f to fast-forward time in the debug mode.

Compatibility: Chrome 41, Firefox 36, IE 11.