Changeset 1732 for GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
- Timestamp:
- 11/09/06 13:36:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1731 r1732 151 151 Environment::GetSingleton()->GetIntValue( 152 152 "Hierarchy.Construction.maxRepairs", mMaxRepairs); 153 154 if (1 && mConsiderMemory2)155 {156 mMemoryConst = (float)(sizeof(VspLeaf *) + sizeof (VspViewCell *));157 }158 else159 {160 Environment::GetSingleton()->GetFloatValue(161 "Hierarchy.Termination.memoryConst", mMemoryConst);162 }163 164 153 // compare to bytes 165 154 mTermMaxMemory *= (1024.0f * 1024.0f); … … 177 166 Debug << "consider memory: " << mConsiderMemory << endl; 178 167 Debug << "consider memory2: " << mConsiderMemory << endl; 179 Debug << "mem const: " << mMemoryConst << endl;180 168 Debug << "min steps of same kind: " << mMinStepsOfSameType << endl; 181 169 Debug << "max steps of same kind: " << mMaxStepsOfSameType << endl; … … 1933 1921 1934 1922 isLeaf = newNode->IsLeaf(); 1935 subStats.mRenderCostDecrease = oldNode->mRenderCostDecr;1936 entriesIncr = oldNode->mPvsEntriesIncr;1923 //subStats.mRenderCostDecrease = oldNode->mRenderCostDecr; 1924 //entriesIncr = oldNode->mPvsEntriesIncr; 1937 1925 } 1938 1926 else … … 1944 1932 1945 1933 isLeaf = newNode->IsLeaf(); 1946 subStats.mRenderCostDecrease = oldNode->mRenderCostDecr;1947 entriesIncr = oldNode->mPvsEntriesIncr;1934 //subStats.mRenderCostDecrease = oldNode->mRenderCostDecr; 1935 //entriesIncr = oldNode->mPvsEntriesIncr; 1948 1936 } 1949 1937 … … 2078 2066 2079 2067 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) 2083 2071 ) / float(1024 * 1024); 2084 2072 2085 2073 2086 2074 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) 2090 2079 ) / float(1024 * 1024); 2091 2080 … … 2093 2082 2094 2083 subStats.Print(splitsStats); 2095 2096 2084 splits += splitsStepSize; 2097 2085 2098 2086 if (subStats.mNumSplits == mHierarchyStats.Leaves()) 2099 2087 break; 2100 } 2088 2089 cout << subStats.mNumSplits << " "; 2090 } 2091 cout << endl; 2101 2092 } 2102 2093
Note: See TracChangeset
for help on using the changeset viewer.