Skip to content

Instantly share code, notes, and snippets.

@danro
Created July 3, 2013 03:24
Show Gist options
  • Save danro/5915214 to your computer and use it in GitHub Desktop.
Save danro/5915214 to your computer and use it in GitHub Desktop.
enterFrame / tram.frame() loop example.
// render loop for more performant drawing updates
function renderLoop () {
tram.frame(renderLoop);
// do your render updates here.
}
// start render loop
tram.frame(renderLoop);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment