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

fix framerate limiter #1632

Merged
merged 2 commits into from
May 1, 2024
Merged

fix framerate limiter #1632

merged 2 commits into from
May 1, 2024

Conversation

daver32
Copy link
Contributor

@daver32 daver32 commented Apr 16, 2024

Problem description

The framerate limiter doesn't work when inputs are being sent (eg mouse cursor moving over the window), because glfwWaitEventsTimeout returns early when it encounters an event.

Implementation description

I made it sleep for the remaining time when that happens.

@WerWolv WerWolv merged commit 6fbbf89 into WerWolv:master May 1, 2024
@WerWolv
Copy link
Owner

WerWolv commented May 1, 2024

Thanks a lot!

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.

None yet

2 participants