Hi Robert,
i´ve got two questions regarding the new threading model:
Is DataVariance used in any other place already or was it unused until now?
When is it safe to change a node from STATIC to DYNAMIC?
Regards,
Uwe
Robert Osfield wrote:
Hi Mark,
On 2/1/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
On Wed, 2007-01-31 at 22:46 +0000, Robert Osfield wrote:
> The draw traversal is also split into two logic sections - the
rendering of non
> const parts of the scene graph, and the rendering of const parts.
How do you differentiate the non-const/const parts?
All OSG objects have a DataVariance variable that you can set and
query. If data changes per frame than the DataVariance is set to
DYNAMIC, if it doesn't change then its set to STATIC.
By default most scene graph objects are set up to be DYNAMIC, the
exception begin StateAttributes that have defaulted to STATIC since
the very early days of the OSG. For these present experiments I have
changed the default value of osg::Drawable to STATIC as well, and
written a visitor in the Optimizer that looks at all StateSets and
Drawables to see they can be set to be STATIC - if they don't have
callbacks then they are assumed to be STATIC. This isn't full proof,
but good enough right now.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
--
\\\|/// *HLRS, High Performance Computing Center Stuttgart*
_I_ ( o o ) *Visualization/VR* _I_
([EMAIL
PROTECTED])--oo0O--(_)--O0oo------------------------------------------([EMAIL
PROTECTED])
| | Uwe Woessner [EMAIL PROTECTED] | |
| | .ooo0 http://www.hlrs.de/people/woessner/ | |
|_| ( ) Oooo. Phone: +49-711-6856-5790 or ...-5970 |_|
([EMAIL PROTECTED])-------\ (---(
)-----------------------------------------([EMAIL PROTECTED])
I \_) ) / I
(_/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/