Changeset 1661 for GTP


Ignore:
Timestamp:
10/20/06 18:39:36 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1660 r1661  
    563563                mVspTree->PrepareConstruction(sampleRays, *viewSpaceRays); 
    564564 
     565        ///////// 
     566        //-- new stats 
     567 
    565568        mHierarchyStats.mTotalCost = mVspTree->mTotalCost; 
    566569        mHierarchyStats.mPvsEntries = mVspTree->EvalPvsEntriesSize(*viewSpaceRays); 
     570        mHierarchyStats.mMemory = mHierarchyStats.mPvsEntries *  
     571                sizeof(PvsData) + sizeof(Intersectable *) / (1024.0f * 1024.0f); 
    567572 
    568573        cout << "\nreseting cost for vsp, new total cost: " << mHierarchyStats.mTotalCost << endl; 
     
    940945                        // (if view space was already subdivided) 
    941946                        mHierarchyStats.mPvsEntries = mBvHierarchy->CountViewCells(objects); 
    942                         mHierarchyStats.mMemory = sizeof(PvsData) + sizeof(Intersectable *) / (1024.0f * 1024.0f); 
     947                        mHierarchyStats.mMemory = mHierarchyStats.mPvsEntries * 
     948                                sizeof(PvsData) + sizeof(Intersectable *) / (1024.0f * 1024.0f); 
    943949 
    944950                        // evaluate stats before first subdivision 
     
    974980        mVspTree->Initialise(sampleRays, forcedViewSpace); 
    975981         
     982        mHierarchyStats.mNodes = -mVspTree->mVspStats.nodes + 1; 
     983        mHierarchyStats.mRenderCostDecrease = 0; 
     984 
    976985        SubdivisionCandidate *vsc = PrepareViewSpaceSubdivision(sampleRays, objects); 
    977986         
    978         mHierarchyStats.mNodes = 2; 
    979          
    980         mHierarchyStats.mRenderCostDecrease = 0; 
    981  
    982987        // evaluate new stats before first subdivsiion 
    983988        EvalSubdivisionStats(); 
Note: See TracChangeset for help on using the changeset viewer.