nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   What can be the cause for slow VDPAU VdpPresentationQueueQuerySurfaceStatus? (http://www.nvnews.net/vbulletin/showthread.php?t=162629)

TheSwissKnife 05-18-11 02:07 PM

What can be the cause for slow VDPAU VdpPresentationQueueQuerySurfaceStatus?
 
I am doing some timings to help diagnose stuttering/timing issues with xbmc VDPAU. One such test I use a 1080p video stream of 45fps and a display refresh rate of 59.94Hz. It seems that after the frame appears to have been decoded then time taken to return from a call to vdp_presentation_queue_query_surface_status varies between 2ms to say 20ms, generally one slow followed by one fast alternating. The calls use 0 as the presentation time. Does anyone know what this is call is blocking so long waiting for?

Platform is ION2 with 195.36.24 drivers, which is capable of close to 50fps decoding at 1080p.

TheSwissKnife 05-19-11 09:10 AM

Re: What can be the cause for slow VDPAU VdpPresentationQueueQuerySurfaceStatus?
 
Further info...this is the behaviour with only 2 output surfaces. When surfaces are increased to 4 for example the call returns immediately but with status QUEUED and repeating the call until VISIBLE takes essentially just as long as the previous blocking call. Is there something which prevents more than one presentation per vsync cycle?

EDIT: It seems not as when I force it to play as fast as possible without getting stuck in waits eg due to glXSwapBuffers() I get 45 calls per second succeeding using 24Hz VSYNC. So is this all simply saying that when GPU is busy decoding some new frame it is also not servicing the presentation queue for current?

TheSwissKnife 05-24-11 06:19 PM

Re: What can be the cause for slow VDPAU VdpPresentationQueueQuerySurfaceStatus?
 
Are there no vdpau gurus here. There seems a lack of documentation on this presentation queue stuff so I wonder how we are meant to use it. I will re-phrase the question(s) as follows.

What is it that makes a presentation queue output surface to change from QUEUED to VISIBLE?

What is it that makes a presentation queue output surface to change from VISIBLE to IDLE?


All times are GMT -5. The time now is 03:32 PM.

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