When to use Destroy Attribute?

JCFordJCFord Member Posts: 785
edited November -1 in Working with GS (Mac)
Is it a good ideas to use the destroy attribute where ever possible,

I.E. if you have a main menu screen - once the user clicks to go into the game should I destroy the graphics that created the menu - will this help performance?

Comments

  • BeyondtheTechBeyondtheTech Member Posts: 809
    I think you mean Destroy Actor? I believe Actors are limited to the Scenes they're on. If you're not Preserving the Scene, then you don't need to worry about Destroying any Actors when you're Changing to another Scene.
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    I use loading screens, when changing scene.

    So my actual scene is running in the backround, while loading the next scene and the loading screen actor is shown in the front.

    There are animations on my screens, so I think, in my case it is not bad to destroy the animated actors, so loading will occure quicker, because the app doesn't need processor time for animating behind the laoding screen.

    Am I right?
  • netdzynrnetdzynr Member Posts: 296
    I would like to know the answer to this as well. Does moving something offscreen also offer performance benefits?
  • firemaplegamesfiremaplegames Member Posts: 3,211
    moving something offscreen does not offer any benefit. the engine still renders them.
Sign In or Register to comment.