You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: