Ignore:
Timestamp:
03/07/07 18:16:49 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2199 r2205  
    7676mPreprocessor(NULL), 
    7777mViewCellsTree(viewCellsTree), 
    78 mUsePredefinedViewCells(false) 
     78mUsePredefinedViewCells(false), 
     79mMixtureDistribution(NULL) 
    7980{ 
    8081        mViewSpaceBox.Initialize(); 
     
    24142415  stat.avgRelPvsIncrease = 0.0f; 
    24152416  stat.devRelPvsIncrease = 0.0f; 
    2416    
     2417  stat.renderCost = 0.0f; 
     2418 
    24172419  if (mPerViewCellStat.size() != mViewCells.size()) { 
    24182420        // reset the pvs size array after the first call to this routine 
     
    24272429  Environment::GetSingleton()->GetBoolValue("Preprocessor.evaluateFilter", evaluateFilter); 
    24282430 
     2431  const float vol = mViewSpaceBox.GetVolume(); 
     2432 
    24292433  for (i=0; it != mViewCells.end(); ++ it, i++)  
    24302434        { 
     
    24322436          if (viewcell->GetValid()) { 
    24332437                const float pvsCost = mViewCellsTree->GetPvsCost(viewcell); 
     2438                const float renderCost = pvsCost * viewcell->GetVolume() / vol; 
    24342439 
    24352440                if (pvsCost < stat.minPvs) 
     
    24392444                 
    24402445                stat.avgPvs += pvsCost; 
     2446                stat.renderCost += renderCost; 
    24412447 
    24422448                const float pvsEntries = (float)mViewCellsTree->GetPvsEntries(viewcell); 
Note: See TracChangeset for help on using the changeset viewer.