[osg-users] "Stack" of actions todo
Robert Osfield
robert.osfield at gmail.com
Thu May 15 03:11:37 PDT 2008
Hi Vincent,
The OSG designed around the model of single threaded update,
multi-thread cull-draw. If you have others threads beyond the main
frame loop thread that is want to do updates then you'll need to place
a barrier in frame loop to half the frame loop thread while you
operations run, then release the barrier when you operations are
complete for that frame.
Robert.
On Thu, May 15, 2008 at 10:39 AM, Vincent Bourdier
<vincent.bourdier at gmail.com> wrote:
> Hi Alberto
>
> I just need to "control" when I flush the stack, to synchonise with the
> threads. A Callback would flush the stack (and so modify the graph) at the
> same time of the callbacks which traverse the graph... It is dangerous.
>
> I would stop the threads, flush my stack, and notify the threads to
> continue...
>
> 2008/5/15 Alberto Luaces <aluaces at udc.es>:
>>
>> El Jueves 15 Mayo 2008ES 11:00:41 Vincent Bourdier escribió:
>> > Hi all,
>> >
>> > After a look on the net and in the archive, I think nobody did it
>> > before,
>> > but I prefer ask to earn time :
>> >
>> > I need to do something like a stack or a list of actions to apply on the
>> > scenegraph (FIFO stack if possible). I've a thread which will create the
>> > actions to make, and I need to do theses actions on the render loop,
>> > stopping the thread during the "flush" of the stack.
>> >
>> > Do OSG implement something like this ?
>> >
>> > Thanks,
>> >
>> > Regards,
>> > Vincent.
>>
>> Hi Vicent,
>>
>> how would it be different from an update callback?
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
More information about the osg-users
mailing list