Jump to content
The Dark Mod Forums

v-sync doesn't work anymore


datiswous

Recommended Posts

Since upgrading my gpu to an nVidia RTX 3060, I can only set v-sync via driver setting Sync to Vblank. At least I thought that's what that setting does. Enabling V-sync in TDM does nothing.

I use Manjaro Linux xfce

Both TDM 2.11 and 2.12

Edited by datiswous
Link to comment
Share on other sites

You can try forcing vertical sync in Linux if using NVIDIA drivers with environment variables:

__GL_SYNC_TO_VBLANK=1 ./thedarkmod.x64

https://download.nvidia.com/XFree86/Linux-x86_64/535.146.02/README/openglenvvariables.html

Ā 

A word of warning, Agent Denton. This was a simulated experience; real LAMs will not be so forgiving.

Link to comment
Share on other sites

It's possible the vsync implementation in TDM is broken in Linux, or at least doesn't work properly with newer NVIDIA drivers. I wouldn't use that driver setting checkbox as a global option if I could. If the environment variable works, create a launcher script for TDM using it.

Edited by Xolvix

A word of warning, Agent Denton. This was a simulated experience; real LAMs will not be so forgiving.

Link to comment
Share on other sites

The point of VSync is to reduce visual tearing caused by updating the frame halfway through a screen refresh while something is moving on screen, as well as reducing wasted GPU cycles rendering more frames than can be shown on screen (although some people like extremely high framerates for various other reasons).

However as far as I can recall, I've never seen the VSync settings in the game have any effect on Linux (and I use AMD cards, so I don't think this is specific to nVidia).

Link to comment
Share on other sites

I don't know if there really is screen tearing in TDM without Vsync. In my experience, some games tear, and some don't, without Vsync activated. So, I'd check if it does, and, if it doesn't, you won't need Vsync anyway. It introduces extra latency (albeit very little) and costs performance anyway.

Edit: I just checked with disabled Vsync, frames capped to 144 FPS, and, I don't see any screen tearing. I'd just leave Vsync off (if it even can be enabled on Linux). Makes no sense anyway, if there is no screen tearing without it.

Edited by chakkman
Link to comment
Share on other sites

Not everyone is sensitive to (or can even detect) screen tearing ā€” if you don't have a problem with it, and also don't have a problem with a noisy or overheating GPU rendering at too high a framerate (which could also be solved by capping the FPS, independently of VSync), leaving VSync off is perfectly fine.

Link to comment
Share on other sites

Keep in mind that different Linux distros use different display architectures, some of which use GPU compositing.

Some of the compositing based desktops hard-code vsync on regardless of driver setting.

Conversely, some X11 based distros have notorious problems with vsync that can only be fixed by changing the default Window system or some other workaround.

  • Like 1

Please visit TDM's IndieDB site and help promote the mod:

Ā 

http://www.indiedb.com/mods/the-dark-mod

Ā 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

  • 7 months later...
Posted (edited)
On 8/18/2024 at 6:55 PM, duzenko said:

Anyone has a clue on how to get VSync working with TDM on a laptop with Intel Arc? It's always on if on the iGPU but always off when on the Arc šŸ’©

Can you force it via a driver profile? I've read something about that.

(I assume you're using Windows and have v-sync enabled in tdm settings)

Edited by datiswous
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...