Unload a level in C++

#1
So I've just gotten started in CryEngine and while I'm fairly experienced in C++ this API (while intuitive) is foreign to me.

To get a handle on things I started with a flappybird clone and it's working fairly well but I noticed that when I reload the level upon the bird's death the engine's ram usages goes up 0.1 GB- it doesn't go back down. Does the engine not automatically unload levels? Is this a memory leak I failed to deal with? (I am not allocating memory- except for a vector that definitely isn't 100 MB long and it definitely should be having it's destructor called)

If it doesn't unload them how do I tell it to unload them?

BTW I'm just issuing a console command, "map [level_name]"

Thanks for your time! :)

Who is online

Users browsing this forum: No registered users and 1 guest

cron