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

VSync #44

Open
moggers87 opened this issue May 11, 2023 · 1 comment
Open

VSync #44

moggers87 opened this issue May 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@moggers87
Copy link
Owner

Remove the frame limiting code (currently set to 50fps for historical reasons¹) and pass the VSync flag to SDL_CreateRenderer. I'm fairly sure that the framerate and animation/physics are decoupled, but that needs double checking.

¹: the original author wrote the current version Apricots in 2002/2003 in the UK and probably had a CRT. The UK uses a grid frequency of 50Hz and so the CRT would have a refresh rate of 50Hz

@moggers87 moggers87 added the enhancement New feature or request label May 11, 2023
@moggers87
Copy link
Owner Author

I'm fairly sure that the framerate and animation/physics are decoupled

It is not. The results of changing TICK_INTERVAL are hilarious.

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

No branches or pull requests

1 participant