Memory increase over multiple scenes - fixed?

DigiChainDigiChain Member, PRO Posts: 1,288
edited November -1 in Miscellaneous
Hi, I've read numerous things about this, and I realise I may be dragging up a long fixed issue here but...

Can anyone confirm whether this is now fixed - does GS clear memory from scene to scene or does it creep up until the device can't handle it and crash still?

Thanks

Comments

  • cyclops-gamescyclops-games Member Posts: 19
    Hi, I posted about this same issue last week, after experiencing memory leak in my current game.

    From my own experience and from the replies I had to my post, I think this is still a problem unfortunately. (Although some of it may be down to the viewer not being 100% reliable when it comes to reading performance- at least that's what I'm hoping!)

    Cheers
  • DigiChainDigiChain Member, PRO Posts: 1,288
    Oh dear, how many levels do you have in your game then? Do you see memory just increasing as you go from scene to scene?

    I haven't had chance to do any of my own tests just yet.
  • cyclops-gamescyclops-games Member Posts: 19
    Unfortunately its after the first level!
    I'm using quite a few rules and behaviours but nothing too complex and not a huge amount of actors. I'm also using recycling techniques rather than spawn and destroy so I've kept it as optimised as possible.
    When I first load up the level, the overall total comes in at about 25MB. I then have a button which replays the same level (so exactly the same scene, which has just been reset), and it goes up by about another 2-3MB. . It carries on doing this until I restart the viewer.
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Changing scenes does clear up some memory. It's better to change scene than it is to reset scene as far as memory is concerned. For Example, In my game I have 20 scenes, and each one starts off with about 14mb and works it way up to 20-25 by the time the level is done. Then it changes scene to the next level, and the memory is back down to 14mb, works up to 20-25mb for the level, level ends, rinse and repeat.
  • cyclops-gamescyclops-games Member Posts: 19
    Ok thanks for the tip SlickZero! I'll give changing scenes a go as opposed to resetting, and see if it makes a difference
Sign In or Register to comment.