Memory snowballing
Franto
Member Posts: 779
I read in a thread on here, that if you have many scenes for levels, the further you progress, the higher the ram usage. Some proposed that you destroy all actors from previous scenes before moving on to the next scene.
My question is, should I just make all my levels in one scene, wait for game salad to create a feature that automatically destroys data from previous scenes, or do it myself and create actors to destroy before going to next scene?
Isn't there a behavior with a "destroy everything in scene" statement? As far as I'm aware, the only to destroy an actor is to put that command within the actor with a condition. Doesn't that mean I would have to put it in every actor in the scene? It be much easier to just have one actor with a "destroy everything" on them.
My question is, should I just make all my levels in one scene, wait for game salad to create a feature that automatically destroys data from previous scenes, or do it myself and create actors to destroy before going to next scene?
Isn't there a behavior with a "destroy everything in scene" statement? As far as I'm aware, the only to destroy an actor is to put that command within the actor with a condition. Doesn't that mean I would have to put it in every actor in the scene? It be much easier to just have one actor with a "destroy everything" on them.
Comments
I was planning on using around 60 scenes.. Can anyone confirm this won't kill memory usage ?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I love gamesalad but this seems like basic stuff (dumping resources when a new scene loads).. Using many scenes for any game is quite ordinary..
For my tentative game.. I plan on having probably 40-50 actors when all said and done - then another 60+ scenes (for each level basically, and main menu, options, etc.).
I have to Kill each actor in scene just before another scene loads just to keep memory management to a minimal? ack - I'm not trying to harp on gamesalad but just a little surprised this hasn't been tackeled in the earlier stages
Keep in mind also that GameSalad Creator is an ever-evolving tool. So just because something functions a certain way now doesn't mean it always was or always will work that way. http://gamesalad.com/creator/roadmap
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Oh well - I'll assume that gamesalad does indeed do it - I can't fathom developing seperate scenes and not clearing the resources from previous.. Guess I know when I get 30 scenes deep with equal amount of actors
I understand Gamesalad is a work in progress and continues to get updated. And I really do enjoy it - therefore I'm a little startled if this is true about 'memory snowballing' with more scenes - as scenes are the basis of making levels and games!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
www.rossmanbrosgames.com