Preload. How to use it?

v00d0v00d0 Member Posts: 143
edited November -1 in Working with GS (Mac)
Hi guys. I've a question I'm ready to publish my game and my fixing something to increase the performance. But i don't understand when i should use preload. all in game is created by the spawners and there are some stuff with animation that spawn after some time.

At least what the best way to use this thing?

Comments

  • v00d0v00d0 Member Posts: 143
    no one can help me?
  • v00d0v00d0 Member Posts: 143
    up pls
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    If you look in the stickies, when this was launched GameSalad did an article on best practises!
    Basically, only have art rendered that is needed for when the scene opens. As your spawning, I'd assume you should leave preload to be on, if you wasn't spawning and had items off the initial screen you could set it that it didn't need to preload it, then the art would get rendered as of when it was needed. You need to be careful doing this as too much art rendering at once will hurt your FPS. As you're spawning though, i don't think you have time to spawn the actor and then render its art before its seen, i think you will have to leave preload checked. As always though, you should build an ad-hoc version and try out both ways on different hardware and go with what gives you the best results!
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    I use preload art on the main actor, the background, and anything the main actor collides with within the first 5 seconds of the game starting. I saw an issue on my 3GS that would have killed me in reviews. I had the platforms that the main character ran across unchecked, and when the game loaded up, the main character showed up before the platforms did because it's preload was checked, and had nowhere to stand on. Sometimes it would kinda fall through, and sometimes the platform would spawn while my main character was moving already, and made it whacky.

    iPhone 4S didn't have this issue because it's fast enough to load everything in time. But this is a handy piece of information to have when designing for older generation devices.
  • v00d0v00d0 Member Posts: 143
    ye i've a problem now on 3gs my game crash after the menu. i'm going for the adhoc version
Sign In or Register to comment.