- Timestamp:
- 10/20/06 18:39:36 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1660 r1661 563 563 mVspTree->PrepareConstruction(sampleRays, *viewSpaceRays); 564 564 565 ///////// 566 //-- new stats 567 565 568 mHierarchyStats.mTotalCost = mVspTree->mTotalCost; 566 569 mHierarchyStats.mPvsEntries = mVspTree->EvalPvsEntriesSize(*viewSpaceRays); 570 mHierarchyStats.mMemory = mHierarchyStats.mPvsEntries * 571 sizeof(PvsData) + sizeof(Intersectable *) / (1024.0f * 1024.0f); 567 572 568 573 cout << "\nreseting cost for vsp, new total cost: " << mHierarchyStats.mTotalCost << endl; … … 940 945 // (if view space was already subdivided) 941 946 mHierarchyStats.mPvsEntries = mBvHierarchy->CountViewCells(objects); 942 mHierarchyStats.mMemory = sizeof(PvsData) + sizeof(Intersectable *) / (1024.0f * 1024.0f); 947 mHierarchyStats.mMemory = mHierarchyStats.mPvsEntries * 948 sizeof(PvsData) + sizeof(Intersectable *) / (1024.0f * 1024.0f); 943 949 944 950 // evaluate stats before first subdivision … … 974 980 mVspTree->Initialise(sampleRays, forcedViewSpace); 975 981 982 mHierarchyStats.mNodes = -mVspTree->mVspStats.nodes + 1; 983 mHierarchyStats.mRenderCostDecrease = 0; 984 976 985 SubdivisionCandidate *vsc = PrepareViewSpaceSubdivision(sampleRays, objects); 977 986 978 mHierarchyStats.mNodes = 2;979 980 mHierarchyStats.mRenderCostDecrease = 0;981 982 987 // evaluate new stats before first subdivsiion 983 988 EvalSubdivisionStats();
Note: See TracChangeset
for help on using the changeset viewer.