Game Lags EXTREMELY in a certain area

My game is an infinite runner and in the main scene after the distance counter reaches about 500, the game lags to the point where it is unplayable. However the character eventually collides with an obstacle and sometimes plays the death animation and sometimes doesn't, then it goes to the game over screen and everything is fine. When the game is played again it works fine up until the 500 mark again. Please if anyone has any idea as to what the problem might be I would really appreciate it. I don't know what is causing it so I don't know where I have to look to fix it. Please help. Thank you in advance.

Comments

  • allornothingallornothing Member, PRO Posts: 126
    It could be a memory issue - are you destroying or recycling the obstacles being spawned? If not you would be gradually storying 100s of actors in memory.
  • MattcusMattcus Member Posts: 85
    The objects do get destroyed.
  • allornothingallornothing Member, PRO Posts: 126
    How is your memory usage (if you can run the viewer on a device)? If it's gradually creeping up constantly theres a leak somewhere - other than that, I'm not sure what else could cause it to become unstable after a certain amount of time has passed
  • MattcusMattcus Member Posts: 85
    I;m not able to run the game on a device, and I'm not sure how to check memory usage within game salad itself.
  • TokuharaTokuhara Member Posts: 94
    If your using the Gamesalad Preview and not a device that is why you have slowdowns, you better test it on a device.
  • MattcusMattcus Member Posts: 85
    I don't have a developers licence to be able to test the game on a device, and I only want to pay for the licence after I have finished my game and want to publish it. However I am unable to finish my game if I can't test it easily during development.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    I don't have a developers licence to be able to test the game on a device, and I only want to pay for the licence after I have finished my game and want to publish it. However I am unable to finish my game if I can't test it easily during development.
    you're caught in a catch 22. you need a device to actually test the gameplay :)
  • MattcusMattcus Member Posts: 85
    I know it's frustrating. But is there really no other way to increase performance in the Game Salad creator? Because testing it in there is fine for what I need at the moment.
  • UtopianGamesUtopianGames Member Posts: 5,692
    Sounds strange if the count is only getting to 500 but obviously depends how fast the counter is going.

    In all of our runner templates I recycle, even the jet pack is recycled as the hero gets put back to the start of the scene so maybe you should try the recycle method.

    Darren.
  • MattcusMattcus Member Posts: 85
    edited July 2013
    How do you mean recycle? Because I thought I was doing that already.
    And the counter is going up fairly quickly.

    EDIT: It takes about 30 seconds to reach 500
Sign In or Register to comment.