Created
July 3, 2013 03:24
-
-
Save danro/5915214 to your computer and use it in GitHub Desktop.
enterFrame / tram.frame() loop example.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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