Spawning actors on pause screen is faster in the iOS viewer

FogelbergFogelberg Member Posts: 103
edited November -1 in Working with GS (Mac)
Hi there,

I have a strange problem that I can't seem to solve. Maybe somebody here knows what to do.
On a pause screen, I spawn 15 actors and change their alpha from 0 to 1 when all are spawn. They all originate from the same actor, but they all have different images, which I set individually when each actor has been spawned.

When I run this on the iOS viewer, on an iPod 4, spawning takes ca 2 seconds.
When I run this as an ad hoc app, the exact same spawning takes ca 4 seconds.

Anybody knows what's going on here and how to fix it?

Comments

  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    I don't know, this has happened to me to,
    Maybe it's that the ios viewer is sped up,
    Or maybe there is a problem with ad-hocs,
    Still 2secs is a long time for spawning an actor
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    the 15 actors spawning at once is just bogging it down. The viewer tends to be faster then the adhoc some of the times, hence the point of always making sure you do adhoc testing as well

    I would recommend not spawning them and having them offscreen from the start and just change there position on screen when you would want to spawn them. Also if you can have less then 15
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    Oh god!,
    I did not read the 15actors part,
    Well there's your answer!,
    Right above this^^
  • FogelbergFogelberg Member Posts: 103
    Hmm.. I just don't understand why it takes double the time to spawn in ad hoc. Logically you think it would be the other way around.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Spawning 15 actors at once is going to be insane on your memory and FPS. Just place the actors in the pause scene your pause scene will most likely appear to load much faster
  • FogelbergFogelberg Member Posts: 103
    Thanks for your advice about how to avoiding spawning actors, but I think in this case, spawning is the right thing to do. I'm spawning 15 versions of the same actor - only thing different is the image and width/height, and some parameters to identify the actor. Having 15 individual actors would mean a bigger game and 15 places to edit code every time I want to update something.
  • FogelbergFogelberg Member Posts: 103
    Tshirtbooth: Yeah I'm also thinking it's a bug. It's not a super big issue at the moment though. I think I will just keep the pause screen hidden until everything is spawned - making it look like it's still loading.
Sign In or Register to comment.