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

Needs a framerate limiter #24

Closed
Interrupt opened this issue Jun 12, 2018 · 2 comments
Closed

Needs a framerate limiter #24

Interrupt opened this issue Jun 12, 2018 · 2 comments

Comments

@Interrupt
Copy link
Owner

Right now the game runs as fast as it can, we should probably either try to VSYNC (via SDL OpengGL?) or limit the game loop so that it's not rendering at 800fps

@haudan
Copy link

haudan commented Jun 15, 2018

Good idea, but make this optional. Some people prefer an unlimited frame rate.

@Interrupt
Copy link
Owner Author

A good solution here might be to use OpenGL to do the final call to draw pixels to the screen from the SDL surface, that way we could turn on VSync and let GPU hardware manage things for us.

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

2 participants