Ignore:
Timestamp:
09/01/06 13:48:15 (18 years ago)
Author:
szydlowski
Message:

per-frame-stats with internal rendering - use depth pass issue unresolved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreKdTree.h

    r1296 r1312  
    483483                typedef std::set<LeafPtr> LeafSet; 
    484484 
    485                 typedef struct Stats_ 
     485                struct TreeStats 
    486486                { 
    487487                        unsigned int mNumNodes; 
     
    494494                                mNumLeaves = 0; 
    495495                                mNumSceneNodes = 0; 
    496                         }; 
    497                 } Stats; 
     496                        } 
     497                }; 
     498 
     499                struct FrameStats  
     500                { 
     501                        unsigned int mTraversedNodes; 
     502                        unsigned int mRenderedNodes; 
     503                        unsigned int mFrustumCulledNodes; 
     504 
     505                        void clear(void) 
     506                        { 
     507                                mTraversedNodes = 0; 
     508                                mRenderedNodes = 0; 
     509                                mFrustumCulledNodes = 0; 
     510                        } 
     511                }; 
    498512 
    499513                enum RenderMethod 
     
    571585 
    572586                // self-explanatory ... 
    573                 int getMaxDepth(void) { return mMaxDepth; }; 
    574                 const Stats& getStats(void) const { return mStats; }; 
    575                 AxisAlignedBox getBox(void) { if (mKdRoot) return mKdRoot->mAABB; else return AxisAlignedBox(); }; 
     587                int getMaxDepth(void) { return mMaxDepth; } 
     588                const TreeStats& getTreeStats(void) const { return mTreeStats; } 
     589                const FrameStats& getFramesStats(void) const { return mFrameStats; } 
     590                AxisAlignedBox getBox(void) { if (mKdRoot) return mKdRoot->mAABB; else return AxisAlignedBox(); } 
    576591                void setBuildMethod(BuildMethod bm) { mBuildMethod = bm; } 
    577592        protected: 
     
    627642                Log * mBuildLog; 
    628643 
    629                 // statistical information 
    630                 Stats mStats; 
     644                // statistical information on the tree 
     645                TreeStats mTreeStats; 
     646 
     647                // statistical info on a single rendered frame 
     648                FrameStats mFrameStats; 
    631649 
    632650                /** Visualization flags **/ 
     
    638656                bool mShowNodes; 
    639657 
    640                 // pointer zur getVisibility function (simple oder enhanced) 
     658                // function pointer to the getVisibility function 
     659                // allows choosing between regular vis (NONE/PART, same es isVisible) 
     660                // and enhaced vis (NONE/PART/FULL) for early traversal abort 
    641661                KdTreeCamera::NodeVisibility (KdTreeCamera::*getVisibility)(const AxisAlignedBox& box) const; 
    642662 
Note: See TracChangeset for help on using the changeset viewer.