- Timestamp:
- 05/26/08 12:27:08 (16 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/scripts/run_demo_vienna
r2711 r2712 52 52 -preprocessor_detect_empty_viewspace+ \ 53 53 -preprocessor_use_vbos- \ 54 -preprocessor_ray_cast_method= 3\54 -preprocessor_ray_cast_method=1 \ 55 55 -view_cells_random_viewpoint_list=$VIEWPOINTS \ 56 56 demo1.env -
GTP/trunk/Lib/Vis/Preprocessing/src/SamplingPreprocessor.cpp
r2709 r2712 84 84 HaltonSequence posHalton; 85 85 86 int samples = 0;86 mCurrentSamples = 0; 87 87 int rssSamples = 0; 88 88 … … 92 92 VssRayContainer vssRays; 93 93 94 while ( samples < mTotalSamples) {94 while (mCurrentSamples < mTotalSamples) { 95 95 for (int i=0; i < mSamplesPerPass;) { 96 96 while (mSynchronize) … … 117 117 for (; rays.size() < 16; ) { 118 118 if (i%100000 == 0) { 119 cout<< samples/1e6f<<"M rays, progress: "<<(samples*100.0f)/mTotalSamples<<" % \r";119 cout<<mCurrentSamples/1e6f<<"M rays, progress: "<<(mCurrentSamples * 100.0f)/mTotalSamples<<" % \r"; 120 120 } 121 121 … … 131 131 1.0f)); 132 132 i++; 133 samples++;133 mCurrentSamples ++; 134 134 } 135 135 … … 158 158 } 159 159 160 if ( samples > mTotalSamples)160 if (mCurrentSamples > mTotalSamples) 161 161 break; 162 162 } 163 163 164 164 165 if ( samples - lastEvaluation >= mSamplesPerEvaluation) {165 if (mCurrentSamples - lastEvaluation >= mSamplesPerEvaluation) { 166 166 Real time = TimeDiff(startTime, GetTime()); 167 167 mViewCellsManager->PrintPvsStatistics(mStats); … … 169 169 "#Pass\n" <<mPass<<endl<< 170 170 "#Time\n" << time <<endl<< 171 "#TotalSamples\n" << samples<<endl<<171 "#TotalSamples\n" <<mCurrentSamples<<endl<< 172 172 "#RssSamples\n" <<rssSamples<<endl; 173 lastEvaluation = samples;173 lastEvaluation = mCurrentSamples; 174 174 175 175 if (renderer) { -
GTP/trunk/Lib/Vis/Preprocessing/src/TestPreprocessor05.vcproj
r2686 r2712 157 157 LinkIncremental="1" 158 158 AdditionalLibraryDirectories=""$(QTDIR)\lib";..\src\GL;"..\lib05\$(ConfigurationName)";..\..\..\..\..\..\NonGTP\Boost\lib;..\..\..\..\..\..\NonGTP\Zlib\lib;..\..\..\..\..\..\NonGTP\Devil\lib;"..\MultiLevelRayTracing\RTScene\$(ConfigurationName)";"..\MultiLevelRayTracing\RTWorld\$(ConfigurationName)";"QtInterface\$(ConfigurationName)";"..\..\..\..\..\..\NonGTP\Xerces\xerces-c_2_8_0\lib";"$(CG_LIB_PATH)"" 159 GenerateDebugInformation=" true"159 GenerateDebugInformation="false" 160 160 SubSystem="1" 161 161 LargeAddressAware="2"
Note: See TracChangeset
for help on using the changeset viewer.