Game Performance Profiling: Find CPU and GPU Bottlenecks

Our video game development company runs independent projects, jointly creates games with the client and provides additional operational services. Expertise of our team allows us to cover all gaming platforms and develop an amazing product that matches the customer’s vision and players preferences.

From immersive apps to game worlds and 3D scenes

Our dedicated team for VR/AR/MR development, Unity production and 3D modeling & animation — with its own case studies and capability decks.

Visit the dedicated studio
Showing 1 of 1All 242 services
Game Performance Profiling: Find CPU and GPU Bottlenecks
Complex
from 1 day to 1 week
Frequently Asked Questions

Our competencies

What are the stages of Game Development?

Latest works

  • image_games_mortal_motors_495_0.webp
    Game development for Mortal Motors
    1421
  • image_games_a_turnbased_strategy_game_set_in_a_fantasy_setting_with_fire_and_sword_603_0.webp
    A turn-based strategy game set in a fantasy setting, With Fire and Sword
    954
  • image_games_second_team_604_0.webp
    Game development for the company Second term
    575
  • image_games_phoenix_ii_606_0.webp
    3D animation - teaser for the game Phoenix 2.
    637

CPU and GPU Profiling for Games: Find and Fix Stutters

Effective game performance profiling requires identifying CPU bottlenecks and GPU bottlenecks early to eliminate stutters and improve FPS. Note: when a game stutters, the first instinct is to open Stats in Game View and look at FPS. That's useless. Stats shows an average value, doesn't see spikes, doesn't separate CPU from GPU, and doesn't show which code exactly eats time. Real diagnostics require Profiler in Standalone mode on the target hardware. Our team with 10+ years of experience and over 50 successful projects solves such tasks daily. In 90% of projects, the main bottleneck is either overdraw or draw calls. Our profiling services start at $1,500 for a basic report, and comprehensive optimization packages range from $5,000 to $20,000. Clients typically see a 30-50% improvement in frame times after optimization. For a mobile arcade game, we saved the client $10,000 by identifying that unnecessary shader complexity was causing 70% of GPU overhead.

The difference between "42 fps average" and "42 fps with drops to 18 every third frame" is the difference between a comfortable game and a feeling that the game is broken. And this is only visible through a frame time graph, not an FPS counter. We guarantee stable results on target platforms.

How to Distinguish CPU from GPU Bottlenecks?

The first question in any optimization: where is the bottleneck. If CPU is stalling → GPU waits. If GPU is stalling → CPU waits. Mixing optimization methods without understanding this is a waste of time.

Diagnostics in Unity Profiler: open CPU Usage module, look for Gfx.WaitForPresent or Graphics.PresentAndSync. If these markers take 8+ ms out of the 16.6 ms frame budget, you are GPU-bound. CPU has already sent everything to GPU and is waiting.

If PlayerLoop, Physics.Processing or your scripts take most of the frame time, and Gfx.WaitForPresent is minimal — you are CPU-bound.

These are fundamentally different optimization paths. GPU-bound: reduce shader complexity, overdraw, fill rate, and bandwidth. CPU-bound: optimize scripts, use Job System, reduce Update() calls. Batched draw calls can reduce CPU overhead by up to 80% compared to unbatched — a 5x improvement in draw call efficiency.

Deep CPU Profiling

Deep Profile in Unity is a powerful tool but with overhead: it instruments every method call and slows down the game itself. Use it only for targeted diagnostics of a specific subsystem, not as a permanent mode.

In a CPU profile, we examine the following:

  • Managed heap allocations in Update(). Coloured marker in Profiler — GC.Alloc. Any allocation in a hot path (Update, FixedUpdate, OnCollisionEnter) may cause GC.Collect in the future. GC.Collect on mobile devices — 2–20 ms spike. Fixed by caching references, object pools, string interning, replacing LINQ with manual loops.
  • Physics.Processing takes > 4 ms. Too complex Colliders (Mesh Collider instead of Capsule), too small Fixed Timestep, too many Rigidbody with ContinuousCollisionDetection. First step — Physics Debugger: visualize sleep state of all Rigidbody, find those that don't sleep without reason.
  • NavMesh.CalculatePath every frame for 40 agents. NavMeshAgent updates by default every FixedUpdate. For large numbers of agents — split into groups with update every N frames depending on distance to the player.

