Ignore:
Timestamp:
10/06/06 08:59:09 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1576 r1577  
    201201{ 
    202202        const float costDecr = tData.GetRenderCostDecrease(); 
    203  
     203cout << "here44 " << mHierarchyStats.pvsEntries << endl; 
    204204        AddSubdivisionStats(mHierarchyStats.Leaves(), 
    205205                                                costDecr, 
    206206                                                mTotalCost, 
    207                                                 mTotalPvsEntries 
     207                                                //mPvsEntries 
     208                                                mHierarchyStats.pvsEntries 
    208209                                                ); 
    209210} 
     
    218219                        << "#Splits\n" << splits << endl 
    219220                        << "#RenderCostDecrease\n" << renderCostDecr << endl  
    220                         << "#TotalPvsEntries\n" << pvsEntries << endl 
     221                        << "#TotalEntriesInPvs\n" << pvsEntries << endl 
    221222                        << "#TotalRenderCost\n" << totalRenderCost << endl; 
    222223} 
     
    301302        cout << "\nfinished in " << TimeDiff(startTime, GetTime()) * 1e-3 << " secs" << endl; 
    302303 
    303 /*#if _DEBUG 
    304         cout << "view space: " << GetViewSpaceBox() << endl; 
    305         cout << "object space:  " << GetObjectSpaceBox() << endl; 
    306 #endif*/ 
    307  
    308304        mObjectSpaceSubdivisionType = mSavedObjectSpaceSubdivisionType; 
    309305        mViewSpaceSubdivisionType = mSavedViewSpaceSubdivisionType; 
     
    517513                        // update stats 
    518514                        mHierarchyStats.nodes += 2; 
    519                         mHierarchyStats.pvsEntries += mCurrentCandidate->GetPvsEntriesIncr(); 
     515                        const int pvsEntries = mCurrentCandidate->GetPvsEntriesIncr(); 
     516                        mHierarchyStats.pvsEntries += pvsEntries; 
     517                        cout << "pvs entries: " << pvsEntries << " " << mHierarchyStats.pvsEntries << endl; 
    520518                        mHierarchyStats.memory += 0; // TODO 
    521519                        // subdivision successful 
     
    590588                        // reevaluate candidates affected by the split for view space splits,  
    591589                        // this would be object space splits and other way round 
    592                         if (repairQueue) RepairQueue(); 
     590                        if (repairQueue)  
     591                        { 
     592                                RepairQueue(); 
     593                        } 
    593594                } 
    594595 
Note: See TracChangeset for help on using the changeset viewer.