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

Optimizations and added a target FPS #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

millennIumAMbiguity
Copy link
Contributor

Optimes some parts of the code and replaced the sleep with code that waits until the next draw time.

@hlouzada
Copy link
Contributor

hlouzada commented Feb 8, 2021

Hi @millennIumAMbiguity I added the sleep and was planning to substitute it with #13. Do u think this is better than my approach? Or a merge between them? I was studying game loops and was trying to get a similar approach.

@millennIumAMbiguity
Copy link
Contributor Author

Hi @hlouzada, I am unaware of your method. However, "high_resolution_clock" sounds like it's more accurate than my method.

Optimes some parts of the code and replaced the sleep with code that waits until the next draw time.
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

Successfully merging this pull request may close these issues.

2 participants