Game Development Community

Freeing assets

by Isaac Barbosa · in Torque Game Builder · 08/25/2007 (10:58 am) · 2 replies

I'm reading every thread about memory compsumption here.

I have a doubt:

I see people talking about "freeing images" as they are not needed anymore or when a new level is loaded. I'm wondering if that is not an automatic action or call when endLevel is called?

So if I have a 800 x 600 sprite on level 1 and I go to level 2 I must state a safeDelete for that object before load level 2?

Please let me know how "freeing images" works: automatic action or manual action.

None of my image maps have the allow unload box checked. Would that be a problem? how this works? I dind't find info in the torque docs about this.

Thanks

#1
08/25/2007 (4:13 pm)
Thanks Marc:

I will try checking the allow unload check box. :)
#2
08/25/2007 (4:33 pm)
Just to make sure: I first had posted something and removed it temporally again as I am not sure if 1.5.1 fully works like that.
Will first have to check that. Basically it meant that removing the unload flag is a bad idea if you don't handle the loading and purge manually.