

Your Frame time is the total amount of time spent generating one frame of the game. To determine this, launch your game in a non-debug build and enter the console command “stat unit” to display how much time is spent doing what. The first piece of data you want to collect is if your bottleneck is located in the game thread, in the rendering ( Draw) thread, or on the GPU. It is very natural for someone to say something like “Of course it’s slow! This level has 100,000 actors!”, but without properly gathering data you may spend a lot of time reducing the number of actors in your level instead of addressing the real performance problem which could have been completely unrelated and much easier to fix. The first step when attempting to fix any performance problem is to gather information so that you can make an informed decision as to how to proceed.

Is the frame rate in your game low? Do you know why? Could it be because you have too many enemies spawned at once or is it because one specific enemy is expensive? Could it be because you have a ton of visual effects or because of that sweet skill system you wrote?
