- Home /
Not destroy enemies in 2d game - memory impact
Hello,
I know pretty much zero about game performance. I am trying to figure out if I can afford to put this feature in my game: I would like to have the enemies killed to pile up in a sort of heap, so I was thinking about not using the same old destroying routine after they die.
The game itself is really simple, it's 2D and for mobile. It has a fixed background and there's not much moving around aside from the player, the enemies and few npcs (which would get destroyed when offscreen), we're talking around ten 32X32 sprites onscreen at a time. Once dead the enemies would not be removed but they wouldn't need to be raycasting, colliding, ecc.. Just only be there for visual sake.
So the question is: would a mobile device easily handle not removed enemies in the order of a hundred or so (I could destroy those at the bottom of the heap) and not slow down or crash the game? Are there some example of this kind of feature (other games that don't destroy dead enemies)? Or is there a good practice too keep enemies in game without impacting memory resources?
Thanks for the attention.
Your answer
Follow this Question
Related Questions
Is this generalized Destroy function safe to use? 0 Answers
Handling large vertex counts. 0 Answers
IOS Terminated due to memory issue because of a 2D animation with 60 frames in it 1 Answer
AssetBundle INCREASES Memory Allocation 1 Answer
my games depend on 2D Sprites and animations , How to optimize the game size and memory allocating ? 1 Answer