- Timestamp:
- 11/10/05 13:59:18 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VssPreprocessor.cpp
r401 r403 16 16 // this should increase coherence of the samples 17 17 environment->GetIntValue("VssPreprocessor.samplesPerPass", mSamplesPerPass); 18 environment->GetIntValue("VssPreprocessor.totalSamples", mTotalSamples); 18 environment->GetIntValue("VssPreprocessor.initialSamples", mInitialSamples); 19 environment->GetIntValue("VssPreprocessor.vssSamples", mVssSamples); 20 environment->GetBoolValue("VssPreprocessor.useImportanceSampling", mUseImportanceSampling); 21 19 22 mStats.open("stats.log"); 20 23 } … … 212 215 VssTree *vssTree = NULL; 213 216 214 while (totalSamples < m TotalSamples) {217 while (totalSamples < mInitialSamples) { 215 218 int passContributingSamples = 0; 216 219 int passSampleContributions = 0; … … 305 308 306 309 int samples = 0; 307 for (int i=0; i < 50; i++) {308 int num = 100000;309 if ( 0) {310 while (1) { 311 int num = mSamplesPerPass; 312 if (!mUseImportanceSampling) { 310 313 VssRayContainer vssRays; 311 314 for (int j=0; j < num; j++) { … … 321 324 float pvs = vssTree->GetAvgPvsSize(); 322 325 cout<<samples<<" avgPVS ="<<pvs<<endl; 326 if (samples >= mVssSamples) 327 break; 323 328 } 324 329
Note: See TracChangeset
for help on using the changeset viewer.