Changeset 1654 for GTP/trunk/Lib/Vis/Preprocessing/src
- Timestamp:
- 10/19/06 20:30:21 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
r1649 r1654 1069 1069 const float ratio = newRenderCost / oldRenderCost; 1070 1070 1071 //#ifdef _DEBUG1071 #ifdef _DEBUG 1072 1072 Debug << "\n§§§§ bvh eval const decrease §§§§" << endl 1073 1073 << "back pvs: " << (int)objectsBack.size() << " front pvs: " << (int)objectsFront.size() << " total pvs: " << nTotalObjects << endl … … 1075 1075 << "old rc: " << oldRenderCost / viewSpaceVol << " new rc: " << newRenderCost / viewSpaceVol << endl 1076 1076 << "render cost decrease: " << oldRenderCost / viewSpaceVol - newRenderCost / viewSpaceVol << endl; 1077 //#endif1077 #endif 1078 1078 1079 1079 return ratio; -
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1653 r1654 252 252 mHierarchyStats.mPvsEntries, 253 253 memoryCost, 254 1.0f / (mHierarchyStats.mTotalCost * memoryCost) 254 1.0f / (mHierarchyStats.mTotalCost * memoryCost), 255 (float)mVspTree->mVspStats.Leaves() / (float)GetObjectSpaceSubdivisionLeaves() 255 256 ); 256 257 } … … 262 263 const int pvsEntries, 263 264 const float memory, 264 const float renderCostPerStorage) 265 const float renderCostPerStorage, 266 const float vspOspRatio) 265 267 { 266 268 mSubdivisionStats … … 270 272 << "#TotalRenderCost\n" << totalRenderCost << endl 271 273 << "#Memory\n" << memory << endl 272 << "#RcPerMb\n" << renderCostPerStorage << endl; 274 << "#RcPerMb\n" << renderCostPerStorage << endl 275 << "#VspOspRatio\n" << vspOspRatio << endl; 273 276 } 274 277 … … 696 699 mHierarchyStats.mRenderCostDecrease = sc->GetRenderCostDecrease(); 697 700 701 static float memoryCount = 0; 702 703 if (mHierarchyStats.mMemory > memoryCount) 704 { 705 memoryCount += 100000; 706 cout << "\nstorage cost: " << mHierarchyStats.mMemory / (1024.0f * 1024.0f) << ", steps: " << mHierarchyStats.Leaves() << endl; 707 } 708 698 709 // output stats 699 710 EvalSubdivisionStats(); … … 878 889 !(steps < minSteps)) 879 890 { 880 cout << "breaking on " << sc->GetRenderCostDecrease() << " smaller than " << minRenderCostDecr << endl;891 //cout << "breaking on " << sc->GetRenderCostDecrease() << " smaller than " << minRenderCostDecr << endl; 881 892 break; 882 893 } -
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.h
r1649 r1654 315 315 const int totalPvsEntries, 316 316 const float memory, 317 const float renderCostPerStorage); 317 const float renderCostPerStorage, 318 const float vspOspRatio); 318 319 319 320 bool AddSampleToPvs(Intersectable *obj, … … 376 377 /** After the suddivision has ended, do some final tasks. 377 378 */ 378 void FinishObjectSpaceSubdivision(const ObjectContainer &objects, const bool removeRayRefs = true) const; 379 void FinishObjectSpaceSubdivision(const ObjectContainer &objects, 380 const bool removeRayRefs = true) const; 379 381 380 382 /** Returns depth of object space subdivision. -
GTP/trunk/Lib/Vis/Preprocessing/src/OspTree.cpp
r1633 r1654 715 715 ratio = minRenderCost / totalRenderCost; 716 716 } 717 717 #if _DEBUG 718 718 Debug << "\n§§§§ eval local cost §§§§" << endl 719 719 << "old rc: " << totalRenderCost / viewSpaceVol << " new rc: " << minRenderCost / viewSpaceVol << endl 720 720 << "render cost decrease: " << (totalRenderCost - minRenderCost) / viewSpaceVol << endl; 721 721 #endif 722 722 return ratio; 723 723 }
Note: See TracChangeset
for help on using the changeset viewer.