Thanks.
I was worrying about such answer, but that is logical design.
I will probably proceed with drawCallbacks and make scene graph updates in update event.
Thanks,
John


Tim Moore wrote:

On Sat, Jun 19, 2010 at 7:29 AM, PCJohn <[email protected] <mailto:[email protected]>> wrote:

    Hi,

    Is it guaranteed that there is proper current context during
    update traversal?
    If no, is the same guaranteed for cull traversal?

No, and no. In some threading modes there might be a current context during those phases, but there is no guarantee.

    Asking because of a bug in StatsHandler related to support of GPU
    time. Going to attempt fix afterwards.
    John

There is only a context current during drawing i.e., during calls to drawImplementation, camera callbacks, etc. You can also use a GraphicsOperation functor to do something that needs a current context.

Tim

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


------------------------------------------------------------------------

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

Reply via email to