spawner causing hiccups in game

hey there,
I'm polishing my game, an endless runner variant, and I notice whenever I test it on my device (via GS Preview and adhoc), the first few seconds of gameplay is little choppy, and then smooths out after a few seconds.

I've narrowed the source down to the spawner that generates 6 actors at the beginning of the game. I have a timer in it that says for 5 seconds, spawn actors. Those actors then recycle throughout the rest of the game.

I'm in the process of optimizing it and replacing the timers per the "timers are for chumps" topic. But are there any other ideas as to what could be causing the hiccups in the game?

I used Xcode's "Instruments" to try and pinpoint exactly what/where/when, but I couldn't find anything...

thanks for reading :)

Comments

  • OskarDeveloperOskarDeveloper Member Posts: 533
    Recycle actors instead of spawning them!:)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You say you have a spawner that spawns six actors and that your timer runs for five seconds, but I'm not understanding that. Spawning is instant so why the five second timer? Do you have other timers inside of that timer?

    Can you explain the spawn rule a bit more? I'm guessing it's not as simple as:

    Spawn [actor]
    Spawn [actor]
    Spawn [actor]
    Spawn [actor]
    Spawn [actor]
    Spawn [actor]

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.