Skip to content

Instantly share code, notes, and snippets.

@rezoner
Created March 9, 2017 19:22
Show Gist options
  • Save rezoner/006321324826fdef19b9a5ecc738bf96 to your computer and use it in GitHub Desktop.
Save rezoner/006321324826fdef19b9a5ecc738bf96 to your computer and use it in GitHub Desktop.
/* You can reach absolute boundaries of game loop using events API. */
var app = playground({
});
app.on("step", function() {
stats.begin();
});
app.on("afterpostrender", function() {
stats.stop();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment