Game dev
Saved & recent

Profiling

Related terms: profiler, bottleneck, CPU bound, GPU bound

Measuring where the frame time goes before trying to make anything faster. A profiler records how long each system and function takes on every frame.

It shows whether the game is CPU bound (game logic, physics, too many draw calls) or GPU bound (too many pixels, heavy shaders). Speeding up anything other than the bottleneck changes nothing.

Further reading
Unity: Profiling your application
3 2 1.5 9 typical frame 15.5 ms 8 4 3 6 heavy frame 21 ms 16.7 ms budget 4.3 ms over 0 5 10 15 20 time (ms) scripts physics animation render work
The illustrative profiles total 15.5 and 21 ms. Scripts grow from 3 to 8 ms in the heavy frame. The dashed line marks the 16.7 ms budget for 60 FPS.

View in the full Game dev collection