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 / [SOLVED] Creating sprite & text objects

Author
Message
george++
AGK Tool Maker
16
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 16th Aug 2018 09:51
Does anyone know how many times, I can create and delete sprites and text objects with safety.
I am wondering if this repeating process creates memory leaks

The author of this post has marked a post as an answer.

Go to answer

IronManhood
9
Years of Service
User Offline
Joined: 6th Feb 2015
Location: US
Posted: 16th Aug 2018 16:39
This post has been marked by the post author as the answer.
I ran this for over 5 min and the counts were 30,000,000+. The difference in memory usage from start to finish was less than 0.1MB.

GarBenjamin
AGK Developer
7
Years of Service
User Offline
Joined: 30th Nov 2016
Location: USA
Posted: 16th Aug 2018 17:00
30 MILLION+ !!!! LOL Quite an extreme test.

I wonder if it makes any difference if you let AppGameKit assign the IDs and return them to you instead of specifying the IDs at creation?
IronManhood
9
Years of Service
User Offline
Joined: 6th Feb 2015
Location: US
Posted: 16th Aug 2018 17:33
Quote: "I wonder if it makes any difference if you let AppGameKit assign the IDs and return them to you instead of specifying the IDs at creation?"


Here's a new test. This one is interesting. Everything performed almost identical to the first test up to the 3 minute mark. At 3 minutes, there was a sudden shift from 30.2MB to 25.1MB. However, it stayed at 25.1MB for the rest of the test. Conditions were the same, 5min+ and counts over 30,000,000.

george++
AGK Tool Maker
16
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 16th Aug 2018 19:58
@IronManhood: perfect answer,I should have thought it. Thank you.

Login to post a reply

Server time is: 2024-04-25 01:52:09
Your offset time is: 2024-04-25 01:52:09