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 / Recycling text and sprite IDs?

Author
Message
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 26th Aug 2011 23:37
This works...



but what happens to those first two text entities? Are they just orphaned and can never be referenced again? And is that "bad"? As in, will it clog up memory, or some such?

Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 30th Aug 2011 19:00
It's technically bad practice, but they will get cleaned up when your app ends. The AppGameKit player keeps an internal reference to the sprite pointers regardless of what happens to the ID, and does a reset between runs of your app.
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 30th Aug 2011 20:44
Okay, thanks, that's good to know. I've been deleting sprite and text entities when I'm done with them, just in case.

Login to post a reply

Server time is: 2024-11-21 17:23:10
Your offset time is: 2024-11-21 17:23:10