Tools for Enhancing Unity Performance!!
Published in
2 min readOct 25, 2019
Understanding the Problem from a detective perspective
You have worked very hard to get the unity game/app in the best shape and once you are testing it on the target device, it’s slow as a turtle.
You are not alone, I stumbled across this problem while building TrajektAR (AR app) when Occlusion Culling was not an option.
Let's wear the detective hat and by that I mean use Unity Profiler
And Make sure to enable at least the CPU & GPU profilers so we can find which one of those is the cause of the problem.
Lastly, we need to define our goal which can be descriped as
Increasing the FPS (frame rate per second)
I usually have a small script like this added to a text element to guide me while testing on the editor and on the target device(Mobile in this case).
using UnityEngine;using UnityEngine.UI;public class FrameRateMonitor : MonoBehaviour{void Update(){GetComponent<Text>().text = (1 / Time.deltaTime) + " fps"; }}