Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.