A way to force GS to dump memory?

Fodder76Fodder76 Member Posts: 154
edited November -1 in Working with GS (Mac)
Hello there,

I'm having issues with my game that, I think, result from a memory leak of some kind. I notice that everything works as it should the first several times through a level, but the more you play the more things start to get bogged down, and over time really bizarre things start happening. Its as if Gamesalad can't keep up with all of the rules it needs to execute.

Is there any way to force it to take a breather and dump all of its memory?

I'm not 100% certain this is the cause, but considering the game is always working fine the first several plays, then starts to bog down, its my best guess.

Thanks for any advice you can give!

Comments

  • PhoticsPhotics Member Posts: 4,172
    Fodder76 said:
    Is there any way to force it to take a breather and dump all of its memory?

    With BOT, the memory stays under control with the "Change Scene" behavior.

    With Project: Salvage, I don't want to change scenes. So, I run out of memory quickly, even though there's only one image on the screen at a time. I didn't know how to fix it. That's just how GameSalad seems to be right now.
  • Fodder76Fodder76 Member Posts: 154
    Hmm. I am changing scenes. After the level ends, it switches to a 'post race' scene. From there the player can hit replay and go back to the start of the level.

    Does changing the scene typically dump memory?
  • PhoticsPhotics Member Posts: 4,172
    Cardinal said:
    You could easily change to the same scene everytime. It may help a little bit!

    I'm using iAds in Project: Salvage. If I change the scene too often, that's less advertisements shown... which means less revenue. Additionally, it adds significant loading times, which I think customers won't like. So, when I hit the memory limit, that's when I knew to stop working on the project and send it off to Apple.

    I'm still waiting for the app to be reviewed. Maybe soon you can see what the app is about and know why it's a single scene.
  • PhoticsPhotics Member Posts: 4,172
    Cardinal said:
    Hmmm... Project Salvage... It reminds me "TERMINATOR" Does it have super hot robots?

    I think the answer to this question is yes... TANK (male) and Krystal (female)... they're not robots though. Krystal is an android. While TANK, he's a giant sentient machine.

    The app is so sexy, I decided to rate it 17+ for Frequent/Intense Mature/Suggestive Themes... which makes it unavailable in Saudi Arabia and the United Arab Emirates.
  • gamedivisiongamedivision Member Posts: 807
    Well change scene is meant to dump the memory but sometimes does sometimes doesn't,with my game the only way to dump the memory would be to go to the main menu then back to the game,to do that on every level isn't good enough,because of loading times between scenes,they are working on the loading times, not sure if that will help with memory dump.
  • ORBZORBZ Member Posts: 1,304
    In my experience memory usage spikes up to a limit, then scales back down when not in use. Garbage collection kicks in when it can but there is no way to do it manually. My game uses aprox 64MB of memory but it starts at 40 then ramps up to 60ish, sometimes spikes at 70ish and then hovers back down around 64MB.
  • Fodder76Fodder76 Member Posts: 154
    Thanks for the replies guys. I think I'll just try going in and making all of my actors more efficient. Its a real shame that GS is such a memory hog, my game isn't that complicated. :) Ah well.
Sign In or Register to comment.