Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Memory Management among types?

Author
Message
Fluorescent
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 1st Aug 2005
Location: Stockholm, Sweden
Posted: 13th Dec 2016 16:18
I think this is a question that has been asked and answered before, but I couldn't find an answer. So I'll ask again… Do I need to worry about memory managent when creating my own types? For example if I create a number of usertypes, fill these with values of different kinds, store them in arrays and other good stuff, will I eat up all the memory? Do I need to erase them?

I can obviously use the remove method on arrays to remove them from the array, but do I also need to delete the type somehow? Or does AppGameKit have a garbage collector built in?
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 13th Dec 2016 16:28
You do not need to do anything to free the memory of a type. If you shrink an array of types then the memory used by those types will be freed automatically.

Login to post a reply

Server time is: 2024-09-29 21:16:54
Your offset time is: 2024-09-29 21:16:54