Torchlight II

Torchlight II

View Stats:
Dolus Mar 4, 2015 @ 8:39pm
[Linux] Vsync seems broken
Tested on Ubuntu Gnome 14.10 and Manjaro Gnome spin

GTX 780 with 346.45 blob
< >
Showing 1-15 of 25 comments
Ru.sh Mar 4, 2015 @ 8:48pm 
What is broken about Vsync? I turned it on as well and it looked fine to me.

Core 2 Duo, 8GB RAM with an nVidia GTX 560Ti 2GB, running Ubuntu 14.04 with the 346.47 binary driver.
Dolus Mar 4, 2015 @ 9:04pm 
Just noticing a bit of tearing on my rig. Its nothing too bad, but it is there.
Intiom Mar 5, 2015 @ 9:41am 
I noticed the same thing - VSync is enabled yet there is frequent screen tearing. I'm playing on Intel HD 4600.
Dolus Mar 5, 2015 @ 9:45am 
Originally posted by Intiom:
I noticed the same thing - VSync is enabled yet there is frequent screen tearing. I'm playing on Intel HD 4600.


Does the tearing seem worse when its set to off?
Ru.sh Mar 5, 2015 @ 1:50pm 
Originally posted by DeadWire:
Just noticing a bit of tearing on my rig. Its nothing too bad, but it is there.
I never would have noticed this on my own probably, my eyes aren't that good, but now that you've mentioned it and I started to pay attention to it it seems you're right, there is a tiny bit of screen tearing now and then. Didn't test it with Vsync off.
ieti Mar 5, 2015 @ 2:57pm 
I get this tearing too. It is really annoying, because TL2 is fast paced battle game. If i compare linux and windows version + crossover surely windows one works better. Well emulated one gets sound broken because of pulse...meh...


Please fix this and let the real fun begin. :D Keep the heat guys!


NVIDIA 560ti, 346.47, Debian Wheezy x64, 3.16 backports
Last edited by ieti; Mar 5, 2015 @ 2:59pm
ReeseBun Mar 5, 2015 @ 7:25pm 
On my end, all the vsync option does is cap the framerate at 60. Without trying to stop the tearing.

On Debian Jessie with an Nvidia 750 Ti.
Dolus Mar 5, 2015 @ 10:49pm 
Setting Vsync to on lessens the tearing a bit for me, but thats about all it does....
NoXPhasma Mar 5, 2015 @ 11:46pm 
There are some possibilities to fix this.

If you are using an Nvidia card try to force VSync in the driver and if that is not enough, you can add this to your ~/.xinitrc file:
export __GL_SYNC_TO_VBLANK=1 # if you are on dual monitor add the following line and choose the device you want to play on: #export __VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE="DFP-3"
And restart your desktop session.

Another way is to use compton as compositor (this won't work for Gnome3/Cinnamon, because it needs it's own compositor Mutter), with this options:
compton -b --backend glx --vsync opengl-swc

I use Compiz as compositor/window manager and I never see any tearing, even the FPS are higher than my monitors refreshrate.
Dolus Mar 6, 2015 @ 1:11am 
Originally posted by NoXPhasma:
There are some possibilities to fix this.

If you are using an Nvidia card try to force VSync in the driver and if that is not enough, you can add this to your ~/.xinitrc file:
export __GL_SYNC_TO_VBLANK=1 # if you are on dual monitor add the following line and choose the device you want to play on: #export __VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE="DFP-3"
And restart your desktop session.

Another way is to use compton as compositor (this won't work for Gnome3/Cinnamon, because it needs it's own compositor Mutter), with this options:
compton -b --backend glx --vsync opengl-swc

I use Compiz as compositor/window manager and I never see any tearing, even the FPS are higher than my monitors refreshrate.


Editing the .xintrc file did not seem to do anything for me unfortunetly. I hope this gets an actual fix soon since I actually like using Gnome 3 (post version 3.12) now.
Last edited by Dolus; Mar 6, 2015 @ 1:11am
Billy Baxter Mar 6, 2015 @ 2:46am 
I saw this comment on Reddit. It got rid of the tearing but lowered my FPS. Also I only used the first command, I didn't add it to my xorg.conf yet.

Assuming you are running the NVIDIA binary driver, you can try

nvidia-settings --assign CurrentMetaMode="HDMI-0: nvidia-auto-select { ForceFullCompositionPipeline=On }"

Where HDMI-0 is the ID of your display; you can find it with xrandr -q.

This solved all vsync issues for me on Xubuntu with GTX660 as well as GTX970 cards. No need for compton anymore.

You can add it to the Screen section of your xorg.conf like this:

Option "metamodes" "HDMI-0: 1680x1050 +0+0 { ForceFullCompositionPipeline=On }"

Last edited by Billy Baxter; Mar 6, 2015 @ 2:50am
Dolus Mar 6, 2015 @ 10:35am 
KDE users can also set Kwin to keep desktop effects running for fullscreen applications too.
Last edited by Dolus; Mar 6, 2015 @ 10:35am
Dolus Mar 6, 2015 @ 10:42am 
Originally posted by Billy Baxter:
I saw this comment on Reddit. It got rid of the tearing but lowered my FPS. Also I only used the first command, I didn't add it to my xorg.conf yet.

Assuming you are running the NVIDIA binary driver, you can try

nvidia-settings --assign CurrentMetaMode="HDMI-0: nvidia-auto-select { ForceFullCompositionPipeline=On }"

Where HDMI-0 is the ID of your display; you can find it with xrandr -q.

This solved all vsync issues for me on Xubuntu with GTX660 as well as GTX970 cards. No need for compton anymore.

You can add it to the Screen section of your xorg.conf like this:

Option "metamodes" "HDMI-0: 1680x1050 +0+0 { ForceFullCompositionPipeline=On }"


This got rid of the tearing but cut the fps performance down by 15-20%. I guess the OGL renderer may still need fine tuning under Linux(Vulkan cannot come soon enough).
Last edited by Dolus; Mar 6, 2015 @ 10:43am
PLAYMAKER Mar 6, 2015 @ 12:10pm 
Creating the ~/.xinitrc (wasn't there on Kubuntu 14.10 / nvidia) and pasting

export __GL_SYNC_TO_VBLANK=1

fixes the occasional tearing. Setting Vsync off ingame gives me smooth 60fps. Never played this game before, can fully enjoy now :D

Thanks @NoXPhasma!
Sinedio Mar 6, 2015 @ 3:19pm 
On Ubuntu proper (and any other distro where you happen to use Compiz) you can use the Compiz Config Settings Manager (aka CCSM) to tell Compiz not to un-redirect the game window. The fps will still be shown as high but now there's no more tearing.

Open CCSM go to Composite and in the unredirect match box add:

& !(class=Torchlight2.bin.x86_64)

if you're on a 32bit system, then it's probably just

& !(class=Torchlight2.bin.x86)

since it seems to be matching the name of the executable


The whole line, in my case reads:

(any) & !(class=Totem) & !(class=MPlayer) & !(class=Vlc) & !(class=Plugin-container) & !(class=Firefox) & !(class=UnrealLinux) & !(title=Shadowrun) & !(class=Torchlight2.bin.x86_64)


Also make sure that in the same window, the Detect Refresh Rate box is un-checked and that the value for Refresh Rate matches your secreen, typically 60.
Last edited by Sinedio; Mar 6, 2015 @ 3:31pm
< >
Showing 1-15 of 25 comments
Per page: 1530 50

Date Posted: Mar 4, 2015 @ 8:39pm
Posts: 25