Changeset 656 for GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
- Timestamp:
- 02/20/06 02:13:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
r655 r656 415 415 416 416 // TODO: return memory usage in MB 417 float VspBspTree::GetMemUsage( /*const VspBspTraversalQueue &tstack*/) const418 { 419 return 420 (sizeof(VspBspTree) +421 (float)mBspStats.Leaves() * sizeof(BspLeaf) +422 // the nodes in the stack is the minimal additional number of leaves423 //(float)tstack.size() * sizeof(BspLeaf) +424 mBspStats.Interior() * sizeof(BspInterior) +425 mBspStats.accumRays * sizeof(RayInfo)) / (1024.0f * 1024.0f);417 float VspBspTree::GetMemUsage() const 418 { 419 return (float) 420 (sizeof(VspBspTree) + 421 mBspStats.Leaves() * sizeof(BspLeaf) + 422 mCreatedViewCells * sizeof(BspViewCell) + 423 mBspStats.pvs * sizeof(ObjectPvsData) + 424 mBspStats.Interior() * sizeof(BspInterior) + 425 mBspStats.accumRays * sizeof(RayInfo)) / (1024.0f * 1024.0f); 426 426 } 427 427 … … 1994 1994 mBspStats.maxPvs = data.mPvs; 1995 1995 1996 mBspStats.pvs += data.mPvs; 1997 1996 1998 if (data.mDepth < mBspStats.minDepth) 1997 1999 mBspStats.minDepth = data.mDepth; 1998 2000 1999 2001 if (data.mDepth >= mTermMaxDepth) 2000 2002 ++ mBspStats.maxDepthNodes; … … 2019 2021 2020 2022 ++ mCreatedViewCells; 2023 2021 2024 #ifdef _DEBUG 2022 2025 Debug << "BSP stats: "
Note: See TracChangeset
for help on using the changeset viewer.