Changeset 1895 for GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
- Timestamp:
- 12/14/06 23:02:53 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1893 r1895 31 31 #define STUPID_METHOD 0 32 32 33 34 33 35 /*******************************************************************/ 34 36 /* class HierarchyManager implementation */ … … 151 153 "Hierarchy.Construction.maxRepairs", mMaxRepairs); 152 154 153 // compare to bytes 155 Environment::GetSingleton()->GetFloatValue( 156 "Hierarchy.Construction.maxAvgRayContri", mMaxAvgRayContri); 157 158 // for comparing it with byte - value 154 159 mTermMaxMemory *= (1024.0f * 1024.0f); 155 160 … … 168 173 Debug << "max steps of same kind: " << mMaxStepsOfSameType << endl; 169 174 Debug << "max repairs: " << mMaxRepairs << endl; 175 Debug << "max avg ray contribution: " << mMaxAvgRayContri << endl; 176 170 177 171 178 switch (mConstructionType) … … 769 776 770 777 // memory size in byte 771 mHierarchyStats.mMemory += (float)ObjectPvs::GetEntrySizeByte() * pvsEntriesIncr; 778 float mem = (float)ObjectPvs::GetEntrySizeByte() * pvsEntriesIncr; 779 780 // high avg ray contri, the result is influenced by undersampling 781 // => decrease priority 782 if (0 && (sc->GetAvgRayContribution() > mMaxAvgRayContri)) 783 { 784 const float factor = 1.0f + sc->GetAvgRayContribution() - mMaxAvgRayContri; 785 cout << "here5 " << factor << endl; 786 787 mem *= factor; 788 } 789 790 mHierarchyStats.mMemory += mem; 772 791 mHierarchyStats.mRenderCostDecrease = sc->GetRenderCostDecrease(); 773 792 774 793 mPriority = sc->GetPriority(); 794 795 ////////// 796 // show current memory 775 797 776 798 static float memoryCount = 0;
Note: See TracChangeset
for help on using the changeset viewer.