-----------------------------------------------------------------------------------
| 52 | } |
| 53 | //----------------------------------------------------------------------------------- |
| 54 | void BoneMemoryManager::growToDepth( size_t newDepth ) |
| 55 | { |
| 56 | // TODO: (dark_sylinc) give a specialized hint for each depth. |
| 57 | while( newDepth >= mMemoryManagers.size() ) |
| 58 | { |
| 59 | // Disable cleanups if we fall here (use _growToDepth instead) |
| 60 | mMemoryManagers.push_back( BoneArrayMemoryManager( |
| 61 | static_cast<uint16>( mMemoryManagers.size() ), 100u, std::numeric_limits<size_t>::max(), |
| 62 | ArrayMemoryManager::MAX_MEMORY_SLOTS, this ) ); |
| 63 | mMemoryManagers.back().initialize(); |
| 64 | } |
| 65 | } |
| 66 | //----------------------------------------------------------------------------------- |
| 67 | void BoneMemoryManager::_growToDepth( const vector<size_t>::type &bonesPerDepth ) |
| 68 | { |
nothing calls this directly
no test coverage detected