Skip to content

Always run at 60 FPS #3

@qurben

Description

@qurben

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions