[osg-users] Enabling Vsync gives dramatic increase in latency

Björn Blissing bjorn.blissing at vti.se
Fri Apr 17 04:57:41 PDT 2015


Jan Ciger wrote:
> 
> That actually sounds odd, because the monitor will not refresh the image faster than its fixed refresh rate. 4ms would require 250Hz refresh, I am not aware of any commonly sold LCD that could go that fast. Even 120Hz ones are quite rare. Are you sure it is not an artefact of your measurement method? 


Well, I can certainly not give any total guarantees. But output data looks relatively sane. I am cycling the quad color at 1 Hz and sampling the light sensor at 10000Hz. 

Looking at one cycle:
http://i.imgur.com/mPZ70Uw.png

The blue line denotes the color of the quad (0 black - 1 white).
The green line denotes the analog output from the light sensor. I measure the time difference between the change in the two signal.

I ran a measurement cycle with 100 cycles and plotted the latency times:
http://i.imgur.com/NfSzeIx.png

First of all it seems that time from white to black is consistently faster than black to white.

Looking at this plot it seems like the latency times are varying according to a pattern. My guess is that the screen runs asynchronously with the GPU. So the screen polls the GPU at 60Hz and sometimes the GPU just happens to have a frame ready when the screen starts a scanout. The lower limit is just the pure scanout time of the display. But this is just my theory right now. I do not have the detailed knowledge of the inner workings of a LCD display.

Regards
Björn

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63449#63449








More information about the osg-users mailing list