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.

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

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.

  • Recent Status Updates

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 2 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 3 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...