Not logged inGosu Forums
Forum back to Help Search Register Login
Up Topic Gosu / Gosu Exchange / How do I enforce the vsync in my project?
- - By kyonides Date 2018-03-12 21:36
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?
Parent - - By kyonides Date 2018-03-30 22:30
So does your silence mean no Ruby Gosu project can't be vsync'ed at all? O_o
Parent - - By jlnr (dev) Date 2018-04-01 10:54
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).

The only Gosu-specific advice I can give you is to keep the update_interval at its default value, in which case the vsync on Windows should not slow your game down.
Parent - - By kyonides Date 2018-04-02 22:48
Thanks for replying, jlnr. Sadly I cannot use the default update_interval value, it would update stuff too fast on both OS's. :(
Parent - By lol_o2 Date 2018-04-02 22:57
Then make an artificial idle frame?

def update
    $time += 1
    return if $time%2 == 0
Up Topic Gosu / Gosu Exchange / How do I enforce the vsync in my project?

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill