Skip to content

Instantly share code, notes, and snippets.

@robashton
Created March 17, 2011 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save robashton/874187 to your computer and use it in GitHub Desktop.
Save robashton/874187 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