Ignore:
Timestamp:
10/27/06 10:39:58 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1686 r1687  
    16671667        firstBvh->mEvaluationHack = oldBvhRoot; 
    16681668 
     1669        firstVsp->SetPriority((float)-oldVspRoot->mTimeStamp); 
     1670        firstBvh->SetPriority((float)-oldBvhRoot->mTimeStamp); 
     1671 
    16691672        tQueue.Push(firstVsp); 
    16701673        tQueue.Push(firstBvh); 
     
    17261729                cout << "next candidate: " << nextCandidate->GetPriority() << endl; 
    17271730 
    1728                 if (nextCandidate->Type() == SubdivisionCandidate::VIEW_SPACE) 
     1731        if (nextCandidate->Type() == SubdivisionCandidate::VIEW_SPACE) 
     1732                { 
     1733                        cout << "here8" << endl; 
    17291734                        mVspTree->SubdivideAndCopy(tQueue, nextCandidate); 
     1735 
     1736                        VspNode *oldNode = (VspNode *)nextCandidate->mEvaluationHack; 
     1737                         
     1738                        totalRenderCost -= oldNode->mRenderCostDecr; 
     1739                        entriesInPvs += oldNode->mPvsEntriesIncr; 
     1740                } 
    17301741                else 
     1742                {cout << "here9" << endl; 
    17311743                        mBvHierarchy->SubdivideAndCopy(tQueue, nextCandidate); 
    1732  
    1733                 totalRenderCost -= nextCandidate->GetRenderCostDecrease(); 
    1734                 entriesInPvs += nextCandidate->GetPvsEntriesIncr(); 
     1744                         
     1745                        BvhNode *oldNode = (BvhNode *)nextCandidate->mEvaluationHack; 
     1746                         
     1747                        totalRenderCost -= oldNode->mRenderCostDecr; 
     1748                        entriesInPvs += oldNode->mPvsEntriesIncr; 
     1749                }                
    17351750 
    17361751                ++ steps; 
    1737                  
     1752                cout << "rc: " << nextCandidate->GetRenderCostDecrease() << endl; 
     1753                cout << "pvs: " << nextCandidate->GetPvsEntriesIncr() << endl; 
     1754 
    17381755                const float memoryCost = (float)entriesInPvs * (float)ObjectPvs::GetEntrySize(); 
    17391756                UpdateStats(stats, steps, totalRenderCost, entriesInPvs, memoryCost, false); 
Note: See TracChangeset for help on using the changeset viewer.