Patreon Logo Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone. Just good, fresh content! Alternatively, you can donate through PayPal Logo PayPal. You can also buy games using our partner links for GOG and Humble Store.
Title: Tearing problems (vsync not working)
Tuxus 22 Mar 2015
Hi there!

I've been testing my new GPU in some games like Portal 2, Minecraft, Dust, etc.
But all of them have annoying tearing!

I have enabled Vsync in nvidia-settings and also in the games, but as soon as when I move the camera... my eyes suffer.

It's normal?

- Additional Information -

· OS: Mageia 4 (KDE)
· GPU: nVidia GTX 970 (latest proprietary drivers)
· Screen: TFT (1280x1024@75) and TV (1920x1080@60)
Xpander 22 Mar 2015
turn off your KDE compositor, or use openbox instead of kwin
and then install compton and run it with: compton --backend glx --vsync opengl-swc

enable flipping from nvidia-settings as well

and enjoy tearfree gaming
wolfyrion 22 Mar 2015
there is an easy way to do this :)
just edit /etc/profile
(you need root access)

add the following line on top

export __GL_YIELD="USLEEP"

(this works on Arch) - hope is the same with Mageia
Tuxus 24 Mar 2015
Thanks for your answers.

@Xpander
Turning off KDE compositor made things better but the tearing hasn't disappeared. By the way, ¿is it possible to turn it off from the command line?

@wolfyrion
I tried your suggestion, but nothing seems to change.

Simply by moving a windows across the screen, the tearing is clearly noticeable.
Xpander 24 Mar 2015
@Tuxus did you use compton with the command i gave you?
that should fix tearing completely ...at least it does for me.

edit: for tearfree movies in your TV, use the nvidia-settings > Xserver Xvideo settings and select your sync to this display device.

then use vlc or smplayer as those seem to accept those settings.
Tuxus 25 Mar 2015
I haven't installed compton yet (it's not in the repositories). As soon as I compile the source code I'll give it a try.

- EDIT -

Installed.
I run it with "compton --backend glx --vsync opengl-swc" from the terminal, but it returns the following error:
glx_render(): Missing texture.

Anyway the screen flashes, so I suppose that it's running. But when I move a window, the tearing is still noticeable.
What I'm doing wrong?

P.S: Thanks for all your help.
Xpander 25 Mar 2015
but do games still tear with that enabled? if not then its actrvated ... have to figure out whats wrong on the desktop then.. probably some setting in KDE that doesnt like compton or similar.
Xpander 29 Mar 2015
@Solar
cheers for that. thatone is even better than compton trick... no perfromance hit at all it seems and makes wonders

feels like a gsync monitor now :D

the command i use:

nvidia-settings --assign CurrentMetaMode="DVI-I-1: nvidia-auto-select +0+0 { ForceCompositionPipeline = On }, HDMI-0: nvidia-auto-select +3840+0 { ForceCompositionPipeline = On }, DVI-D-0: nvidia-auto-select +1920+0 { ForceCompositionPipeline = On }"
Tuxus 30 Mar 2015
Another happy tear-free user here.
Enabling "{ ForceFullCompositionPipeline = On }" works even with default KDE compositor active!
Thanks Solar.

Also thanks to Xpander for all his support. ; - )
loggfreak 21 May 2015
why would anyone use Compton with KDE? you can just go to KDE settings and set it's vsync settings to always enable instead of automatic
wolfyrion 30 May 2015
For Manjaro you just have to edit

/etc/X11/xorg.conf.d/90-mhwd.conf

Go to

Section "Device"

and add

Option "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
ky0 30 May 2015
Thank you thank you thank you.... this has been an annoyance of mine since I moved to Linux. thank youuu
Avehicle7887 5 Jun 2015
I have a question, does Compton has anything to do with Compiz?

I'm using Mint MATE and for the past 2 months I couldn't get VSync to work in Wine. I've tried everything except this.

EDIT: Just tried compton with the Xpander's command, however no luck in forcing Vsync in Wine games.
Xpander 6 Jun 2015
compton and compiz are tottaly different compositors.

about wine games, it does work for me. maybe you are running in virtual wine window and that causing issues?
ky0 8 Jun 2015
Is it possible to get this setting only enabled when you are on at your desktop?
I don't like using vsync in games as it generates input lag for me.
Avehicle7887 8 Jun 2015
Quoting: Guest
Quoting: Avehicle7887EDIT: Just tried compton with the Xpander's command, however no luck in forcing Vsync in Wine games.
Works for me everywhere, fullscreen or not, on nvidia. Do you have an AMD GPU?
Mint 17.1 MATE with GTX 960 using drivers 349.16. I mainly need it for some games that don't have a builtin VSync limiter such as Risen and Septerra Core, for example these 2 games break if rendering hundreds of frames.

Games with a built in VSync work perfectly.
Nasra 10 Jun 2015
Hi,

On my elementary OS i don't have the xorg.conf in /etc/X11/ and nothing that seems similar...
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon Logo Patreon. Plain Donations: PayPal Logo PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register