Changeset 1710


Ignore:
Timestamp:
11/02/06 19:27:48 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp

    r1709 r1710  
    18271827        } 
    18281828 
    1829         return (viewCells.size() + bvhNodes.size() < mHierarchyStats.Leaves()); 
     1829        return ((int)(viewCells.size() + bvhNodes.size()) < mHierarchyStats.Leaves()); 
    18301830} 
    18311831 
     
    19971997        while (1) 
    19981998        { 
    1999                 if (!ExtractStatistics(i, 99999999, renderCost, memory, pvsEntries)) 
     1999                if (!ExtractStatistics(splits, 99999.0, renderCost, memory, pvsEntries)) 
    20002000                        break; 
    20012001 
    20022002                UpdateStats(splitsStats, splits, renderCost, pvsEntries, memory, 0); 
    20032003 
    2004                 splits += splitsStepSize 
     2004                splits += splitsStepSize; 
    20052005        } 
    20062006 
     
    20122012                UpdateStats(splitsStats, splits, renderCost, pvsEntries, memory, 0); 
    20132013 
    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  
    240240                                                         const string &filename); 
    241241 
    242         void EvaluateSubdivision2(ofstream &stats); 
     242        void EvaluateSubdivision2(ofstream &splitsStats, 
     243                                                          ofstream &memStats, 
     244                                                          const int splitsStepSize, 
     245                                                          const float memStepSize); 
    243246 
    244247 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r1709 r1710  
    58225822                //-- output stats 
    58235823 
    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); 
    58285837 
    58295838                timeDiff = TimeDiff(startTime, GetTime()); 
Note: See TracChangeset for help on using the changeset viewer.