In my case I am running it on Ubuntu Linux and Windows 8.1, as far as I have seen on Windows it runs slower than on Linux. Jnlr suspected it might not have been vsync'ed there. So how do I ensure it gets sync'ed as expected?
So does your silence mean no Ruby Gosu project can't be vsync'ed at all? O_o
Gosu uses the well-maintained SDL library for creating the window and setting up OpenGL. If vsync doesn't work on your Ubuntu system, then it's not a problem with Ruby/Gosu, but with all SDL-based games.
There was someone on IRC just this week who also experienced tearing (lack of vsync) on Linux with Gosu. I'm afraid vsync issues on Linux will be with us until everyone uses Wayland (which Nvidia's drivers don't support, yay). https://unix.stackexchange.com/a/182841
The only Gosu-specific advice I can give you is to keep the
at its default value, in which case the vsync on Windows should not slow your game down.
Thanks for replying, jlnr. Sadly I cannot use the default update_interval value, it would update stuff too fast on both OS's. :(
Then make an artificial idle frame?
$time += 1
return if $time%2 == 0
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill