- Timestamp:
- 01/23/07 23:00:04 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/CombinedPreprocessor.cpp
r2043 r2046 116 116 117 117 if (i - lastEvaluation >= mSamplesPerEvaluation) { 118 long time = TimeDiff(startTime, GetTime()); 118 119 mViewCellsManager->PrintPvsStatistics(mStats); 119 120 mStats << 120 121 "#Pass\n" <<mPass<<endl<< 121 "#Time\n" << TimeDiff(startTime, GetTime())<<endl<<122 "#Time\n" << time <<endl<< 122 123 "#TotalSamples\n" <<i<<endl<< 123 124 "#RssSamples\n" <<totalVssRays<<endl; … … 127 128 ComputeRenderError(); 128 129 } 129 130 131 if (mTotalTime!= -1 && time/1000 > mTotalTime) 132 break; 130 133 } 131 134 -
GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp
r2020 r2046 1178 1178 "10000000"); 1179 1179 1180 RegisterOption("Preprocessor.totalTime", 1181 optInt, 1182 "total_time=", 1183 "-1"); 1184 1180 1185 RegisterOption("Preprocessor.samplesPerPass", 1181 1186 optInt, -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r2045 r2046 172 172 Environment::GetSingleton()->GetIntValue("Preprocessor.samplesPerPass", mSamplesPerPass); 173 173 Environment::GetSingleton()->GetIntValue("Preprocessor.totalSamples", mTotalSamples); 174 Environment::GetSingleton()->GetIntValue("Preprocessor.totalTime", mTotalTime); 174 175 Environment::GetSingleton()->GetIntValue("Preprocessor.samplesPerEvaluation", 175 176 mSamplesPerEvaluation); -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.h
r2017 r2046 243 243 244 244 int mTotalSamples; 245 int mTotalTime; 245 246 int mSamplesPerPass; 246 247 int mSamplesPerEvaluation; -
GTP/trunk/Lib/Vis/Preprocessing/src/SamplingPreprocessor.cpp
r2043 r2046 162 162 163 163 if (samples - lastEvaluation >= mSamplesPerEvaluation) { 164 long time = TimeDiff(startTime, GetTime()); 164 165 mViewCellsManager->PrintPvsStatistics(mStats); 165 166 mStats << 166 167 "#Pass\n" <<mPass<<endl<< 167 "#Time\n" << TimeDiff(startTime, GetTime())<<endl<<168 "#Time\n" << time <<endl<< 168 169 "#TotalSamples\n" <<samples<<endl<< 169 170 "#RssSamples\n" <<rssSamples<<endl; 170 171 lastEvaluation = samples; 171 172 172 173 if (renderer) { 173 174 ComputeRenderError(); 174 175 } 175 176 177 if (mTotalTime != -1 && time/1000 > mTotalTime) 178 break; 176 179 } 177 180 } -
GTP/trunk/Lib/Vis/Preprocessing/src/run_test_arena
r2045 r2046 8 8 VIEWCELLS=../data/Arena/viewcells-5000.xml.gz 9 9 10 PREFIX=../work/plots/osp-arena 1-1e510 PREFIX=../work/plots/osp-arena2-1e5 11 11 12 12 # $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ … … 19 19 20 20 $COMMAND -preprocessor=sampling -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 21 -total_samples=500000000000 -total_time=12208 \ 21 22 -preprocessor_visibility_file=$PREFIX-r-reference.xml \ 22 23 -view_cells_filter_max_size=1 -preprocessor_stats=$PREFIX-r-reference.log \ … … 24 25 25 26 $COMMAND -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 27 -total_samples=500000000000 -total_time=12208 \ 26 28 -rss_distributions=direction -view_cells_filter_max_size=1 \ 27 29 -preprocessor_visibility_file=$PREFIX-r-reference-global.xml \
Note: See TracChangeset
for help on using the changeset viewer.