-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
I think it would be easier (and maybe better) to just always run the app at 60(ish) FPS, this is what works best with PIXI.
So just
var animate = function() {
requestAnimFrame(animate);
renderer.render(stage);
}
requestAnimFrame(animate);
This solves a lot of dependency problems, where every object that updates has to call the animate function in main. I think WebGL is smart enough to just don't go crazy when it isn't needed.