Changeset 1577 for GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
- Timestamp:
- 10/06/06 08:59:09 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1576 r1577 201 201 { 202 202 const float costDecr = tData.GetRenderCostDecrease(); 203 203 cout << "here44 " << mHierarchyStats.pvsEntries << endl; 204 204 AddSubdivisionStats(mHierarchyStats.Leaves(), 205 205 costDecr, 206 206 mTotalCost, 207 mTotalPvsEntries 207 //mPvsEntries 208 mHierarchyStats.pvsEntries 208 209 ); 209 210 } … … 218 219 << "#Splits\n" << splits << endl 219 220 << "#RenderCostDecrease\n" << renderCostDecr << endl 220 << "#Total PvsEntries\n" << pvsEntries << endl221 << "#TotalEntriesInPvs\n" << pvsEntries << endl 221 222 << "#TotalRenderCost\n" << totalRenderCost << endl; 222 223 } … … 301 302 cout << "\nfinished in " << TimeDiff(startTime, GetTime()) * 1e-3 << " secs" << endl; 302 303 303 /*#if _DEBUG304 cout << "view space: " << GetViewSpaceBox() << endl;305 cout << "object space: " << GetObjectSpaceBox() << endl;306 #endif*/307 308 304 mObjectSpaceSubdivisionType = mSavedObjectSpaceSubdivisionType; 309 305 mViewSpaceSubdivisionType = mSavedViewSpaceSubdivisionType; … … 517 513 // update stats 518 514 mHierarchyStats.nodes += 2; 519 mHierarchyStats.pvsEntries += mCurrentCandidate->GetPvsEntriesIncr(); 515 const int pvsEntries = mCurrentCandidate->GetPvsEntriesIncr(); 516 mHierarchyStats.pvsEntries += pvsEntries; 517 cout << "pvs entries: " << pvsEntries << " " << mHierarchyStats.pvsEntries << endl; 520 518 mHierarchyStats.memory += 0; // TODO 521 519 // subdivision successful … … 590 588 // reevaluate candidates affected by the split for view space splits, 591 589 // this would be object space splits and other way round 592 if (repairQueue) RepairQueue(); 590 if (repairQueue) 591 { 592 RepairQueue(); 593 } 593 594 } 594 595
Note: See TracChangeset
for help on using the changeset viewer.