[mynameisace] FREE Performance Template - How To Only Trigger Actors Movements When On Screen...

mynameisacemynameisace Hull, UKMember Posts: 2,484
edited December 2011 in Working with GS (Mac)
Hey Guys,

I thought I'd share something that will help your games with scenes bigger than the screen size.

Having a big scene with loads of actors moving around can really affect performance and loading times, but if your game needs that (platformers, etc.) then it can be a huge sacrifice cutting down on enemies, etc.

Here's a platform template that only triggers moving platforms, enemies pacing etc. when the player is close enough for the actors to be visible:

http://ellerker.net/files/GSDistanceTriggers.zip

This will also work on any other game types where performance is going to be a problem, it doesn't have to be a platformer.

Hope this helps!
Ace

Comments

  • osucowboy18osucowboy18 Member Posts: 1,307
    Thanks Ace, I'll take a look at this later this evening!

    - Alex
  • EatingMyHatEatingMyHat Member Posts: 1,246
    Thanks! Not sure if I have a need for it right now, but any contribution to the community is welcome.
  • ozboybrianozboybrian PRO Posts: 2,102
    Love it!..
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    I've been using this technique for a while now on my latest platformer and i think you need to be careful where using it. i.e. i started putting it on almost every actor and then i happened to disable it on 1 actor and the RAM dropped a couple mb. Im now using it on anything that is rule heavy or animates etc but if i've simply got say an actor that does nothing but rotates i leave that alone.
  • JPickardJPickard Member Posts: 477
    This is gonna be a lifesaver. Thanks again. You rock.
  • creativeappscreativeapps Member Posts: 1,770
    Ace Thanks for sharing this useful template. Definlety helpful for future projects.
Sign In or Register to comment.