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

Regulate emulator speed #28

Merged
merged 4 commits into from
Aug 3, 2022
Merged

Regulate emulator speed #28

merged 4 commits into from
Aug 3, 2022

Conversation

lilweege
Copy link
Contributor

@lilweege lilweege commented Aug 3, 2022

Addresses #26 and #11

A few optimizations in 645b9b6, 1521577, and d63386b.

In 486d862, drawing is separated from update. Chrono is used in the main loop to regularly call to update and draw.

This optimization is subtle, but in theory still beneficial
.at performs bound checks while operator[] does not. If the index would go out of bounds, this might be an issue, however we can probably assume this is safe :^)
The target frequency and framerate are now individually addressable
@sam-astro sam-astro merged commit c789de8 into sam-astro:main Aug 3, 2022
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