Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automatic frameskip support #29

Open
JD557 opened this issue Aug 10, 2020 · 0 comments
Open

Add automatic frameskip support #29

JD557 opened this issue Aug 10, 2020 · 0 comments

Comments

@JD557
Copy link
Owner

JD557 commented Aug 10, 2020

I think it should be easy to add a frameskip definition to the RenderLoop. If some frame takes too long to render, the RenderLoop just has to switch the canvas to a FrameSkipCanvas that ignores any rendering operations (clear(Backbuffer), putPixel,redraw, ...) and applies all other operations on the real canvas.

This might need some smart logic to avoid constant frameskipping (maybe setting a maxFrameskip instead of frameskip).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant