HI Antonio,

On 17 July 2012 13:02, Antonio De Giorgio <[email protected]> wrote:
> thanks for your fast answer...I got some moving slices like if i had an 
> overlapping of two frames not sinchronized...

This sounds like the type of problem when you don't enable vsync on
your graphics display, essentially you have one thread writing to a
buffer and another reading from the same buffer at the same time so
that the reading buffer reads the previous frame as well as the new
frame during one read.  The way to address this issue to use two image
buffers and have the write thread and the read thread read from the
opposite buffer, a simple pointer swap in osg::Image to tell it where
you want to read the data from will be sufficient.  The ffmpeg movie
plugin uses double buffering like this to avoid this tearing issue.

> about the dalay i can't evaluate it beacuse i thoght there's a delay watching 
> an erroneus output of my processing...for example if i make an hough 
> trasformation (quite hard from the computational point of view) and at the 
> end an overlap of some text on the frame i'm not able to see the text on 
> every frame and i'm never able to take the hough trasformation 
> output...instead if i make only the overlap of the text i'm able to see it 
> but with a strange effect, like intermittence...

There is nothing specific I can do to advice you on the latency front,
it'll likely be an issue of just making sure you read thread is
working efficiently and that the graphics and video reading threads
aren't competing for the same CPU resources, using of processor
affinity may be a help.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to