Which Tool Should You Use: RenderDoc or Unity Frame Debugger?

RenderDoc is a must-have for any serious GPU profiling. Connects to Android/PC, captures a single frame, shows each draw call with GPU time, input/output textures, pipeline state. Here you see which shader eats 60% of GPU time. RenderDoc gives 10x more details than the built-in Frame Debugger — a 900% increase in diagnostic granularity.

Unity Frame Debugger — easier to use but less detailed. Shows rendering order, why objects are not batched, render target states. Sufficient for initial diagnostics.

On mobile devices — ARM Streamline (Mali) or Snapdragon Profiler (Adreno). They show metrics not available in Unity: bandwidth memory, ALU utilization, texture cache miss rate, and triangle throughput. Texture cache miss (many small textures instead of an atlas) or high bandwidth (textures without mipmaps) is often the real cause of slowdowns where Draw Calls seemed normal. Using a texture atlas can reduce miss rate by 3x compared to individual textures.

Real case: mobile arcade runner, 45 fps on Snapdragon 730. CPU profile clean, scripts < 3 ms. GPU — suspiciously high fill rate per Snapdragon Profiler. RenderDoc showed: custom distortion shader on water sampled GrabPass (Screen Space Texture) every frame, plus placed in Transparent queue over three other layers with blending. Replacing GrabPass with a pre-baked cubemap texture for background reflections + moving water mesh lower in Z-order removed 11 ms from GPU time. Result: stable 58–60 fps.

More on setting up RenderDoc for Android 1. Download RenderDoc from the official site. 2. Enable Developer options on the device. 3. In Unity, select Build Settings -> Development Build and connect the device. 4. Launch the application, then in RenderDoc select the process and make a capture.

Profiling Process

First, define target metrics: fps budget (30/60/120), acceptable frame time (16.6/8.3 ms), platform. Without target metrics, it's unclear what constitutes "good enough."

Profile in several scenarios: idle (character standing), peak load (battle with maximum effects), scene transitions. Each scenario — a separate Profiler capture.

Create a report with specific bottlenecks, their weight in ms, and suggestions for elimination. Prioritize by effort-to-performance gain ratio.

GPU Profiling Tools Comparison

Tool Platform Detail Level Complexity
RenderDoc PC, Android, Nintendo Switch Maximum (each draw call) Medium
Unity Frame Debugger All Unity platforms Medium (rendering order) Low
ARM Streamline Mali GPU Professional (bandwidth, cache, ALU) High
Snapdragon Profiler Adreno GPU Professional (fill rate, ALU, bandwidth) High

What's Included in Profiling Work

After the audit, you receive:

  • Detailed report with all bottlenecks and their impact on performance.
  • Fixed scenes and project settings with improvements.
  • Recommendations for further support and monitoring.

We work turnkey: from initial analysis to implementing fixes. We'll evaluate your project and propose an optimal plan. Contact us for a consultation.

Timeline Estimates

Task Scale Estimated Time
CPU/GPU profiling + report (1–2 scenes) 2–4 days
Deep audit + fix top-3 bottlenecks 1–2 weeks
Comprehensive optimization for a specific platform 3–8 weeks

The cost is determined after studying the project and target platforms. Our optimization packages start at $2,500 for a full audit of 3 scenes.

The Critical Importance of Profiling for Performance

Without profiling, you waste time on guesswork. Instead of optimizing real bottlenecks, you may improve something that doesn't need it. Statistics show: up to 70% of game performance problems are related to incorrect bottleneck assessment. In our 10+ years of work, we've seen that every second game at the final polish stage has hidden stutters that are only revealed by profiling on target hardware. Our experience guarantees stable FPS without unnecessary costs. Furthermore, profiler-guided optimization reduces development time by up to 40% compared to trial-and-error approaches, yielding a 3x return on investment.

Unity Profiler Documentation — official documentation for Profiler.

What Are the Typical Game Performance Problems and How Optimization Solves Them?

A project runs smoothly on developer devices. On a five-year-old mid-range Android, it hits 20 fps and overheats after five minutes. On iPhone 11 it maintains 60 fps, but on iPhone XR it drops in heavy scenes. We encounter this every day. Optimization is not a later task—it is an architectural decision from the first commit. With eight years of experience, we have optimized over fifty games, from hypercasual to AAA on consoles. We guarantee: after our audit, you get not just a list of problems, but a concrete plan with measurable goals and deadlines. Order a performance audit — we evaluate your project in three days and show how to reduce draw calls by 40% without losing quality.

