nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   vsync doesn't work, ever (http://www.nvnews.net/vbulletin/showthread.php?t=182780)

kshade 06-04-12 07:51 PM

vsync doesn't work, ever
 
Hi,

I'm using a notebook with an external display and (currently) the 302.11 beta drivers. Vsync never worked properly for me, not with this monitor, not with the one I had before, not with older drivers. There's always a screen region where bad, very noticeable tearing happens, no matter if it's in Firefox or a game. I'm actually quite convinced that it's on but not in sync with the display for some reason.

I've messed with TwinView on and off, doesn't help. Forced X to only recognize the external display, no dice. My current relevant configuration:

I set
Code:

export __GL_SYNC_TO_VBLANK=1
export __GL_SYNC_DISPLAY_DEVICE="DFP-1"

in my ~/.bashrc

Made an nvidia file in /etc/X11/xorg.conf.d/
Code:

Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
        #Option "DynamicTwinView" "true"
        Option "NoLogo" "true"
        Option "DPMS" "1"
        Option "OnDemandVBlankInterrupts" "1"
        #Option "ConnectedMonitor" "DFP-1"
        Option "TripleBuffer" "true"
EndSection

Anybody got an idea what's causing this? The graphics cards is a GeForce GTX 260M, the external monitor is an Eizo FS2331.

brebs 06-04-12 10:44 PM

Re: vsync doesn't work, ever
 
Disable TripleBuffer - for me, TripleBuffer stops vsync from being on.

kshade 06-05-12 06:56 PM

Re: vsync doesn't work, ever
 
Turned it off, now the tearing happens in another screen region, but it's still there.

EDIT: Looks like it works when I turn off display compositing in XFCE. Shame. Oh well.

Gusar 06-05-12 08:00 PM

Re: vsync doesn't work, ever
 
Quote:

Originally Posted by kshade (Post 2561598)
EDIT: Looks like it works when I turn off display compositing in XFCE.

Oh, that's completely normal then. The XFCE compositor is xrender-based, and xrender doesn't provide vsync. You can use either no compositor or a gl compositor.

kokoko3k 06-06-12 03:28 AM

Re: vsync doesn't work, ever
 
Only gl compositor ; no compositor means tearing too.

Gusar 06-06-12 08:00 AM

Re: vsync doesn't work, ever
 
Quote:

Originally Posted by kokoko3k (Post 2561699)
Only gl compositor ; no compositor means tearing too.

That's the first time I hear of it. I don't use a compositor, and I don't have tearing.

kokoko3k 06-07-12 06:49 AM

Re: vsync doesn't work, ever
 
Probably you're talking about an opengl app or an XV video inside a window or in fullscreen.
I was referring to the whole desktop (a browser scrolling a webpage, a window moving and so on.)
An opengl compositor that syncs to vblank wil fix tearing everywhere; (as a side note it seems to steal some cpu cycles too.)


All times are GMT -5. The time now is 11:48 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.