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 getRefreshRate #95

Merged
merged 1 commit into from
Jan 23, 2025
Merged

ADD getRefreshRate #95

merged 1 commit into from
Jan 23, 2025

Conversation

ninovanhooff
Copy link
Collaborator

@ninovanhooff ninovanhooff commented Dec 28, 2024

Until implemented in C:

https://devforum.play.date/t/getrefreshrate-in-c/20746

I think the api is straitforward enough to assume the if it gets added to C eventually, it'll have the same signature and we can transparently remove this stopgap local bookkeeping solution. API also matches the lua api

The big advantage of implementing this in playdate-nim rather thhan game code is that this way it is guaranteed that the value is in sync with the actual refreshrate, since there is only 1 possible codepath. ie. it is not possible to call setRefreshRate this way without also updating the variable

@ninovanhooff ninovanhooff merged commit a174d0d into samdze:dev Jan 23, 2025
4 checks passed
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