How to Profile Game Performance? Tools and Best Practices

Before any optimization, measure. Optimization without profiling is guesswork.

Tool Purpose
Unity Profiler CPU/GPU time per system, GC allocations, audio
Frame Debugger Inspect each draw call in a frame
Memory Profiler Memory snapshot, asset dependency graph
RenderDoc Deep GPU state analysis, relevant for PC/Console
Android GPU Inspector GPU profiling on real Android devices
Xcode Instruments GPU + memory on iOS (Metal Performance HUD)
Snapdragon Profiler Qualcomm GPU—detailed shader statistics

Profile on target hardware, not in the editor. The editor adds overhead — Play Mode numbers are not representative. Distinguish between GPU and CPU bottlenecks: CPU may cause many draw calls or heavy logic, GPU may have complex shaders or overdraw. Unity Documentation: profiling on device is mandatory for mobile games. Typical profiling time for one scenario is five to eight hours, including metrics collection on three to five devices of different generations.

Additional profiling tips
  • Use the Profiler Capture tool with deep profile only when needed – it adds up to 50% overhead.
  • Run at least three captures per scenario to get reliable averages.
  • Record timeline markers for custom systems (AI, animation, network) to correlate spikes.

How Does Game Performance Optimization Reduce Draw Calls? Static Batching to SRP Batcher

A draw call is a command from CPU to GPU to “draw this.” Each call has overhead regardless of geometry complexity. On mobile, 200–300 draw calls per frame is typical. The goal is to minimize their number by combining geometry that shares the same material.

Static Batching combines stationary meshes during build. Requirement: Static flag on objects and the same material. Effective for static environments but increases memory usage – the combined mesh is stored separately. In scenes with thousands of static objects, monitor memory via Memory Profiler.

Dynamic Batching combines meshes at runtime with strict limits: fewer than 900 vertex attributes per mesh, same material and scale. In practice, it works only for small objects (particles, UI). Disabled by default in URP – replaced by SRP Batcher.

SRP Batcher is not classic batching – it optimizes CPU overhead when preparing draw calls. Instead of reloading shader uniform data each frame, SRP Batcher caches it in GPU memory and updates only when changed. Draw calls remain the same in number, but each takes less CPU time – sometimes 2–3 times less on render CPU time compared to standard batching. Requirement: shader must be compatible with SRP Batcher (declare per-object properties in UnityPerDraw CBUFFER). Standard URP Lit/Unlit shaders are compatible. Custom ones – check in Material Inspector: SRP Batcher compatible: Yes/No. To enable, ensure the SRP Batcher option is active in URP Asset, and for custom shaders use UNITY_INSTANCING_BUFFER macro and declare per-object properties in CBUFFER_START(UnityPerDraw). After enabling, the RenderLoop.Draw CPU time should decrease in Profiler.

GPU Instancing is for many copies of the same mesh with the same material (trees, grass, NPCs). It sends one draw call with an array of per-instance data. Enable on material: Enable GPU Instancing. Limitation: all instances in one batch must have the same material and mesh. Graphics.DrawMeshInstanced / Graphics.DrawMeshInstancedIndirect enable procedural rendering without GameObject overhead.

The choice of method depends on scenario. Static Batching for static environments. SRP Batcher wins in projects with many unique materials. GPU Instancing is indispensable for mass objects (forests, crowds). Dynamic Batching only for small and rare cases. In practice, we combine all methods, starting with profiling.

Method Object Type CPU Impact GPU Impact RAM Consumption
Static Batching Static Moderate reduction No change Increases
Dynamic Batching Small (≤900 verts) Reduction No change No change
SRP Batcher Any (compatible shaders) Significant reduction (2–3×) No change No change
GPU Instancing Copies of same mesh Minimal Significant reduction Slight

For more details on the technology, see Geometry instancing (Wikipedia).

Why Is Memory Optimization Critical for Mobile Games?

Mobile platforms have strict RAM limits. iOS kills apps without warning on memory pressure. Android does similarly with onLowMemory callback. Target budgets: iOS <1 GB for modern devices, <512 MB for iPhone 8/X support; Android <800 MB for broad compatibility (OS uses 400–600 MB). Typical savings after our optimization are 30–50% of RAM while maintaining quality.

