Does anyone know if it's possible to apply Vsync to another monitor than the primary monitor?

When the game is run on a secondary monitor with a different refresh rate the Vsync still syncs to the primary monitor. Is it possible to specify which monitor it choses or which is to be the primary one? I know it's possible to change the primary screen in the computers systems settings, but it would be nice for the end user if it was handled automatically when the window is dragged over.

I could sync the FPS to the monitor refresh rate without Vsync, but I would still have screen tearing which to my limited understanding is unfixable from within Godot?

4 days later

are you sure its not your gpu drivers that is tearing?

IDK, maybe there's something in the DisplayServer class for this?

Then see if something relevant is also found in ProjectSettings...

Honestly not knowing your experience level I'm inclined to suspect you are getting ahead of yourself here. Personally I'd prototype, design and develop the core loops of the game first, then shaders/material/lookdev and leave the multi monitor support and settings/configuration setups for way later down the line. But yes, what you want to do should essentially be possible.

    10 days later

    Megalomaniak I've already been looking through both the settings and DisplayServer thoroughly. But thanks, you are probably right, I'm quite green.

    Can you even have different refresh rate on multi monitor setup?
    I run Cinnamon Linux and Windows 10, both can't do that, it will always follow the lowest refresh rate.

      pegasusearl Well, I have windows 10 and I can set different refresh rates simultaneously in my system settings. Vsync in Godot also puts my main monitor to 144hz while my second 60hz monitor is connected. And if it's still actually 60hz then I should have notice when the game runs at 144fps, but it's silk smooth. I think that it only defaults to the lowest refresh rate.

        pegasusearl Wayland can definitely do it under linux. That's one of the very points for why it exists. You are probably still using X11 tho, and I'm guessing nvidia GPU, but fret not new drivers are on the way that will make wayland more viable for you too should you want to give it a try.

          Megalomaniak I'm inclined to suspect you are getting ahead of yourself here.

          I disagree, while it's true there are many other important thing as a beginner to learn about, developing with a dangling problem that we can't fix or even worked around for is uncomfortable and demotivating. There is nothing wrong on trying to fix the problem that already exist in front of us.

          With that said, I don't know how to fix this issue either. I don't have high refresh rate monitor.

          MereMortal Well, I have windows 10 and I can set different refresh rates simultaneously in my system settings.

          My bad, looks like my monitor can only do 60hz. I unplug may 60hz monitor and restart my windows, it still can only do maximum of 60hz. I swear I've seen 75hz option, maybe I got it mixed with monitor in the office.

          Megalomaniak but fret not new drivers are on the way that will make wayland more viable for you too

          I've heard that many times. I'm not gonna switch to Wayland. But because of these posts I found a forum post that shows multi-refresh monitor on xorg works.

            pegasusearl But because of these posts I found a forum post that shows multi-refresh monitor on xorg works.

            Right, either the lowest or the highest refresh rate, but not individual monitors sync, in X11 the whole desktop is essentially one canvas IIRC.

            pegasusearl There is nothing wrong on trying to fix the problem that already exist in front of us.

            Of course not, but my point was that if you don't already know how to resolve the issue or you can't afford the time to investigate it sufficiently then it is probably best left for later, since this is not a show stopping issue.