Show
Ignore:
Timestamp:
03/10/09 15:15:59 (5 years ago)
Author:
robert
Message:

From Roland Smeenk, "While working on the Collada plugin I noticed that all geometry created by the dae reader result in slow path geometry.
Because there already exists the option to convert slow path geometry to the fast path by computing an internal fast path alternative, I added a new optimizer option that automatically does this. To check the results I also made some changes to the statistics gathering and rendering.

Somewhat unrelated, but also part of the optimizer I disabled removal of CameraView? nodes during RemoveRedundantNodes? optimization.
As discussed on the ML, CameraViews? were removed from the scenegraph. This solves that issue.

Summary:
-Geometry::areFastPathsUsed now also looks at internalOptimizedGeometry
-Added Optimize option to make all slow path geometry compute their internal fast path alternative
-Added fast geometry counter to the statistics
-Disabled removel of CameraViews? in optimizer
"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osg/Geometry

    r9599 r9886  
    332332          * arrays will drop the rendering path off the fast path. 
    333333        */ 
    334         inline bool areFastPathsUsed() const { return _fastPath && _fastPathHint; } 
     334        inline bool areFastPathsUsed() const 
     335        { 
     336            if (_internalOptimizedGeometry.valid()) 
     337                return _internalOptimizedGeometry->areFastPathsUsed(); 
     338            else 
     339                return _fastPath && _fastPathHint; 
     340        } 
    335341 
    336342        bool computeFastPathsUsed();