Hi Ulrich,

Ulrich Hertlein wrote:
> In general I don't believe it would benefit your ultimate goal (smoother 
> display): yes, 
> the display thread waits for retrace and thereby wastes some cycles.  On the 
> other hand if 
> you call 'frame()' too late you might miss the next retrace altogether and 
> quality will 
> suffer dramatically.
> 
> Can't you decouple your processing instead by moving it to a separate thread?

Yes, the quality drop from delaying my frame() calls is dramatic (say 30 frames 
per second instead of 60).  Also, the variable processing time for each frame 
means that I can't reliably estimate the milliseconds required.

My problem with using another thread is that the display thread loops busy 
rather than idling so it's hard to share the processing time without taking 
valuable time from the display thread.

I'm now giving priority to net input and the rest to the display updating.

Thanks,

------------------------
-- Steven Saunderson

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





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

Reply via email to