Skip to content

Instantly share code, notes, and snippets.

@Joncom
Created November 30, 2015 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Joncom/e12b70cec53df547de59 to your computer and use it in GitHub Desktop.
Save Joncom/e12b70cec53df547de59 to your computer and use it in GitHub Desktop.
Manually Set FPS in ImpactJS
// This is how to manually set the frames per second in ImpactJS.
setTimeout(function() {
var fps = 60;
ig.system.stopRunLoop();
window.setInterval( ig.system.run.bind(ig.system), 1000/fps );
}, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment