[osg-users] new Optimizer improvement rocks

Robert Osfield robert.osfield at gmail.com
Thu Jul 3 00:39:52 PDT 2008


On Thu, Jul 3, 2008 at 7:35 AM, Schmidt, Richard
<Richard.Schmidt at eads.com> wrote:
> hi,
> i think this fix breaks the design of the DataVariance field.
>
> A better solution would be to fix the loaders and make those objects
> static which ARE static. Or remove the 'unspecified' flag from the
> DataVariance enum at all.

The UNSPECIFIED data variance is required as part of the support for
setting up DrawThreadPerContext/CullPerCameraDrawPerContext threading
models - it's a way of knowing that the DataVariance field hasn't been
explicitly set so it could be STATIC or DYNAMIC.

Ideally all DataVariance fields will be explicitly set by the loader,
and Terry's experience with improvement to performance suggest that
some of the loaders could be tightened up w.r.t their own setting of
DataVariance.  In general most state will be STATIC in the scene
graph, or only an occasional field will be DYNAMIC.

Robert.



More information about the osg-users mailing list