Development Update 5 - Optimisation
- Nathan Williams (Programmer)
- Oct 20, 2015
- 1 min read
Recently we tried to add in a new environment without the use of the terrain system that is built into Unity. The Terrain system didn’t support features we intended to implement so we opted for a plane with manually placed trees. However, when we placed the new terrain in game we experienced a severe drop in frames. The game dropped below 60 fps and the lack of frames made gameplay very difficult so we decided to track down other performance issues so we could keep the new terrain system. Unity has a profiler that allows developers to monitor a large number of system performance variables. This tool allowed us to find that the script that is responsible for the forts was using a large amount of unnecessary resources. I took it upon myself to completely rewrite the script to try to increase the frame rate. The complete rewrite proved beneficial as we saw a massive increase in frames per second, allowing us to keep the new environment in-game.
Old Environment:

New Environment:

Comments