Loading time too long & stuck in the game!

zellhuangzellhuang Member, PRO Posts: 79
edited November 2012 in Working with GS (Mac)
Hey GSer,
Thx for checking my problem! I have 2 serious problems that plagued me for several weeks X(
I'm developing a strategy game that some kinda like Catan. If you know Catan, you see, there are lots of terrain-hexagons in this game. Similarly, there are 61 terrain hexagons in my game. Plus,in the scene of game, there are characters, cards, UI, icons etc. There may be more than 100 actors in this scene. You see, these actors are necessary and I don't think I can delete any of them. As a result, here comes the problems:

(1) In the game scene, the total memory usage is running up to more than 230M(game engine around 180m). When this scene just loaded, it was around 200M, but 1 minutes later, it would go beyond 230M and the game would be stuck. The system just freezed that I can't do anything but click home button to quit the game. Even after I quit the game and entered it again, it still freezed there. So I have to double click the home button to clean the Apps on my iphone to restart the game.

(2)When it changes the scene to the game scene(where the system stuck),it always takes a round 1 minutes to load it...I think so much time on loading is disaster T_T

My game may be a bit complicated and I created around 200 attributes, most of them are Real, only around 30 of them are boolean.
Can anybody help me with my problem. I have developed it for 13 months X( When I started my project, there was no table function in the Mac creator. So I haven't use any table in my project.
Thank you in advance!!

Comments

  • famekraftsfamekrafts Member, BASIC Posts: 834
    Try to avoid spawn and destroy. See that all images have preload disabled. Use tables if you can. Make your total characters half. Just too many there. Always keep visiting the community to see the latest trends, developing for a year without learning and knowing new features is like a cardinal sin.
  • zellhuangzellhuang Member, PRO Posts: 79
    @wickedsunny hey,thx for your help. I did saw ★★ 31 Optimization Tips ★★ in August and have optimized my project though its way. That means I have unchecked the preload image box, avoided timer and etc. The only things I haven't changed yet is removing tons of global attributes, instead, replace them with tables. So I think I should try it now.BYW, the game engine memory usage is more than 170M, is that normal?
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Sounds like you're pushing the limits of GS those are huge sizes.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    unless you need it make sure you uncheck moveable on all objects to disable physics on them, that helps a bunch
Sign In or Register to comment.