Spawn or Recycle

CapCap Member Posts: 225
edited November -1 in Working with GS (Mac)
Imagine I have an actor that I use very rarely and if, then only for some seconds. Is it better to spawn / destroy it then instead of hiding it all the time somewhere outside of the scene until needed?

Thanks for reply.

Comments

  • CaniohCanioh Member Posts: 200
    Recycle!
  • DrGlickertDrGlickert Member Posts: 1,135
    From what I understand, you should always recycle. Even if it's just one or two actors. It helps immensly with processor and memory resources. And, it's really not that hard to change a self.position to ... instead of putting on a Destroy Actor behavior (also, I think that if you set alpha to 0 this helps slightly as well. Not positive about that though!!).

    Good luck!
Sign In or Register to comment.