Ignore:
Timestamp:
10/23/06 20:24:14 (18 years ago)
Author:
mattausch
Message:

updated priority meaurement: taking total cost and memory into account

File:
1 edited

Legend:

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

    r1666 r1667  
    15481548        stats.open(mergeStats.c_str()); 
    15491549 
    1550         const float entrySize = sizeof(PvsData) + sizeof(Intersectable *); 
    1551         const float memoryCost = (float)entriesInPvs *  entrySize / (1024.0f * 1024.0f); 
     1550        const float memoryCost = (float)entriesInPvs * ObjectPvs::GetEntrySize(); 
    15521551 
    15531552        ///////////// 
     
    16211620                        avgRenderCost = (float)totalPvs / (float)numViewCells; 
    16221621 
    1623                         const float entrySize = sizeof(PvsData) + sizeof(Intersectable *); 
    1624                         const float memoryCost = (float)entriesInPvs * entrySize / (1024.0f * 1024.0f); 
     1622                        const float memoryCost = (float)entriesInPvs * ObjectPvs::GetEntrySize(); 
    16251623 
    16261624                        UpdateStats(stats, 
     
    20652063float ViewCellsTree::GetMemoryCost(ViewCell *vc) const 
    20662064{ 
    2067         const float entrySize =  
    2068                 sizeof(PvsData) + sizeof(Intersectable *); 
    2069  
    2070         return (float)CountStoredPvsEntries(vc) * entrySize; 
     2065        return (float)CountStoredPvsEntries(vc) * ObjectPvs::GetEntrySize(); 
    20712066} 
    20722067 
Note: See TracChangeset for help on using the changeset viewer.