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

Game speed is slightly faster than it should be #10

Open
Midnoclose opened this issue Jun 13, 2021 · 3 comments
Open

Game speed is slightly faster than it should be #10

Midnoclose opened this issue Jun 13, 2021 · 3 comments

Comments

@Midnoclose
Copy link

On my machine, the speed of the game is slightly faster than it should be.
I am running Ubuntu 20.04.2 LTS x86_64

@binji
Copy link
Owner

binji commented Jun 13, 2021

It might be that vsync isn't working -- that's the only thing keeping it from running as fast as it can.

@Midnoclose
Copy link
Author

My monitor runs at 185hz, and I can't find a way to limit that AND not change my refresh rate without modifying the source

@binji
Copy link
Owner

binji commented Jan 25, 2022

Hm, yeah that sounds like a tricky thing to work around for a size-sensitive demo like this...

deltabeard added a commit to deltabeard/pokegb that referenced this issue Feb 12, 2024
Fixes issue binji#10 whereby gameplay would run at the speed of the monitor
refresh rate. A delay is automatically calculated on each frame to slow
down the gameplay if required. Note that this does not speed up the
gameplay if the monitor has a refresh rate lower than 59 Hz. In such
cases, VSYNC should just be disabled in the source code.

Signed-off-by: Mahyar Koshkouei <[email protected]>
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

No branches or pull requests

2 participants