Ignore:
Timestamp:
10/19/06 20:30:21 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1653 r1654  
    252252                                                mHierarchyStats.mPvsEntries, 
    253253                                                memoryCost, 
    254                                                 1.0f / (mHierarchyStats.mTotalCost * memoryCost) 
     254                                                1.0f / (mHierarchyStats.mTotalCost * memoryCost), 
     255                                                (float)mVspTree->mVspStats.Leaves() / (float)GetObjectSpaceSubdivisionLeaves() 
    255256                                                ); 
    256257} 
     
    262263                                                                                   const int pvsEntries, 
    263264                                                                                   const float memory, 
    264                                                                                    const float renderCostPerStorage) 
     265                                                                                   const float renderCostPerStorage, 
     266                                                                                   const float vspOspRatio) 
    265267{ 
    266268        mSubdivisionStats 
     
    270272                        << "#TotalRenderCost\n" << totalRenderCost << endl 
    271273                        << "#Memory\n" << memory << endl 
    272                         << "#RcPerMb\n" << renderCostPerStorage << endl; 
     274                        << "#RcPerMb\n" << renderCostPerStorage << endl 
     275                        << "#VspOspRatio\n" << vspOspRatio << endl; 
    273276} 
    274277 
     
    696699        mHierarchyStats.mRenderCostDecrease = sc->GetRenderCostDecrease(); 
    697700 
     701        static float memoryCount = 0; 
     702 
     703        if (mHierarchyStats.mMemory > memoryCount) 
     704        { 
     705                memoryCount += 100000; 
     706                cout << "\nstorage cost: " << mHierarchyStats.mMemory / (1024.0f * 1024.0f) << ", steps: " << mHierarchyStats.Leaves() << endl; 
     707        } 
     708 
    698709        // output stats 
    699710        EvalSubdivisionStats(); 
     
    878889                        !(steps < minSteps)) 
    879890                { 
    880                         cout << "breaking on " << sc->GetRenderCostDecrease() << " smaller than " << minRenderCostDecr << endl; 
     891                        //cout << "breaking on " << sc->GetRenderCostDecrease() << " smaller than " << minRenderCostDecr << endl; 
    881892                        break; 
    882893                } 
Note: See TracChangeset for help on using the changeset viewer.