Will hiding actors that are not "onscreen" help performance?
bladeolson
Member Posts: 295
As my main character moves through my game he will encounter many actors. Is it better performance to have these hidden until they are actually viewable? Does that make sense?
Any examples on how to do this would be appreciated.
Any examples on how to do this would be appreciated.
Comments
If you never need the actor for the rest of your scene...destroy it. Otherwise keep it around to recycle later. Its much better than spawning a new one.
What I am asking is a little different though..
So I have a large map like 5000 tall and as the player jumps up is it better to hide or kill the scenery below? and vice verca when he goes down should I hide what is above?
I have not built a map that large...but I hear in some other posts that many are using "tiled" scenes and dumping tiles when they are no longer needed...or moving them to the top to allow continuation and to reduce the number of PNG files needed.