Ignore:
Timestamp:
03/05/07 11:07:44 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp

    r2124 r2187  
    384384                                                                                BvhTraversalData &backData) 
    385385{  
     386        mNodeTimer.Entry(); 
    386387        const BvhTraversalData &tData = sc.mParentData; 
    387388        BvhLeaf *leaf = tData.mNode; 
     
    480481        } 
    481482         
     483        mNodeTimer.Exit(); 
     484 
    482485        // return the new interior node 
    483486        return node; 
     
    489492                                                                const bool globalCriteriaMet) 
    490493{ 
     494        mSubdivTimer.Entry(); 
     495 
    491496        BvhSubdivisionCandidate *sc =  
    492497                static_cast<BvhSubdivisionCandidate *>(splitCandidate); 
     
    505510                // create new interior node and two leaf node 
    506511                currentNode = SubdivideNode(*sc, tFrontData, tBackData); 
    507          
     512 
    508513                // decrease the weighted average cost of the subdivisoin 
    509514                mTotalCost -= sc->GetRenderCostDecrease(); 
     
    524529                EvalSubdivisionCandidate(*frontCandidate); 
    525530                EvalSubdivisionCandidate(*backCandidate); 
    526          
     531 
    527532                // cross reference 
    528533                tFrontData.mNode->SetSubdivisionCandidate(frontCandidate);  
     
    550555        } 
    551556         
     557        mSubdivTimer.Exit(); 
     558 
    552559        return currentNode; 
    553560} 
     
    608615                                                                                   bool computeSplitPlane) 
    609616{ 
     617        mEvalTimer.Entry(); 
    610618        if (computeSplitPlane) 
    611619        { 
     
    697705        // compute global decrease in render cost 
    698706        splitCandidate.SetPriority(priority); 
     707        mEvalTimer.Exit(); 
    699708} 
    700709 
     
    15491558                                                                                 bool useVisibilityBasedHeuristics) 
    15501559{ 
     1560        mSplitTimer.Entry(); 
     1561 
    15511562        if (mIsInitialSubdivision) 
    15521563        { 
     
    16531664        backObjects = nBackObjects[bestAxis]; 
    16541665 
     1666        mSplitTimer.Exit(); 
     1667 
    16551668        //cout << "val: " << nCostRatio[bestAxis] << " axis: " << bestAxis << endl; 
    16561669        return nCostRatio[bestAxis]; 
     
    23122325                                                                                                const ObjectContainer &objects) 
    23132326{ 
     2327        mSortTimer.Entry(); 
     2328 
     2329        const bool doSort = true; 
     2330 
    23142331        // we sort the objects as a preprocess so they don't have 
    23152332        // to be sorted for each split 
     
    23202337                CreateLocalSubdivisionCandidates(objects,  
    23212338                                                                             &sortedObjects,  
    2322                                                                                  true,  
     2339                                                                                 doSort,  
    23232340                                                                                 i); 
    23242341                 
     
    23422359 
    23432360        *(tData.mSortedObjects[3]) = objects; 
    2344         //stable_sort(tData.mSortedObjects[3]->begin(), tData.mSortedObjects[3]->end(), smallerSize); 
    2345         sort(tData.mSortedObjects[3]->begin(), tData.mSortedObjects[3]->end(), smallerSize); 
     2361         
     2362        stable_sort(tData.mSortedObjects[3]->begin(), tData.mSortedObjects[3]->end(), smallerSize); 
     2363        //sort(tData.mSortedObjects[3]->begin(), tData.mSortedObjects[3]->end(), smallerSize); 
     2364 
     2365        mSortTimer.Exit(); 
    23462366} 
    23472367 
Note: See TracChangeset for help on using the changeset viewer.