Ignore:
Timestamp:
11/04/05 03:47:27 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp

    r375 r378  
    1414  environment->GetIntValue("Sampling.totalSamples", mTotalSamples); 
    1515  environment->GetIntValue("BspTree.Construction.samples", mBspConstructionSamples); 
    16   environment->GetIntValue("BspTree.PostProcessing.samples", mPostProcessSamples); 
     16  environment->GetIntValue("ViewCells.PostProcessing.samples", mPostProcessSamples); 
    1717  mKdPvsDepth = 100; 
    1818  mStats.open("stats.log"); 
     
    531531                cout << "#totalPvsSize=" << mKdTree->CollectLeafPvs() << endl; 
    532532   
    533         //-- post processing of bsp view cells 
    534533        if (mBspTree) 
    535534        { 
    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; 
    537544                int pvsSize = 0; 
    538545 
     
    553560                         << TimeDiff(startTime, GetTime()) *1e-3 << " secs" << endl; 
    554561 
    555                 cout << "evaluating render time heuristics ... "; 
    556  
    557562                //-- recount pvs 
    558563                mBspTree->EvaluateViewCellsStats(stat); 
     
    560565                Debug << "after post processing:\n" << stat << endl; 
    561566 
    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; 
    565573                Debug << "render time: " << rt * 1e-3 << endl; 
    566574        } 
     
    917925 
    918926 
    919  
    920927Real SamplingPreprocessor::RenderPvs(ViewCell &viewCell,  
    921928                                                                         const float objRenderTime) const 
     
    959966        renderTime /= totalArea; 
    960967 
     968        Debug << "render time without overhead: " << renderTime * 1e-3 << endl; 
     969         
    961970        renderTime += (float)viewCells.size() * vcOverhead; 
    962          
     971 
    963972        return renderTime; 
    964973} 
Note: See TracChangeset for help on using the changeset viewer.