MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / shrinkToFitMemoryPools

Method shrinkToFitMemoryPools

OgreMain/src/OgreSceneManager.cpp:519–532  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

517 }
518 //-----------------------------------------------------------------------
519 void SceneManager::shrinkToFitMemoryPools()
520 {
521 for( size_t i = 0; i < NUM_SCENE_MEMORY_MANAGER_TYPES; ++i )
522 {
523 mNodeMemoryManager[i].shrinkToFit();
524 mEntityMemoryManager[i].shrinkToFit();
525 mForwardPlusMemoryManager[i].shrinkToFit();
526 }
527
528 mLightMemoryManager.shrinkToFit();
529 // Skeletons are more complex because the new slot count must be multiple bonesPerDepth
530 // mSkeletonAnimationManager.shrinkToFit();
531 mTagPointNodeMemoryManager.shrinkToFit();
532 }
533 //-----------------------------------------------------------------------
534 Item *SceneManager::createItem(
535 const String &meshName,

Callers 2

destroyCleanupSceneMethod · 0.80
minimizeMemoryMethod · 0.80

Calls 1

shrinkToFitMethod · 0.45

Tested by

no test coverage detected