Skip to content
RED SAGSkills
mediumGame Developer interview question

Your game runs at 40 FPS but must hit 60 FPS. How do you find and fix the problem?

What the interviewer wants to hear

  • Profile on target hardware, in a development or release build
  • Find whether it is CPU-bound or GPU-bound
  • CPU: scripts, physics, GC, draw call submission
  • GPU: overdraw, shaders, resolution, shadows, post-processing
  • Fix the biggest cost first and measure again

Model answer

At 60 FPS I have about 16.6 ms per frame, so I first profile on the target device using the Unity Profiler or Unreal Insights, not just the editor. The first question is whether the CPU or the GPU is the bottleneck, which I can see from frame timings or by lowering resolution and seeing if FPS improves. If it is CPU-bound, I look at expensive scripts, physics, garbage collection spikes and too many draw calls, and fix them with caching, pooling, batching or instancing. If it is GPU-bound, I check overdraw, heavy shaders, shadow cascades, post-processing and resolution, and use LODs, occlusion culling and simpler materials. I always fix the largest item first, measure again, and set budgets so the problem does not return.

Can you answer it under time pressure?

Take a timed medium round and get scored on every answer.

Start mock interview

More medium Game Developer questions