- Timestamp:
- 11/04/05 03:47:27 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r375 r378 14 14 environment->GetIntValue("Sampling.totalSamples", mTotalSamples); 15 15 environment->GetIntValue("BspTree.Construction.samples", mBspConstructionSamples); 16 environment->GetIntValue(" BspTree.PostProcessing.samples", mPostProcessSamples);16 environment->GetIntValue("ViewCells.PostProcessing.samples", mPostProcessSamples); 17 17 mKdPvsDepth = 100; 18 18 mStats.open("stats.log"); … … 531 531 cout << "#totalPvsSize=" << mKdTree->CollectLeafPvs() << endl; 532 532 533 //-- post processing of bsp view cells534 533 if (mBspTree) 535 534 { 536 int vcSize = 0; 535 //-- render simulation 536 cout << "\nevaluating render time before merge ... "; 537 Real rt = SimulateRendering(); 538 539 cout << "avg render time: " << rt * 1e-3 << endl; 540 Debug << "avg render time: " << rt * 1e-3 << endl; 541 542 //-- post processing of bsp view cells 543 int vcSize = 0; 537 544 int pvsSize = 0; 538 545 … … 553 560 << TimeDiff(startTime, GetTime()) *1e-3 << " secs" << endl; 554 561 555 cout << "evaluating render time heuristics ... ";556 557 562 //-- recount pvs 558 563 mBspTree->EvaluateViewCellsStats(stat); … … 560 565 Debug << "after post processing:\n" << stat << endl; 561 566 562 Real rt = SimulateRendering(); 563 cout << "finished" << endl; 564 567 //-- render simulation 568 cout << "\nevaluating render time after merge ... "; 569 570 rt = SimulateRendering(); 571 572 cout << "render time: " << rt * 1e-3 << endl; 565 573 Debug << "render time: " << rt * 1e-3 << endl; 566 574 } … … 917 925 918 926 919 920 927 Real SamplingPreprocessor::RenderPvs(ViewCell &viewCell, 921 928 const float objRenderTime) const … … 959 966 renderTime /= totalArea; 960 967 968 Debug << "render time without overhead: " << renderTime * 1e-3 << endl; 969 961 970 renderTime += (float)viewCells.size() * vcOverhead; 962 971 963 972 return renderTime; 964 973 }
Note: See TracChangeset
for help on using the changeset viewer.