The Quest 3 in town: before and after the terrain made cheap (2026-11-30, branch perf/quest-terrain)
Measured on a Meta Quest 3 with Tools/Dev/Quest-Perf.ps1 (Quest performance in Docs/Development.md): staging, a test
account by the fountain (no other player, 17-18 mobs in sight), the Mobile renderer, MSAA 2×, 72 Hz, the GPU at 599 MHz all
along (the headset's clock never moved: the GPU % compare). fps, GPU %: VrApi (the headset); GPU ms, draw calls,
triangles: the game (--perf-run). "Outside" could not be measured: the staging test account has no DEV role, and walking out
with --goto needs it.
| Before (staging, old terrain) | After (staging + this branch, profile quest3) |
|
|---|---|---|
| fps (of 72) | 70.7 | 72.4 |
| GPU busy | 95 % | 77 % |
| GPU time per frame | 13.2 ms | 10.4 ms |
| Draw calls | 751 | 158 |
| Triangles (both passes) | 1 030 000 | 492 000 |
| Eye size | 1680 × 1760 | 1596 × 1672 (render scale 0.95) |
The target was 75 %: reached by the quest2 profile on this headset (69-72 %, below), not by quest3 (77 %). What is
left is mostly the safe zone's buildings (next section).
What cost what, before (2026-11-30-2143-quest3-before-parts.json, -2156-…-before-cumul.json)
Each step hides one group for 10 s. Hidden alone, almost nothing saved more than 1 % of GPU, whatever its draw calls: the near ground (170 draw calls) 0 %, the props (200) 1 %, the far rings (140) 1 %, the flight tower (150) 1 %; only the buildings (−9 %, −480 k triangles) and the shadows (−3 %, −490 k triangles: every house drawn again in each of the 4 shadow cascades it touches). MSAA off: no gain; foveation level 3 (VRS mode XR): worse. But hidden together they saved a lot: buildings + shadows + clouds + props + far rings −7.8 ms (13.0 → 5.2 ms). On this tiled GPU the geometry work (every draw, every triangle, for every tile of the view) and the pixel work overlap: cutting one while the other stays as long saves nothing. Both had to go down. The game's world entirely hidden still costs 3.2 ms (the sky, the compositor): 40 %.
What was done
- The near terrain by blocks (
Client.Core.TerrainBlocks): 4 × 4 chunks a block, one ground mesh and one multimesh per prop mesh a block (merged on a worker thread), instead of one mesh and up to six multimeshes per chunk. A block is built again once all its changed chunks are computed (the old one stays until then: no hole while one walks). - Props by distance (
TerrainDetail): coarser meshes pastlowPropRadius, the small blobs (< 0.5 m) left out pastsmallPropRadius, none pastpropRadius; only the props of the nearest blocks cast shadows. - Far rings: 256 m and 1 024 m tiles (were 128 m and 512 m), the same quads: a quarter of their draw calls.
- The flight tower: its ~150 static pieces merged into one mesh per material (
MeshMerge). - A quality profile per device (
Config/quality.json): on the Quest 3 the near ring at 9 chunks (288 m, PC 12), props to 8 (PC 12), shadows to 30 m in one cascade (PC 80 m in four), no shadows from the ground, the plaza's light paving (plaza_lite.glb: the stones' tops only, 11.5 k triangles instead of 56 k, none of the thin chamfers), the buildings' back faces culled (Blender exports them double-sided), the clouds' spheres with half the segments, the eyes drawn at 0.95. The PC keeps its look (screenshots before / after identical, the terrain's included).
After (2026-11-30-2248-quest3-after-parts.json, an earlier step of the profile: GPU 79 % then)
| Hidden | GPU % | Triangles |
|---|---|---|
| nothing | 79 | 512 k |
| all the buildings | 57 | 343 k |
| the plaza (light) | 73 | 487 k |
| the houses | 75 | 408 k |
| the fountain | 76 | 475 k |
| the shadows | 73 | 399 k |
| the far rings | 75 | 412 k |
| the clouds | 76 | 439 k |
| the near ground / the props | 77 / 77 | 449 k / 461 k |
The buildings are now the biggest cost by far (22 %): houses of 15-20 k triangles each (Blender bevels, every material a
draw call), the fountain 12 k, the plaza's area. Next step for the Quest: lighter building models for the headset (a _lite
variant per house, as for the plaza), then the shadows (6 %).
No shadows at all on a Quest (2026-11-30-2327-quest3-noshadow-town.json, the owner's choice)
The Quest profiles cast no shadow any more: the sun's off, every light's off, no object casting one (ShadowQuality). Same
scenario, profile quest3 otherwise unchanged:
| Shadows 30 m, one cascade | No shadows | |
|---|---|---|
| GPU busy | 77 % | 76 % |
| GPU time per frame | 10.4 ms | 10.3 ms |
| Draw calls | 158 | 130 |
| Triangles | 492 k | 373 k |
A small gain: the shadows were already cheap once drawn in one cascade (they cost 6 % with four). The buildings stay the biggest cost.
The town keeps only what the newcomer's game uses (2026-11-30-2349-quest3-notown-town.json, the owner's decision)
The four houses, the raid hall with its board and the dungeons' gate left the plaza (SafeZoneBuildings.Retired; the
models and the dungeons' code stay). Same scenario, profile quest3 (no shadows):
| With the buildings | Town reduced | |
|---|---|---|
| GPU busy | 76 % | 59 % |
| GPU time per frame | 10.3 ms | 6.6 ms |
| Draw calls | 130 | 137 (the crowd of mobs varies) |
| Triangles | 373 k | 294 k |
| fps | 72.2 | 72.3 |
The target (GPU at most 75 %) is met with 16 points to spare. The budget's ceilings (perf-budget.json) went down with it
(offline: town N 109 draw calls / 326 k triangles, W 85 / 254 k, meadow 433 / 460 k, crowd 315 / 471 k).
The budget without a headset
The same town, and a meadow and a crowd, are now checked on every Validate.ps1 by draw calls and triangles
(--budget, Quest budget in Docs/Development.md; ceilings in Libs/Client.Core/Config/perf-budget.json).
Other profiles on this headset
quest2(2026-11-30-2253-quest3-with-quest2-profile.json): near ring 8, props 7, no shadows, eyes at 0.9 (1512 × 1584): 69-72 %, 134 draw calls, 378 k triangles, 72 fps.--quality pcwas not measured on the headset with the new terrain.