Changeset 1710 for GTP/trunk/Lib
- Timestamp:
- 11/02/06 19:27:48 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1709 r1710 1827 1827 } 1828 1828 1829 return ( viewCells.size() + bvhNodes.size() < mHierarchyStats.Leaves());1829 return ((int)(viewCells.size() + bvhNodes.size()) < mHierarchyStats.Leaves()); 1830 1830 } 1831 1831 … … 1997 1997 while (1) 1998 1998 { 1999 if (!ExtractStatistics( i, 99999999, renderCost, memory, pvsEntries))1999 if (!ExtractStatistics(splits, 99999.0, renderCost, memory, pvsEntries)) 2000 2000 break; 2001 2001 2002 2002 UpdateStats(splitsStats, splits, renderCost, pvsEntries, memory, 0); 2003 2003 2004 splits += splitsStepSize 2004 splits += splitsStepSize; 2005 2005 } 2006 2006 … … 2012 2012 UpdateStats(splitsStats, splits, renderCost, pvsEntries, memory, 0); 2013 2013 2014 mem += memStepSize 2015 } 2016 2017 } 2018 2019 } 2014 mem += memStepSize; 2015 } 2016 2017 } 2018 2019 } -
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.h
r1709 r1710 240 240 const string &filename); 241 241 242 void EvaluateSubdivision2(ofstream &stats); 242 void EvaluateSubdivision2(ofstream &splitsStats, 243 ofstream &memStats, 244 const int splitsStepSize, 245 const float memStepSize); 243 246 244 247 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1709 r1710 5822 5822 //-- output stats 5823 5823 5824 sprintf(str, "-%09d-eval.log", castSamples); 5825 string filename = string(statsPrefix) + string(str); 5826 ofstream ofstr(filename.c_str()); 5827 mHierarchyManager->EvaluateSubdivision2(ofstr); 5824 const int splitsStepSize = 500; 5825 const float memStepSize = 1.0f; 5826 5827 sprintf(str, "-splits-%09d-eval.log", castSamples); 5828 const string splitsFilename = string(statsPrefix) + string(str); 5829 5830 sprintf(str, "-mem-%09d-eval.log", castSamples); 5831 const string memFilename = string(statsPrefix) + string(str); 5832 5833 ofstream splitsStr(splitsFilename.c_str()); 5834 ofstream memStr(memFilename.c_str()); 5835 5836 mHierarchyManager->EvaluateSubdivision2(splitsStr, memStr, splitsStepSize, memStepSize); 5828 5837 5829 5838 timeDiff = TimeDiff(startTime, GetTime());
Note: See TracChangeset
for help on using the changeset viewer.