Will a BIG scene with a few thousand actors slow down the game?

SheldonkwSheldonkw Member Posts: 25
edited August 2012 in Working with GS (Mac)
I am trying to create a big world that a character can explore. It will have roughly 14,000 actors that are scenery, all of these actors run a formula that snaps them to a grid. Will having this many actors significantly slow down the game when it is run on a device?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Another way of doing it is to use tables and just one scene perhaps?

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • SheldonkwSheldonkw Member Posts: 25
    The creator is already running kinda slow when i play it and this is gonna take me a few weeks to make but oh well...... thanks!
  • SheldonkwSheldonkw Member Posts: 25
    i am using one scene already and i have considered tables, the only thing is i have made a game like that and it took over a half an hour to spawn in all the actors :( thanks anyway.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    @Sheldonkw

    Possibly might help to spawn the off-screen actors just before they are needed... when they're 200 pixels + max. width of your screen size away from the middle of the screen perhaps; then destroy them when they're more than that....

    Anyhow, one consideration: any actors placed further than 1000 pixels away from the screen perimeter will automatically be destroyed when that scene is run, I think....

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • quantumsheepquantumsheep Member Posts: 8,188
    Perhaps have the scenery already in the scene, then just use tables to position them correctly for each 'room'?

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • SheldonkwSheldonkw Member Posts: 25
    if any one has played the original legend of zelda, it is kind of like that except the camera follows you unlike zelda where it moves the camera to the next sector when you reach the edge obviously loading the next part of the map.

    If the actors are destroyed when you get a thousand pixels away, gamesalad is trying to prevent the issue i might run into. Can i make that number smaller so they are destroyed sooner.
  • SheldonkwSheldonkw Member Posts: 25
    i could have it snap them to grid when the actor is a certain distance away? Is the snapping what is slowing it down?
  • SheldonkwSheldonkw Member Posts: 25
    Thank you! Thank you! Thank you! Having them snap to grid when the actor gets close solves the problem!
  • ORBZORBZ Member Posts: 1,304
    Yes, that will cause slowdown. Just have the ones near the player appear, everything else can be in a table.
Sign In or Register to comment.