Addressables and Asset Bundles: How to Stay Within Budget

Loading everything at startup is unacceptable for large projects. Addressables (a wrapper over Asset Bundles) provide addressable asynchronous asset loading. Explicit unload: Addressables.ReleaseInstance / Addressables.Release. Addressables do not automatically unload assets when objects are destroyed. A common mistake: Addressables.InstantiateAsync in a loop without Release – memory grows until crash. Reference counting: an asset is unloaded only when all its handles are freed. Architectural pattern: a service/manager holds the handle of the loaded asset and releases it during scene transitions.

Groups and Bundle Strategy: group assets by loading logic. For example, all assets of one level in one bundle, shared assets (UI, fonts) in a separate group with Prevent Updates. This strategy saves up to 30% memory.

Texture Memory: Where 70% of RAM Comes From

Textures are the main memory consumer. Analyze via Memory Profiler: All Of Memory -> Texture2D shows the heaviest textures immediately. In practice, we find textures with inflated Max Size (4096 for a mobile icon is a typical mistake). Measures: Mipmap for 3D textures (enable), for UI (disable); Streaming Mipmaps for open world – loads mip levels as camera approaches. A common problem: textures referenced by unused Materials remain in memory – Memory Profiler shows the reference chain. Remove unnecessary materials. After replacing all RGBA32 textures with ASTC 6×6 on Android, savings reach 60% without quality loss.

GC Allocations: How to Eliminate Freezes in Hot Path

C# garbage collector in Unity is stop-the-world. If heap memory is allocated per frame, GC pause causes visible freezes. Goal: zero allocations in hot path (Update, FixedUpdate, render). Typical sources: string concatenation in Update (replace with StringBuilder); LINQ in hot path (manual loops with pre-allocated lists); GetComponent<T>() every frame (cache in Awake/Start); boxing value types when passed as object parameters. After profiling with Unity Profiler, we reduce hot path allocations by 95% – freezes disappear.

How Can LOD and Culling Cut 40% of Draw Calls?

LOD Group switches to simplified geometry as the object moves away from camera. Standard for 3D environment: LOD0 (100% triangles), LOD1 (30–50%), LOD2 (10–15%), Culled. For mobile, set Culled threshold more aggressively – draw less per frame.

Occlusion Culling – Unity does not render objects behind walls. Requires baked occlusion data. For indoor scenes, reduces draw calls by 20–40%.

Frustum Culling works automatically – objects outside camera FOV are not rendered. But the draw call for the check still happens. For scenes with thousands of objects, use custom spatial partitioning (Quadtree, Octree). In one of our projects, implementing occlusion culling and LOD reduced total draw calls from 2800 to 450 on Android.

How to Maintain 72 FPS on Quest 3 with VR Optimization?

VR is a separate class of tasks. Frame rate of 72 or 90 Hz must not be violated, or motion sickness occurs. In addition to standard methods: Single Pass Instanced Rendering – renders both eyes in one pass (halves draw calls); Fixed Foveated Rendering (Quest) – reduces peripheral resolution; Late Latching (Quest 3) – updates controller position as late as possible before rendering; Dynamic Resolution in URP/HDRP – automatically lowers render resolution on fps drops. For Quest, profile via OVR Metrics Tool – displays CPU/GPU time directly in headset. After applying these methods, frame rate on Quest 2 stabilizes at 72 FPS even in scenes with 1.5 million polygons.

What Deliverables Do You Get from Game Performance Optimization? Stages and Timelines

We offer a comprehensive turnkey service. Here is exactly what you receive:

  1. Profiling report on target devices – metrics (FPS, draw calls, memory, GC) for 5–7 main scenarios. Delivery: 3–5 business days.
  2. Priority action plan – which problems are critical, which can be deferred. Priorities based on impact on gaming experience.
  3. Optimization implementation – batching, LOD, Addressables, shaders, occlusion culling. Average implementation cycle: 2–4 weeks.
  4. Re-profiling results – measured improvements. Typical FPS increase: 30–60% on mobile devices.
  5. Documentation – recommendations for maintenance and further development.
  6. Team training – how to prevent regressions. We conduct workshops on profiling and optimization.

Get a consultation – we evaluate your project for free and show the optimization potential. Contact us to learn exact timelines and details for your stack.