Game slows down when it shouldn't!

Andre87Andre87 Member Posts: 42
edited November -1 in Working with GS (Mac)
Hey. To get straight to the point, my game is experiencing a slowdown on LOW QUALITY graphics. Meaning, the same graphics I had used before, the game was fine. Now that I have developed it more, and add more behaviors and AI, the game slows down when I am using the same graphics.

Essentially, I have

A background space images spawner that spawns star fields one after the other to give the impression of flying in space.
A particle generator that generates tiny stars to fly across the screen.
A two frame animated Player space ship
And Enemies (no animation) moving around the screen and shooting at 0.7 - 1 second intervals

Could the fact that there are more complex behaviors installed be the slowdown problem? A memory leak?
The amount of graphics I have on screen is not nearly as complex and detailed as a lot of the iphone games out there. So if iphone can handle complex graphics, it should be able to handle the relatively low key graphics that I'm putting in this game.

Soooo, anyone know what the problem could be? Im thinking about starting out a completely new project and just filling up the entire thing from scratch. Thing is, Im not sure if it's worth the time or not. That is, I'm not sure if it will begin to slow down again once I fill it in from scratch.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    well the immense amount of spawning you are doing will kill your games memory usage. your spawning background stuff and prob those bullet s the enemies are firing non stop. you should really try it implement a recycling setup with your game. and remove all of the spawning.
  • Andre87Andre87 Member Posts: 42
    Yes I am doing a lot of spawning and constant firing. The problem is that the game is running worse than before with the SAME graphics. That is, the amount of spawning and the amount of movement and graphics are the same. But one compilations is fine, and the other, more developed in terms of behavior, is laggy (slow).
  • calvin9403calvin9403 Member Posts: 3,186
    try to recycle your actors like tenrdrmer says
    it will save up a lot of your memory

    ________________________________________________________
    http://www.gamesaladforum.com/
  • Andre87Andre87 Member Posts: 42
    watta u mean recycle? how? I delete all object that are off the screen.
  • calvin9403calvin9403 Member Posts: 3,186
    Andre87 said:
    watta u mean recycle? how? I delete all object that are off the screen.

    that will cause your game to become slower
Sign In or Register to comment.