Docs/perf/2026-12-01-quest2-town.md

The Quest 2 in several places, and its profile tuned (2026-12-01, branch perf/quest2)

Measured on a Meta Quest 2 (Adreno 650, 72 Hz) and, the same runs, a Quest 3, with Tools/Dev/Quest-Perf.ps1 and Tools/Dev/Quest-Places.ps1 (Quest performance in Docs/Development.md): staging (protocol 80), the DEV test account, the Mobile renderer, MSAA 2×, both headsets on mains power (battery 84 % / 75 % at the end, 39 °C / 41 °C: the limits, 25 % and 45 °C, were never near). Each place: 25-30 s to settle, then 45 s measured. The Quest 2's profile was picked by the device (Quality profile: quest2 (Android, Quest 2) in the log) in every run but the one forced.

Columns: fps (of 72, VrApi), GPU % (VrApi), at full clock (GPU % × its clock / 587 MHz, see below), GPU ms (the game's), CPU % (VrApi), draw calls, triangles, temp (the headset's own, °C). The worst place first.

The GPU's clock moves on a Quest 2 (441 to 587 MHz, the OS follows the load; a Quest 3 holds 599 MHz): 76 % at 490 MHz is 63 % of what the chip can do. The target (GPU at most 75 %) is read at full clock: the figure that does not hide the headroom. The "before" tables were measured with --quality-set giving back the profile as it was.

The places (staging's world, seed 1234, found with WorldGen)

Place Where What it is
town --fly 2 --goto 0,12 --walk 1 by the fountain, the plaza, 17 mobs
meadow --fly 3 --goto 150,40 --walk 1 meadow, a hundred metres from the plaza
forest --fly 3 --goto -320,1080 --walk 1 dense forest, 1.1 km out: 139 mobs in the active cells
mountains --fly 60 --goto 1960,0 --pitch -5 flown 60 m over a summit of 136 m (196 m up): a far view over the land
lake --fly 3 --goto -350,-925 --walk 1 the lake of crystals, 21 m deep, swum in
glide --fly 300 --goto 150,40 --walk 1 --glide falls from 300 m, then glides level at 30 m/s over the meadow: the terrain streams in

The Quest 2, before: profile quest2 as it was (eyes at 0.9, near ring 8, props 7, no culling)

Place fps GPU % at full clock MHz GPU ms CPU % Draws Triangles Temp
forest 19.9 33 29 525 12.9 38 1 092 676 k 38.7
town 72.7 86 86 587 11.8 30 123 321 k 38.7
mountains 72.6 78 78 587 10.8 37 122 271 k 38.7
lake 72.5 79 77 573 11.0 27 64 207 k 39.0
glide 66.4 77 76 586 11.4 44 68 217 k 38.8
meadow 72.4 79 68 506 10.8 34 148 275 k 38.7

Two things were wrong. The forest: 139 mobs in the active cells (5 × 5 cells of 64 m round the player), each a view of about 8 draw calls and 70 nodes: 1 092 draw calls and 20 fps with the GPU at 29 %. Nothing the profile set mattered (no props at all: still 20 fps): the frame was the main thread's. The town at 86 % with the clock pinned at 587 MHz. The other places sat at 68-78 % at full clock; the glide dropped frames (66 fps: the terrain streaming in).

The Quest 2, after: the tuned profile quest2

Place fps GPU % at full clock MHz GPU ms CPU % Draws Triangles Temp
town 72.7 76 74 573 10.4 24 123 245 k 38.7
lake 72.7 78 63 475 10.9 24 64 133 k 39.0
forest 72.4 78 60 452 10.7 36 112 353 k 38.7
mountains 72.5 78 59 441 10.8 25 89 196 k 38.9
glide 69.2 68 58 498 9.5 36 69 145 k 39.0
meadow 72.4 68 55 473 8.6 27 112 205 k 38.7

Held: 72 fps and the GPU at most 75 % at full clock in the town (74 %, the worst place), the forest, the mountains, the lake and the meadow (55-63 %). Not held: the glide, 69 fps (7.6 stale frames a second, against 0.4-0.8 elsewhere; 66 before): a glide at 30 m/s builds terrain blocks faster than the main thread has the frame for them. The GPU is not it (58 %). Not tuned.

What each step gave (--quality-set, no new export between them)

Step Town (GPU at full clock) Forest
the profile as it was 86 % 20 fps, 1 092 draws
mobs hidden past 70 m (mobRadius), only their creature script stopped 34 fps, 447 draws
… past 40 m 46 fps
… and their view's own script stopped (SetProcess) 68 fps, GPU 85 %
… and the whole view stops processing (ProcessMode = Disabled), the town's pieces hidden past 500 m (townRadius) 72.3 fps, 112 draws, GPU 63 %
the far rings at 16 quads (farQuads: 321 k → 249 k triangles) 86 → 82 %
eyes at 0.8 instead of 0.9 (1152 × 1267; 0.85 gave 80 %) 82 → 74 %

Tried and left out: MSAA off (no change, as on the Quest 3: a tile GPU), the near ring at 6-7 chunks and props at 4-5 (−1 to −2 points for a visible loss), the clouds at 0.3 (no change), the far rings at 8 quads (no change).

What the headset showed on the way:

  • Hiding is not stopping. Visible = false on a mob's view and SetProcess(false) on its script left its skeleton, its animations and its nameplate processing (10 000 nodes, a main thread at 14.8 ms). ProcessMode = Disabled on the view stops the whole subtree. A culled mob is brought up to date one frame in six, and its distance is read from its last state, not from the node (a hidden view does not move).
  • The town's pieces are drawn from afar. The training ground alone is 280 draw calls (rods, ropes, dummies), drawn when the view looks its way from a kilometre (PerfRecorder's scene_draws showed it); the town's five parts are hidden past townRadius. They did not change the forest's frame rate (the main thread was the limit) but its GPU: 448 → 112 draws.
  • The GPU time barely moves with a group hidden alone (the town: buildings −9 points, the far rings −9, the plaza −4, the clouds −3, the fountain −2, the ground −2); the world entirely hidden still costs 4.3 ms, as on the Quest 3.
  • The main thread (probes_ms, PerfProbe): in the forest, after the fix, 2.9 ms of Main and 1.7 of the creatures' poses a frame.

