Guide · Unity VR performance
How to optimize VR performance in Unity for Meta Quest
Unity VR performance work goes in a fixed order: know your frame budget, measure on the headset, find out whether the CPU or the GPU is the limit, then fix the biggest cost first. This guide walks through that order for Meta Quest 3 and Quest 2, with the checks I run on real projects. I'm a Senior Unity Developer at IDRAK AI, where I build and optimize enterprise VR training apps for standalone Quest.
- For
- Unity developers and teams shipping to Meta Quest 3, Quest 2 or Quest 3S
- Covers
- Frame budgets, profiling, GPU and CPU fixes, memory and loading
- Render pipeline
- Written for URP with OpenXR; most points also apply to the Built-in pipeline
- Updated
- 23 November 2026
1. Know your frame budget
A VR app has to finish each frame, for both eyes, inside the headset's refresh interval. Miss it and the headset has to reproject an old frame, which users feel as judder, especially when they turn their head.
- 72 Hz
- about 13.9 ms per frame
- 90 Hz
- about 11.1 ms per frame
- 120 Hz
- about 8.3 ms per frame
Pick the refresh rate you will ship at before you optimize, and treat the budget as a hard limit with some headroom, because the operating system and other apps share the chip. Also note that Quest 3 renders more pixels per eye than Quest 2 (2064 × 2208 against 1832 × 1920). A faster chip does not mean a GPU-bound scene automatically runs better on Quest 3, so profile on every headset you support.
2. Measure on the headset, not in the Editor
Frame times in the Unity Editor on a desktop GPU tell you almost nothing about a mobile chip in a headset. Build to the device and measure there.
- Unity Profiler connected to a Development Build on the headset (over USB or Wi-Fi) shows CPU time per system and per script, and GPU time where the device reports it.
- Frame Debugger shows every draw call in a frame, so you can see what is actually being rendered and why batching broke.
- Memory Profiler (package) shows which textures, meshes and audio clips use the memory.
- OVR Metrics Tool from Meta overlays live frame rate, CPU and GPU utilisation and stale frames inside the headset, which is useful in release builds where the Unity Profiler isn't connected.
- Meta Quest Developer Hub and Meta's RenderDoc build go deeper into GPU passes when you need to see what one frame costs on the GPU.
Measure the same scenes, the same moments and the same build type before and after every change. Development builds add overhead, so confirm the final numbers on a release build.
3. Find out if you're CPU-bound or GPU-bound
Most wasted optimization time comes from fixing the wrong side. If the GPU is the limit, cutting script time changes nothing, and the other way round.
- GPU-bound: GPU time is close to or over the budget, while the CPU spends a large part of the frame waiting for the GPU (wait markers such as
Gfx.WaitForPresentOnGfxThreadin the Profiler). Lowering the render scale makes it faster. - CPU-bound: main-thread or render-thread time is over budget, and lowering the render scale changes little. Look at which scripts, physics steps or rendering setup work dominate.
- Spikes, not averages: a scene can average well inside the budget and still judder. Look at the worst frames: garbage collection, loading, instantiating objects and shader compilation are the usual causes.
A quick test: drop the render scale sharply for one build. If the frame rate jumps, you're GPU-bound on pixels. If it doesn't move, look at the CPU or at vertex and draw-call cost.
Short on time?
I profile Unity VR projects on the headset and send back the bottlenecks ranked, with a fix plan. You decide who implements it.
4. Get the project settings right first
These settings cost nothing in content and are often wrong in projects that started as PC VR or as a desktop app.
- Multiview / Single Pass Instanced rendering in the OpenXR settings, so both eyes are drawn in one pass instead of two.
- IL2CPP and ARM64 for the Android build.
- 4× MSAA is the usual choice on Quest. It's cheap on the tile-based GPU and avoids the cost of post-process anti-aliasing.
- No HDR, no full-screen post-processing unless you have measured that you can afford it. Each full-screen pass is expensive on a mobile GPU.
- Turn off the URP Depth Texture and Opaque Texture unless a shader actually needs them; they force extra copies of the frame.
- Fixed foveated rendering lowers resolution at the edges of the lenses, where users notice least. Raise it until you can see it, then step back.
- Render scale and dynamic resolution are your safety valve for GPU cost, not a fix for a scene that is far over budget.
5. Fix GPU cost: pixels, overdraw, lighting
- Overdraw: transparent materials, particles, UI panels and foliage drawn on top of each other multiply the pixel cost. Use opaque materials wherever you can, keep particles small and few, and avoid big transparent surfaces close to the camera.
- Alpha-tested materials (cutout) are costly on tile-based GPUs. Model the shape in geometry, or use them sparingly.
- Shaders: use simple shaders (URP Simple Lit, Baked Lit or Unlit) for most surfaces and save the full Lit shader for the objects users look at closely.
- Lighting: bake lighting into lightmaps and use light probes for moving objects. Real-time shadows and several real-time lights are among the most expensive things you can do on Quest.
- Reflections: baked reflection probes instead of real-time ones.
6. Cut draw calls and triangles
Every draw call costs CPU time to set up, and dense scenes, such as warehouses, factories and imported CAD or Revit buildings, have thousands of objects. Meta's published guidance for Quest 2 has long been in the range of a few hundred draw calls and roughly 750,000 to 1,000,000 triangles per frame. Treat those as rough ceilings and measure your own scene.
- SRP Batcher on, with materials that share a shader variant.
- GPU instancing for repeated objects such as racks, boxes, chairs and props. In a warehouse trainer I worked on, repeated shelving and stock were the bulk of the scene, and instancing is what made that density practical on standalone VR.
- Static batching for scenery that never moves, keeping an eye on the memory it adds.
- Occlusion culling for interiors: in an aisle or a corridor, most of the building is hidden behind walls and racks and shouldn't be drawn.
- LODs and decimation for imported CAD and Revit models, which often carry far more detail than anyone can see in a headset. Remove hidden internal parts and merge small meshes that share a material.
- Texture atlases so more objects can share one material and batch together.
7. Fix CPU cost: scripts, physics, garbage collection
- Garbage collection spikes: remove per-frame allocations, such as string building, LINQ,
newlists and closures inUpdate. The Profiler's GC Alloc column shows where they come from. - Cache lookups: no
GetComponent,FindorCamera.maincalls every frame. - Fewer Update calls: run checks on events or on a timer instead of every frame, and disable components that aren't doing anything.
- Physics: use primitive colliders instead of mesh colliders where you can, set up the layer collision matrix so unrelated layers never test against each other, and choose the fixed timestep on purpose. A faster step makes held objects smoother but costs CPU.
- Pool objects that are spawned and destroyed often, instead of instantiating them mid-session.
- Warm up shaders during loading so the first appearance of an effect doesn't cause a hitch.
8. Memory, textures and loading
- Texture compression: ASTC for Android, with sizes set per texture. A 4K texture on a small prop is a common waste.
- Mipmaps on for 3D textures, so distant surfaces sample smaller images; off for UI that is always seen at the same size.
- Audio: stream long music clips and compress the rest, instead of keeping everything decompressed in memory.
- Addressables: load content when it is needed and release it afterwards, instead of keeping every scene's assets in memory from the start.
- Async loading: load scenes asynchronously behind a simple, cheap loading environment, so the headset keeps rendering at full rate while content loads.
- Build size: the build report and the Editor log show which assets take the most space; unused assets in
Resourcesfolders are always included.
Quick checklist
- Target refresh rate chosen, and the budget in milliseconds written down
- Profiled on every target headset, on a release-like build
- CPU-bound or GPU-bound decided before changing anything
- Multiview, IL2CPP/ARM64, 4× MSAA, no HDR or unused URP textures
- Lighting baked; real-time shadows and lights justified one by one
- Overdraw from transparency, particles and UI checked
- SRP Batcher, GPU instancing and occlusion culling working (confirm in the Frame Debugger)
- No per-frame garbage, no hitches from loading or shader compilation
- Textures compressed and sized; content loaded with Addressables when needed
- Before and after numbers recorded on the same scenes and device
Unity VR performance FAQ
Why does my Unity VR app run well in the Editor but stutter on Quest?
The Editor uses your desktop CPU and GPU, which are many times faster than the mobile chip in a standalone headset, and it doesn't render at the headset's resolution and refresh rate. Only measurements on the headset count.
Is Quest 3 always faster than Quest 2?
Its chip is faster, but it also renders more pixels per eye. A GPU-bound scene can still miss its budget on Quest 3, so profile on each headset you ship to.
What should I fix first?
Whatever the profiler says is the biggest cost in your worst scene. Usually that's lighting and overdraw on the GPU side, or draw calls and per-frame allocations on the CPU side, but measure before you decide.
Can a PC VR project be brought to standalone Quest?
Usually yes, but it is more than a platform switch. Lighting, shaders, meshes and textures often need to be rebuilt for the Quest budget. Start with the heaviest scene so the risks show early. See how I approach porting.
Want someone to do this on your project?
Tell me the headset, the Unity version and where it slows down. I'll reply with next steps, usually a short profiling task first so fixes are quoted accurately.