Hi there,
Since I have started to develop my game, it went well, but now performance is my greatest enemy.
Game is 2D top down space game. I can generate systems (everything in one scene) but the problem is how to not get 30fps with 500+ ships ?
Some trade, some fight, some just roam around. I don`t want to just disable them, because that would completely stop the economy in those systems.
I was planning on either:
1. Enabling the ship objects if they are closer the player than certain Distance.
2. Disabling entire systems in player is currently not in it(Would kill off economy)
I`m not running any OnGUI on those ships, but ofc they have to have Update.
Also some ships have 1 or more turrets on it, which are also having Update, firing and instantiating bullets(which drains A lot of fps when I tried 500 ship battle)
Any ideas / optimization tips?
↧