Changeset 2575 for GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
- Timestamp:
- 01/03/08 15:53:44 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
r2560 r2575 525 525 //TestEvaluation(sc); 526 526 527 #ifdef PERFTIMER 527 528 // fill view cells cache 528 529 mNodeTimer.Entry(); 530 #endif 529 531 530 532 const BvhTraversalData &tData = sc.mParentData; … … 634 636 UpdateViewCells(sc); 635 637 638 #ifdef PERFTIMER 636 639 mNodeTimer.Exit(); 637 640 #endif 641 638 642 // return the new interior node 639 643 return node; … … 647 651 ) 648 652 { 653 #ifdef PERFTIMER 649 654 mSubdivTimer.Entry(); 650 655 #endif 656 651 657 BvhSubdivisionCandidate *sc = 652 658 static_cast<BvhSubdivisionCandidate *>(splitCandidate); … … 718 724 } 719 725 726 #ifdef PERFTIMER 720 727 mSubdivTimer.Exit(); 721 728 #endif 729 722 730 return currentNode; 723 731 } … … 780 788 const bool preprocessViewCells) 781 789 { 782 mPlaneTimer.Entry(); 790 #ifdef PERFTIMER 791 mPlaneTimer.Entry(); 792 #endif 783 793 784 794 const BvhTraversalData &tData = splitCandidate.mParentData; … … 824 834 } 825 835 836 #ifdef PERFTIMER 826 837 mPlaneTimer.Exit(); 827 838 #endif 828 839 829 840 /////////////////// 830 841 842 #ifdef PERFTIMER 831 843 mEvalTimer.Entry(); 832 844 #endif 845 833 846 // mark view cells according to what part of the split they see 834 847 // and compute volume … … 984 997 #endif 985 998 999 #ifdef PERFTIMER 986 1000 mEvalTimer.Exit(); 1001 #endif 987 1002 } 988 1003 … … 1676 1691 const int axis) 1677 1692 { 1693 #ifdef PERFTIMER 1678 1694 mSortTimer.Entry(); 1679 1695 #endif 1680 1696 //-- insert object queries 1681 1697 ObjectContainer *objects = mUseGlobalSorting ? … … 1684 1700 CreateLocalSubdivisionCandidates(*objects, &mSubdivisionCandidates, !mUseGlobalSorting, axis); 1685 1701 1702 #ifdef PERFTIMER 1686 1703 mSortTimer.Exit(); 1704 #endif 1687 1705 } 1688 1706 … … 1840 1858 bool useVisibilityBasedHeuristics) 1841 1859 { 1860 #ifdef PERFTIMER 1842 1861 mSplitTimer.Entry(); 1843 1862 #endif 1863 1844 1864 if (mIsInitialSubdivision) 1845 1865 { … … 1925 1945 backObjects = nBackObjects[bestAxis]; 1926 1946 1947 #ifdef PERFTIMER 1927 1948 mSplitTimer.Exit(); 1928 1949 #endif 1950 1929 1951 //cout << "val: " << nCostRatio[bestAxis] << " axis: " << bestAxis << endl; 1930 1952 return nCostRatio[bestAxis]; … … 2276 2298 //-- use view cells cache 2277 2299 2300 #ifdef PERFTIMER 2278 2301 mCollectTimer.Entry(); 2279 2302 #endif 2303 2280 2304 ViewCellContainer *objViewCells = obj->GetOrCreateViewCells(); 2281 2305 … … 2308 2332 } 2309 2333 2334 #ifdef PERFTIMER 2310 2335 mCollectTimer.Exit(); 2311 2336 #endif 2312 2337 return (int)objViewCells->size(); 2313 2338 } … … 2320 2345 const bool onlyUnmailedRays) 2321 2346 { 2347 #ifdef PERFTIMER 2322 2348 mCollectTimer.Entry(); 2349 #endif 2323 2350 VssRayContainer::const_iterator rit, rit_end = obj->GetOrCreateRays()->end(); 2324 2351 … … 2362 2389 } 2363 2390 2391 #ifdef PERFTIMER 2364 2392 mCollectTimer.Exit(); 2393 #endif 2365 2394 return numRays; 2366 2395 } … … 2436 2465 const bool onlyUnmailedRays) 2437 2466 { 2467 #ifdef PERFTIMER 2438 2468 mCollectTimer.Entry(); 2469 #endif 2439 2470 VssRayContainer::const_iterator rit, rit_end = obj->GetOrCreateRays()->end(); 2440 2471 … … 2478 2509 } 2479 2510 2511 #ifdef PERFTIMER 2480 2512 mCollectTimer.Exit(); 2513 #endif 2481 2514 return numRays; 2482 2515 }
Note: See TracChangeset
for help on using the changeset viewer.