Changeset 1687 for GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
- Timestamp:
- 10/27/06 10:39:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1686 r1687 1667 1667 firstBvh->mEvaluationHack = oldBvhRoot; 1668 1668 1669 firstVsp->SetPriority((float)-oldVspRoot->mTimeStamp); 1670 firstBvh->SetPriority((float)-oldBvhRoot->mTimeStamp); 1671 1669 1672 tQueue.Push(firstVsp); 1670 1673 tQueue.Push(firstBvh); … … 1726 1729 cout << "next candidate: " << nextCandidate->GetPriority() << endl; 1727 1730 1728 if (nextCandidate->Type() == SubdivisionCandidate::VIEW_SPACE) 1731 if (nextCandidate->Type() == SubdivisionCandidate::VIEW_SPACE) 1732 { 1733 cout << "here8" << endl; 1729 1734 mVspTree->SubdivideAndCopy(tQueue, nextCandidate); 1735 1736 VspNode *oldNode = (VspNode *)nextCandidate->mEvaluationHack; 1737 1738 totalRenderCost -= oldNode->mRenderCostDecr; 1739 entriesInPvs += oldNode->mPvsEntriesIncr; 1740 } 1730 1741 else 1742 {cout << "here9" << endl; 1731 1743 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 } 1735 1750 1736 1751 ++ steps; 1737 1752 cout << "rc: " << nextCandidate->GetRenderCostDecrease() << endl; 1753 cout << "pvs: " << nextCandidate->GetPvsEntriesIncr() << endl; 1754 1738 1755 const float memoryCost = (float)entriesInPvs * (float)ObjectPvs::GetEntrySize(); 1739 1756 UpdateStats(stats, steps, totalRenderCost, entriesInPvs, memoryCost, false);
Note: See TracChangeset
for help on using the changeset viewer.