Ignore:
Timestamp:
11/09/06 13:36:30 (18 years ago)
Author:
mattausch
Message:

resolved coflicts
improved memory constant

File:
1 edited

Legend:

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

    r1731 r1732  
    151151        Environment::GetSingleton()->GetIntValue( 
    152152                "Hierarchy.Construction.maxRepairs", mMaxRepairs); 
    153  
    154         if (1 && mConsiderMemory2) 
    155         { 
    156                 mMemoryConst = (float)(sizeof(VspLeaf *) + sizeof (VspViewCell *)); 
    157         } 
    158         else 
    159         { 
    160                 Environment::GetSingleton()->GetFloatValue( 
    161                         "Hierarchy.Termination.memoryConst", mMemoryConst); 
    162         } 
    163  
    164153        // compare to bytes 
    165154        mTermMaxMemory *= (1024.0f * 1024.0f); 
     
    177166        Debug << "consider memory: " << mConsiderMemory << endl; 
    178167        Debug << "consider memory2: " << mConsiderMemory << endl; 
    179         Debug << "mem const: " << mMemoryConst << endl; 
    180168        Debug << "min steps of same kind: " << mMinStepsOfSameType << endl; 
    181169        Debug << "max steps of same kind: " << mMaxStepsOfSameType << endl; 
     
    19331921                         
    19341922                        isLeaf = newNode->IsLeaf(); 
    1935                         subStats.mRenderCostDecrease = oldNode->mRenderCostDecr; 
    1936                         entriesIncr = oldNode->mPvsEntriesIncr; 
     1923                        //subStats.mRenderCostDecrease = oldNode->mRenderCostDecr; 
     1924                        //entriesIncr = oldNode->mPvsEntriesIncr; 
    19371925                } 
    19381926                else 
     
    19441932                         
    19451933                        isLeaf = newNode->IsLeaf(); 
    1946                         subStats.mRenderCostDecrease = oldNode->mRenderCostDecr; 
    1947                         entriesIncr = oldNode->mPvsEntriesIncr; 
     1934                        //subStats.mRenderCostDecrease = oldNode->mRenderCostDecr; 
     1935                        //entriesIncr = oldNode->mPvsEntriesIncr; 
    19481936                }                
    19491937                                 
     
    20782066                 
    20792067                const float objectSpaceHierarchyMem = float( 
    2080                                                                                           subStats.mObjectSpaceSplits * sizeof(BvhLeaf *) +  
    2081                                                                                           (subStats.mObjectSpaceSplits - 1) * sizeof(BvhInterior *) +  
    2082                                                                                           sizeof(BvHierarchy) 
     2068                                                                                          subStats.mObjectSpaceSplits * sizeof(ObjectContainer) 
     2069                                                                                          //+ (subStats.mObjectSpaceSplits - 1) * sizeof(BvhInterior) 
     2070                                                                                          //+sizeof(BvHierarchy) 
    20832071                                                                                          ) / float(1024 * 1024); 
    20842072 
    20852073                         
    20862074                const float viewSpaceHierarchyMem = float( 
    2087                                                                                         subStats.mViewSpaceSplits * sizeof(VspLeaf *) +  
    2088                                                                                         (subStats.mViewSpaceSplits - 1) * sizeof(VspInterior *) +  
    2089                                                                                         sizeof(VspTree) 
     2075                                                                                        subStats.mViewSpaceSplits * sizeof(ObjectPvs) 
     2076                                                                                        //+ (subStats.mViewSpaceSplits - 1) * sizeof(VspInterior) 
     2077                                                                                        + sizeof(ObjectPvs) 
     2078                                                                                        //+ sizeof(VspTree) 
    20902079                                                                                        )  / float(1024 * 1024); 
    20912080 
     
    20932082                 
    20942083                subStats.Print(splitsStats); 
    2095  
    20962084                splits += splitsStepSize; 
    20972085 
    20982086                if (subStats.mNumSplits == mHierarchyStats.Leaves()) 
    20992087                        break; 
    2100         } 
     2088 
     2089                cout << subStats.mNumSplits << " "; 
     2090        } 
     2091        cout << endl; 
    21012092} 
    21022093 
Note: See TracChangeset for help on using the changeset viewer.