Search found 2 matches

by turnip
Tue Oct 18, 2022 7:05 pm
Forum: Beginners Help
Topic: How to properly remove stuff from memory?
Replies: 3
Views: 462

Re: How to properly remove stuff from memory?

Thanks for the clarification.
So if I am not mistaken the following will allow me to free memory from textures, meshes and nodes:
irr::scene::IMeshCache* mesh_cache = smgr->getMeshCache();
mesh_cache->clear();
video_driver->removeAllTextures();
node->remove();
I seem to have no issues so far ...
by turnip
Tue Oct 18, 2022 2:29 pm
Forum: Beginners Help
Topic: How to properly remove stuff from memory?
Replies: 3
Views: 462

How to properly remove stuff from memory?

I am trying to figure out how to delete things that I have added to a scene manager so that I can free memory to make way for a new scene.

removing an irr::scene::IAnimatedMeshSceneNode* node like so: node->remove(); seems to work but I am still a bit unclear as to just what's happening.

(if say ...