Changeset 2575 for GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
- Timestamp:
- 01/03/08 15:53:44 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
r2547 r2575 709 709 const bool globalCriteriaMet) 710 710 { 711 #ifdef PERFTIMER 711 712 mSubdivTimer.Entry(); 712 713 #endif 714 713 715 // todo remove dynamic cast 714 716 VspSubdivisionCandidate *sc = … … 788 790 } 789 791 792 #ifdef PERFTIMER 790 793 mSubdivTimer.Exit(); 791 794 #endif 792 795 return newNode; 793 796 } … … 797 800 bool computeSplitPlane) 798 801 { 802 #ifdef PERFTIMER 799 803 mPlaneTimer.Entry(); 800 804 #endif 805 801 806 if (computeSplitPlane) 802 807 { … … 818 823 } 819 824 825 #ifdef PERFTIMER 820 826 mPlaneTimer.Exit(); 821 827 mEvalTimer.Entry(); 822 828 #endif 829 823 830 VspLeaf *leaf = static_cast<VspLeaf *>(splitCandidate.mParentData.mNode); 824 831 … … 917 924 918 925 //cout << "vsp render cost decrease=" << renderCostDecr << endl; 926 #ifdef PERFTIMER 919 927 mEvalTimer.Exit(); 928 #endif 920 929 } 921 930 … … 948 957 VspTraversalData &backData) 949 958 { 959 #ifdef PERFTIMER 950 960 mNodeTimer.Entry(); 951 961 #endif 952 962 VspLeaf *leaf = static_cast<VspLeaf *>(sc.mParentData.mNode); 953 963 … … 1042 1052 interior->mTimeStamp = mHierarchyManager->mTimeStamp ++; 1043 1053 1054 #ifdef PERFTIMER 1044 1055 mNodeTimer.Exit(); 1045 1056 #endif 1046 1057 return interior; 1047 1058 } … … 1103 1114 float maxBand) 1104 1115 { 1116 #ifdef PERFTIMER 1105 1117 mSortTimer.Entry(); 1106 1118 #endif 1107 1119 mLocalSubdivisionCandidates->clear(); 1108 1120 … … 1154 1166 sort(mLocalSubdivisionCandidates->begin(), mLocalSubdivisionCandidates->end()); 1155 1167 1168 #ifdef PERFTIMER 1156 1169 mSortTimer.Exit(); 1170 #endif 1157 1171 } 1158 1172 … … 1573 1587 float &pBack) 1574 1588 { 1589 #ifdef PERFTIMER 1575 1590 mSplitTimer.Entry(); 1576 1591 #endif 1577 1592 float nPosition[3]; 1578 1593 float nCostRatio[3]; … … 1670 1685 pBack = nProbBack[bestAxis]; 1671 1686 1687 #ifdef PERFTIMER 1672 1688 mSplitTimer.Exit(); 1673 1689 #endif 1674 1690 return nCostRatio[bestAxis]; 1675 1691 } … … 3158 3174 void VspTree::GetViewCells(const VssRay &ray, ViewCellContainer &viewCells) 3159 3175 { 3176 #ifdef PERFTIMER 3160 3177 mViewCellsTimer.Entry(); 3178 #endif 3161 3179 3162 3180 static Ray hray; … … 3175 3193 CastLineSegment(origin, termination, viewCells, false); 3176 3194 3195 #ifdef PERFTIMER 3177 3196 mViewCellsTimer.Exit(); 3197 #endif 3178 3198 } 3179 3199
Note: See TracChangeset
for help on using the changeset viewer.