- Timestamp:
- 11/15/05 01:46:26 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VspKdTree.cpp
r411 r413 739 739 740 740 if (data.depth >= termMaxDepth) 741 ++ stat.maxDepthNodes;741 ++ mStat.maxDepthNodes; 742 742 743 743 // if ( (int)(leaf->rays.size()) < termMinCost) 744 744 // stat.minCostNodes++; 745 745 if (leaf->GetPvsSize() < termMinPvs) 746 ++ stat.minPvsNodes;746 ++ mStat.minPvsNodes; 747 747 748 748 if (leaf->GetPvsSize() < termMinRays) 749 ++ stat.minRaysNodes;749 ++ mStat.minRaysNodes; 750 750 751 751 if (0 && leaf->GetAvgRayContribution() > termMaxRayContribution) 752 ++ stat.maxRayContribNodes;752 ++ mStat.maxRayContribNodes; 753 753 754 754 if (SqrMagnitude(data.bbox.Size()) <= termMinSize) 755 ++ stat.minSizeNodes;756 757 if ((int)(leaf->rays.size()) > stat.maxRayRefs)758 stat.maxRayRefs = (int)leaf->rays.size();755 ++ mStat.minSizeNodes; 756 757 // if ((int)(leaf->rays.size()) > stat.maxRayRefs) 758 // mStat.maxRayRefs = (int)leaf->rays.size(); 759 759 } 760 760 … … 799 799 } 800 800 801 stat.nodes += 2;802 ++ stat.splits[axis];801 mStat.nodes += 2; 802 //++ mStat.splits[axis]; 803 803 804 804 // add the new nodes to the tree … … 1134 1134 VspKdTreeLeaf *leaf = (VspKdTreeLeaf *)data.node; 1135 1135 leaf->AddRay(data.rayData); 1136 ++ stat.addedRayRefs;1136 ++ mStat.addedRayRefs; 1137 1137 } 1138 1138 } -
trunk/VUT/GtpVisibilityPreprocessor/src/VspKdTree.h
r412 r413 663 663 return 664 664 (sizeof(VspKdTree) + 665 stat.Leaves() * sizeof(VspKdTreeLeaf) +666 stat.Interior() * sizeof(VspKdTreeInterior) +667 stat.rayRefs * sizeof(VspKdTreeNode::RayInfo)) / (1024.0f*1024.0f);665 mStat.Leaves() * sizeof(VspKdTreeLeaf) + 666 mStat.Interior() * sizeof(VspKdTreeInterior) + 667 mStat.rayRefs * sizeof(VspKdTreeNode::RayInfo)) / (1024.0f*1024.0f); 668 668 } 669 669 670 670 float GetRayMemUsage() const 671 671 { 672 return stat.rays * (sizeof(VssRay))/(1024.0f * 1024.0f);672 return mStat.rays * (sizeof(VssRay))/(1024.0f * 1024.0f); 673 673 } 674 674
Note: See TracChangeset
for help on using the changeset viewer.