Skip to content

Replace setInterval with setTimeout for animation loop #19

@vorg

Description

@vorg

Can we consider replacing setInterval(function() {
obj.redraw();
}, 1000 / fps);

with something similar to requestAnimFrame where setTimeout would be called at the end of obj.redraw? Right now if I render something heavy that takes more that 1000 / fps milliseconds the app becomes so unresponsive that is even hard to close it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions