Jump to content

[SOLVED] where is remove resource in Unigine Engine?


photo

Recommended Posts

there is stream loading in Engine.

 

but

 

where is remove resource in Unigine Engine?

 

only -> void update(size_t &memory_usage,size_t limit,int reload)

 

cached_nodes , check distance and remove , etc ?

 

Occurs out of memory and vertex buffer

Link to comment

resource unloading is controlled by WorldManager and RenderManger engine classes. Textures, masks and meshes will be automatically unloaded when not accessed by rendering for more than a specific frame count. Have a look into source code, if I remember correctly there should be some update() method were the magic happens.

Link to comment

i know that rendermanager and WorldManager is deleting. when not Enough memory

 

In addition

 

who is delete cached_nodes and Nodes in class World

 

is always exist Nodes in memory?

Link to comment

You can reduce the system memory usage via mesh "compaction" option. This option removes mesh from the system memory and keeps it in the video memory only. You can't do any intersection or collision tests after that.

Link to comment
×
×
  • Create New...