The profile (Libs/Client.Core/Config/quality.json): near ring 8 chunks, props 7 / 4 / 2, no shadows, the plaza's light paving, clouds at 0.5, MSAA 2 as before; new: renderScale 0.9 → 0.8, mobRadius 40 m, farQuads 16, townRadius 500 m. The PC and Quest 3 profiles are untouched (the new settings are off there: 0, 32, 0).

The Quest 3, the same places, its profile (quest3, unchanged)

Place fps GPU % GPU ms CPU % Draws Triangles Temp
forest 25.2 36 11.0 40 1 266 808 k 41.0
town 72.4 67 8.1 24 128 336 k 42.0
lake 72.3 60 6.7 23 75 216 k 41.0
mountains 71.5 59 6.8 29 149 298 k 41.0
meadow 72.2 56 6.0 28 180 337 k 42.0
glide 69.7 56 7.0 37 69 202 k 41.0

The Quest 3 has the same two problems the Quest 2 had: the forest (25 fps, 143 mobs) and the glide (69.7 fps, 6.8 stale frames a second). With only the two new settings that cost the look nothing there, mobRadius=40,townRadius=500 (--quality-set, not saved in the profile: the task was to leave the Quest 3's alone):

Place fps GPU % Draws Triangles
forest 69.7 (from 25.2) 58 143 530 k
mountains 71.1 53 98 286 k

So the Quest 3 would almost hold the forest with them in its profile ("mobRadius": 40, "townRadius": 500): the owner's call. Its town reads 67 % here against 59 % in 2026-11-30-quest3-town.md (another view, a few mobs more; not looked into).

The gap: the Quest 3's profile on the Quest 2 (--quality quest3)

Place fps GPU % at full clock GPU ms Draws Triangles
town 72.7 93 93 12.7 123 332 k
forest 20.0 32 29 12.1 1 100 694 k

The Quest 2 cannot take the Quest 3's profile: the town alone is at 93 % (86 % with the old quest2, 74 % now). Its GPU does the town in 10.4 ms where the Quest 3's does it in 8.1.

The budget without a headset

Libs/Client.Core/Config/perf-budget.json has a quest2 view now (offline, 1000 × 1000, 90°): town N 108 draw calls / 244 k triangles, E 420 / 299 k, S 104 / 203 k, W 84 / 180 k, meadow 102 / 207 k, crowd 314 / 387 k, video 180 / 195 MB (ceilings a few % over). Validate.ps1's Quest budget step runs quest3 then quest2. The budget cannot see what mattered most here (the mobs' processing, the clock): measure in the headset.

Not done, risks

  • The glide (69 fps on both headsets): the main thread's terrain work when the ground streams at 30 m/s. Not tuned.
  • mobRadius 40 m: a mob beyond 40 m is not drawn, so a ranged mob's shot comes from nothing. Raise it if the fights suffer (--quality-set mobRadius=60 to try; not measured at 60 with the final code).
  • --glide is a test hook (the server takes it for a DEV move; it is not the player's own physics).
  • The forest's 139 mobs are staging's: nobody kills them; a real server's forests may be quieter.