Skip to content

Instantly share code, notes, and snippets.

@partkyle
Forked from robashton/gist:874187
Created March 28, 2012 05:50
Show Gist options
  • Save partkyle/2224038 to your computer and use it in GitHub Desktop.
Save partkyle/2224038 to your computer and use it in GitHub Desktop.
Another naive game loop
function runApplication(){
setInterval(doGameLoop, 1000 / 30);
}
function doGameLoop(){
doLogic();
renderScene();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment