nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Stubborn VBLANK with vdpau (fullscreen?) (http://www.nvnews.net/vbulletin/showthread.php?t=155059)

Surmoka 09-13-10 03:44 PM

Stubborn VBLANK with vdpau (fullscreen?)
 
1 Attachment(s)
Hi,

I can't exactly trace down the cause of what I'm experiencing, but:
* Fedora 9, kernel 2.6.32.2
* NVIDIA driver version: 256.53
* Video card: GeForce 8600 GT
* mplayer SVN-r32049-snapshot-4.3.0 (few days old svn)
* Compiz (but "unredirect fullscreen windows" is enabled)
* monitor refresh rate: 60 Hz

and when playing back any video with VDPAU in fullscreen, nothing can go above my monitor refresh rate. No matter how high of an FPS is specified for mplayer, it is capped at 60 (and I really mean it, the video's time is elapsing at 60 fps only). This makes me think that sync to vblank is enabled. Is there any way to disable it for VDPAU? Sync for vblank is not set, neither for Xv nor for GL.
As I live in Europe, this 60Hz vsync is causing stuttering for my 50Hz TV broadcasts because 60 is not a multiple of 50.

This is only half of the things. If not VDPAU (or not fullscreen), the effect seems similar, except that fps is not capped at 60 but refresh still never seems to happen anywhere mid-screen and stuttering is present with all mplayer video outputs, which means refresh is still synced to vblank, apparently at a more generic level.

Could someone help me out on what vsync setting may still be active and how to disable it?
As this post is not really a bug report or the like, I'm not attaching debug infos - I've scanned through them and they don't seem to provide relevant information for this case.
My Xorg log is here anyway.

Thanks in advance.

AaronP 09-13-10 07:15 PM

Re: Stubborn VBLANK with vdpau (fullscreen?)
 
VDPAU's presentation queue will display each frame for at least one vblank. It's up to the application to query the presentation queue, find out when the frame was presented, and compare that to the requested timestamp. If it detects too much drift, it should drop frames to compensate. It sounds like that algorithm is not working in mplayer. As far as I know, there is no way to disable sync-to-vblank in VDPAU.

BitJam 09-13-10 08:24 PM

Re: Stubborn VBLANK with vdpau (fullscreen?)
 
Quote:

Originally Posted by AaronP (Post 2317680)
As far as I know, there is no way to disable sync-to-vblank in VDPAU.

I don't seem to have any problem disabling it. :-) I'd like to figure out how to enable it.

gradinaruvasile 09-14-10 01:20 AM

Re: Stubborn VBLANK with vdpau (fullscreen?)
 
Try disabling compiz and the composite extension (the latter is done in xorg.conf and requires x restart).
All my vdpau related problems (tearing etc) were gone since i did this (i dont have compiz installed, but i did have tearing until i disabled the composite extension).
This of course means that compiz cannot be enabled.

Stephen Warren 09-14-10 12:49 PM

Re: Stubborn VBLANK with vdpau (fullscreen?)
 
There is no way to disable sync-to-vblank in VDPAU. (This is orthogonal to whether it always works correctly in all cases).

Surmoka 09-15-10 07:07 AM

Re: Stubborn VBLANK with vdpau (fullscreen?)
 
Thanks for the replies. Would it be technically possible to add for example an environment variable to the driver that controls sync-to-vblank for vdpau?


All times are GMT -5. The time now is 10:27 PM.

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