WebXR performance on Meta Quest: how to hit 72 fps
By the Turbl team · · 11 min read
Good WebXR performance on Meta Quest means every frame is finished in about 13.9 milliseconds, which is 72 frames per second. Most slow scenes fail for one of three reasons: too many draw calls, too many expensive pixels, or JavaScript that takes too long. Measure first to learn which one you have, then fix that one thing.
Why frame rate matters more in VR
On a flat screen, a slow frame is a small hitch. In a headset, the picture is attached to your head. When a frame is late, the world stops matching your head movement for a moment.
Meta's documentation describes what the player sees. The system has to invent the missing frame. That shows up as stuttering animation and black bars at the sides of the view. Long stretches of this are uncomfortable, and the article on designing against VR motion sickness covers the other causes.
A VR scene is also drawn twice, once per eye. So the same scene costs more in a headset than on a monitor.
The frame budget in milliseconds
The frame budget is the time you have to finish one frame. You get it by dividing 1,000 milliseconds by the frame rate.
| Frame rate | Budget per frame |
|---|---|
| 60 fps | 16.7 ms |
| 72 fps | 13.9 ms |
| 90 fps | 11.1 ms |
Meta's WebXR performance page lists 13.7 ms for 72 fps and 16.6 ms for 60 fps. Plain division gives 13.9 ms and 16.7 ms. The difference is too small to matter.
Everything has to fit inside that time: your game logic, physics, the work of sending the scene to the graphics chip, and the drawing itself.
As of November 2026, Meta's frame rate page says a WebXR session runs at 90 fps by default on Quest 2 and at 72 fps on "Meta Quest headsets". That wording does not name Quest 3 or 3S, so do not assume. Read the real value from the session once it has started:
renderer.xr.addEventListener('sessionstart', () => {
const session = renderer.xr.getSession();
console.log(session.frameRate, session.supportedFrameRates);
// ask for 72 fps if the headset offers it
if (session.supportedFrameRates?.includes(72)) {
session.updateTargetFrameRate(72);
}
});
renderer.xr.getSession() is three.js, and it returns null until a session is running. The frameRate, supportedFrameRates and updateTargetFrameRate parts belong to WebXR itself, the browser standard for VR pages. Meta's browser has them from version 16.4. Check that they exist before you use them, because not every browser has them.
The list of supported rates differs per headset. Meta's page does not publish it, so log supportedFrameRates on your own device.
A steady 72 fps looks better than 90 fps that keeps dropping. If your scene cannot hold the higher rate, ask for the lower one.
For comparison, Meta's rule for native store apps asks for a rendering rate of at least 60 fps and a refresh rate of at least 72 Hz (rule VRC.Quest.Performance.1, updated October 22, 2025). The rule does not cover web pages, but it is a useful floor.
Measure first: is it the CPU or the GPU?
The CPU is the headset's main processor. It runs your JavaScript and prepares the drawing commands. The GPU is the graphics chip. It turns those commands into pixels. A scene is slow because one of them runs out of time, and the fixes are different.
Meta's workflow uses two quick tests.
- Draw nothing. Skip the render call for a moment and watch the frame time. If it barely changes, you are CPU bound: the slow part is your code. If it improves a lot, you are GPU bound.
- Draw almost no pixels. If you are GPU bound, set the render scale to something tiny, such as 0.01. If the frame time stays bad, the scene has too much geometry. Meta calls this vertex bound. If it improves, the problem is the pixels. Meta calls this fragment bound. In three.js the render scale is
renderer.xr.setFramebufferScaleFactor(0.01), and you must call it before the session starts.
Three tools give you the numbers.
OVR Metrics Tool. An app from Meta in the Horizon Store. It draws an overlay inside the headset on top of running apps. The overlay starts with only a frame rate graph. You pick the other numbers, such as CPU and GPU use and stale frames, on its Stats tab. A stale frame is one the headset had to show again because the next one was late. Install the tool before you open your page.
Chrome DevTools over USB. Turn on Developer Mode on the headset and connect it to a computer with a cable. The computer needs Android Platform Tools installed, and adb devices should list the headset. Open chrome://inspect/#devices in Chrome on the computer and click inspect next to your tab. You get the console and the Performance panel for the page running in the headset. Record a few seconds inside VR and look for long blocks of script.
Your renderer's own counters. In three.js, log them once per second:
const { calls, triangles } = renderer.info.render;
console.log(calls, triangles);
calls is the number of draw calls in the last frame. That number matters more than most people expect.
You can do early checks on a computer, as the guide to testing WebXR without a headset explains. Do not trust performance numbers from a laptop. Its graphics chip is far stronger than the mobile chip in a Quest.
Where the time goes
| Cost | What it is | Who pays | Main fix |
|---|---|---|---|
| Draw calls | One command to draw one object with one material | CPU | Instancing, merging |
| Triangles | The amount of geometry | GPU | Simpler models, levels of detail |
| Overdraw | The same pixel painted several times | GPU | Draw order, fewer transparent layers |
| Shader cost | The math done for each pixel | GPU | Cheaper materials, fewer lights |
| Textures | Large or uncompressed images | GPU | Compressed textures, smaller maps |
| Script and garbage collection | Your code, and pauses to free memory | CPU | Less work per frame, reuse objects |
Draw calls
A draw call is one instruction to the GPU: draw this object with this material. Each one costs CPU time, almost no matter how simple the object is.
Meta gives a blunt example. Drawing 1,000 single triangles as 1,000 separate draw calls would likely push an app below 72 fps. The same GPU can draw many times more triangles than that when they arrive in a few calls.
Meta does not publish a draw call limit for WebXR. Needle, the company behind the Needle Engine, suggests staying under about 100 to 150 draw calls and 200,000 to 300,000 visible triangles on Quest. Treat that as one vendor's rule of thumb, and measure your own scene.
Triangles
Triangles are cheaper than draw calls on Quest, as Meta's example above shows, but they are not free. Models made for film or desktop games are often far too dense. The guide to optimizing glTF models for VR shows how to cut them down.
Overdraw and transparency
Overdraw means painting the same pixel more than once. Solid objects can avoid most of it. If near objects are drawn first, the GPU skips the hidden pixels behind them. three.js and Babylon.js sort solid objects this way by default.
Transparent objects are drawn back to front, so every layer is painted. Smoke, glow and particle effects are the usual offenders. Meta also warns about objects that fade out. A fully invisible object still costs the full price until you stop drawing it.
A sky sphere can fool the sorting, because its center sits on the camera. It gets drawn first and then painted over. Set its draw order by hand so it renders last. In three.js that is the object's renderOrder property.
Shader cost and lights
A shader is the small program that computes the color of each pixel. Physically based materials, such as MeshStandardMaterial in three.js, look realistic and cost more than simple ones. Each extra light adds work for every pixel it touches.
Meta's advice is to keep to one directional light or one point light if you use physically based materials heavily. Real-time shadows draw the scene an extra time from the light's point of view. A shadow-casting point light needs six of those passes.
Script and garbage collection
JavaScript frees unused memory by itself. This is called garbage collection, and it can pause your code at a bad moment. If you create new vectors and matrices in every frame, you feed it. MDN's WebXR performance guide recommends creating those objects once and reusing them.
Meta suggests a second rule: look at any piece of logic that takes more than 2 ms per frame.
Fixes that pay off, in order
1. Cut draw calls with instancing and merging
Instancing draws many copies of one shape in a single draw call. In three.js, that is InstancedMesh:
const trees = new THREE.InstancedMesh(geometry, material, 500);
const m = new THREE.Matrix4();
for (let i = 0; i < 500; i++) {
m.setPosition(Math.random() * 100, 0, Math.random() * 100);
trees.setMatrixAt(i, m);
}
trees.instanceMatrix.needsUpdate = true;
scene.add(trees);
That is 500 trees in one draw call. For objects with different shapes and one shared material, three.js has BatchedMesh. For scenery that never moves, merge the meshes into one in your 3D editor before export.
The Quest browser also supports multiview, a way to draw both eyes in one pass. Meta says it can cut CPU use by 25% to 50% in CPU-bound scenes, and still labels it experimental. As of three.js 0.187, the classic WebGLRenderer has no multiview option. The newer WebGPURenderer has a multiview option, off by default, that works when it runs on its WebGL backend. The comparison of three.js and Babylon.js for VR covers how the two libraries differ.
2. Bake the lighting
Baking means computing light and shadow once in a 3D editor and saving the result in a texture, called a lightmap. The headset then only shows a picture. This works for anything that does not move. Keep one real-time light for the objects that do.
3. Compress textures
Meta recommends KTX 2.0 with Basis Universal for WebXR on Quest. These files are not always smaller to download than JPEG. The gain is in memory: the GPU reads the texture in compressed form, which is faster. three.js loads them with KTX2Loader.
4. Use fixed foveated rendering
Fixed foveated rendering draws the edges of each eye's image at lower resolution. The lenses blur the edges anyway, so players rarely notice. It helps only when you are fragment bound.
renderer.xr.setFoveation(1); // 0 = off, 1 = maximum
As of three.js 0.187, the default is already 1. Lower it if small text near the edges looks rough. Meta notes two cases where foveation does nothing: post-processing that renders to an intermediate buffer, and switching render targets in the middle of a frame.
5. Lower the framebuffer scale, last
The framebuffer scale sets how many pixels you render. Meta calls it a last resort and suggests 0.8 or 0.9. A scale of 0.9 renders 19% fewer pixels, and 0.8 renders 36% fewer. The picture gets softer.
renderer.xr.setFramebufferScaleFactor(0.9);
Call this before the session starts. three.js cannot change it during a session.
Smaller wins
- Set the clear color to black or white. Meta says the graphics chips in Quest 1 and Quest 2 clear those two colors faster.
- Spread work over frames. Meta's example updates animations 30 times per second while rendering at 90.
- Put a static background in a WebXR layer. A layer is an image the system draws by itself, so you render it once. In Meta's sample, GPU use fell from about 50% to about 24%.
Then measure again. Fixing a CPU problem often reveals a GPU problem behind it.
If you did not write the code
The same budgets apply to scenes built by a tool or by AI. Projects made with Turbl run as standard WebXR in the Quest browser, so they have 13.9 ms per frame like any other page. You change a project by asking in plain words, and you can use the same levers: fewer lights, fewer separate objects, less transparency. If you need the last bit of speed, native apps still have an edge over WebXR.
FAQ
What frame rate should a WebXR app run at on Meta Quest?
Aim for a steady 72 fps as the minimum. Go to 90 fps only if the scene holds it without drops. A stable lower rate looks better than a higher rate that stutters.
How many draw calls can a Quest handle in WebXR?
Meta does not publish a limit. Needle suggests staying under about 100 to 150 on Quest. The real limit depends on your materials and code, so measure with renderer.info.render.calls and OVR Metrics Tool.
Is WebXR slower than a native Quest app?
A little. Meta says there is a small amount of extra overhead from running inside a browser. Meta also says most slow web VR is slow because it has not been optimized, not because it is on the web.
How do I see the frame rate inside the headset?
Install OVR Metrics Tool from the Horizon Store and turn on Enable Persistent Overlay. It draws a frame rate graph on top of your WebXR session. Add CPU and GPU use on its Stats tab.
Does fixed foveated rendering reduce quality?
Yes, at the edges of the view. Most players do not notice in normal scenes. High-contrast scenes and text near the edges show it more, so test with your own content.
Sources
- WebXR performance optimization workflow, Meta Horizon OS Developers (updated July 21, 2026)
- WebXR Performance Best Practices, Meta Horizon OS Developers
- WebXR App Framerate Control, Meta Horizon OS Developers
- WebXR Fixed Foveated Rendering, Meta Horizon OS Developers
- Multiview WebGL Rendering, Meta Horizon OS Developers
- WebXR Layers, Meta Horizon OS Developers
- Debug Browser content, Meta Horizon OS Developers (updated July 22, 2026)
- Monitor Performance with OVR Metrics Tool, Meta Horizon OS Developers (updated October 2, 2026)
- VRC.Quest.Performance.1, Meta Horizon OS Developers (updated October 22, 2025)
- WebXR performance guide, MDN Web Docs
- XRWebGLLayer: fixedFoveation property, MDN Web Docs
- InstancedMesh, three.js docs
- BatchedMesh, three.js docs
- KTX2Loader, three.js docs
- WebXRManager, three.js docs
- VR Performance Optimization, Needle Engine docs