Finds and fixes frame-rate and load-time problems in IWSDK WebXR apps in Meta Quest Browser (Quest 2/3/3S, and what Meta documents for Meta VR Glasses) with Meta's WebXR performance workflow: frame budgets, CPU vs GPU vs vertex vs fragment tests, frame-time logging comparable with OVR Metrics (percentiles, hitches, CPU/GPU work time), draw calls and instancing, animated crowds (animation LOD, vertex animation textures), triangles, textures, lights, shadows, fixed foveation (default 1.0), framebuffer scale, target frame rate (`supportedFrameRates`, `updateTargetFrameRate`), multiview (already on), quad/cylinder layers, costly IWSDK feature flags, locomotion input latency, and bundle/loading checks, all sourced. Use when the user says "it stutters on the Quest", "low FPS", "frame drops", "hitches", "optimize for Quest", "too many draw calls", "GPU bound", "foveation", "run at 90 Hz", "framebuffer scale", "input lag", "crowd of enemies", "benchmark", "slow to load", "bundle too big", or before a store build.
Ships in IWSDK Core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Made by Navid Mirzaaghazadeh · part of iwsdk-webxr-skills · MIT
Meta's rule for WebXR: find the bottleneck, change one thing, measure on the headset, repeat.
Asset-side fixes (Draco, KTX2, simplification) live in iwsdk-asset-pipeline; measuring
on the device lives in iwsdk-quest-device-testing.
browser_profile results are labelled
host-browser-diagnostic, calibrated: false. A headless SwiftShader browser runs about 10x
slower than real. Use them for CPU long tasks and load time, never for frame rate.navigator.userAgent as an own
property with a Quest Browser string (iwer 2.6.0 lib/device/XRDevice.js), so a
user-agent check labels emulator numbers as headset numbers. Read the real one from the
prototype and tag every logged row:
const nav = navigator;
const spoofed = Object.getOwnPropertyDescriptor(nav, 'userAgent') !== undefined; // IWER
const realUa = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(nav), 'userAgent')?.get?.call(nav) ?? '';
const platform = !spoofed && /OculusBrowser/.test(String(realUa)) ? 'quest' : 'emulator';
--ai-mode agent) rendered at about 60 Hz while IWER reported
a 90 Hz session in an IWSDK 1.0.1 prototype, so "frames over budget" read 100 % there. Label
emulator rows "not valid for performance" and don't read them.world.renderer.info) in the heaviest scene, and compare after every change.| Target rate | Frame budget (1000 / Hz) |
|---|---|
| 72 Hz | 13.9 ms |
| 80 Hz | 12.5 ms |
| 90 Hz | 11.1 ms |
| 120 Hz | 8.3 ms |
horizon-web-vrc-checklist.| Device | Draw calls / frame | Triangles / frame | Refresh target |
|---|---|---|---|
| Quest 2 | < 100 | < 750K | 72 Hz |
| Quest 3 | < 200 | < 1.5M | 72 Hz (90 Hz recommended) |
| Meta VR Glasses | not published | not published | display up to 120 Hz |
(No figures there for Quest 3S, Quest Pro or VR Glasses. Meta's Unity performance page gives wider ranges by app type; prefer the stricter numbers above for WebXR.)
metaVRGlasses profile lists 72/90/96/100/120 Hz: emulator data. Meta's render-scale page
recommends dynamic resolution on the glasses; WebXR fixes framebufferScaleFactor before the
session (super-three), so there is no IWSDK equivalent today. Device setup and gaze:
iwsdk-vr-glasses.session.frameRate on the device (probe in iwsdk-quest-device-testing §4).quest-browser-webxr.// dev only: after World.create(...) resolves
const info = world.renderer.info; // read during XR; resets every frame
console.log(info.render.calls, info.render.triangles, info.memory.geometries, info.memory.textures);
console.log('multiview:', world.renderer.xr.isMultiview, 'foveation:', world.renderer.xr.getFoveation());
npx @iwsdk/cli scene render-file ... returns renderStats
(triangles, visible nodes) for the editor render; use it to spot heavy assets early.npm run build then find dist/assets -maxdepth 1 -type f -exec du -h {} + | sort -h.Averages hide stutter. For pass/fail decisions log percentiles and hitches, one row per second with a wall-clock ISO timestamp, so the rows line up with an OVR Metrics CSV recorded at the same time.
world.onXRFrame delta). This is
what the compositor got; compare it with OVR Metrics FPS and stale frames. Report avg, p50,
p95, p99, max, % of frames over the budget, and frames over 33 ms (hitches).world.update plus render submission. One way is to wrap
world.renderer.render and time it together with a system at the lowest and highest
priority.EXT_disjoint_timer_query_webgl2 around the frame's render. Check
gl.getParameter(ext.GPU_DISJOINT_EXT) before using a result. Whether Quest Browser exposes
the extension is unverified; fall back to OVR Metrics' GPU time.iwsdk-quest-device-testing §4b.world.scene.visible = false skips all draws (the session still runs). Barely faster → CPU
bound. Much faster → GPU bound.world.renderer.xr.setFramebufferScaleFactor(0.1), which must be called before the session
starts (super-three warns "Cannot change framebuffer scale while presenting"). Unchanged →
vertex bound (scene complexity). Faster → fragment bound (pixels, shading).gltf-transform join/flatten; see iwsdk-asset-pipeline for name-preservation caveats).
Repeat placed objects with scene patterns: a pattern whose prefab is one component-free
mesh lowers to a single InstancedMesh (assets-and-manifest rule). For code-built repeats
use InstancedMesh from @iwsdk/core.update(). Create scratch Vector3/Quaternion in init(); use
getVectorView() for vector fields; signal.peek() instead of .value in update().queries.x.subscribe('qualify', ...) instead of per-frame checks.SkinnedMesh: clone with SkeletonUtils.clone, share clips and one material,
update each AnimationMixer at a rate that falls with distance (every frame near, 30 Hz
mid, 15 Hz far) and freeze characters outside the view cone. Simple; one draw call per
character; mixer CPU grows with the count.DataTexture, then draw all characters with
one InstancedMesh whose ShaderMaterial reads the texture with texelFetch by
gl_VertexID and a per-instance clip/time attribute. One draw call for the whole crowd and
almost no animation CPU. Costs: bake time and memory (a 3k-triangle character with 7 clips
at 30 fps took 83 ms and 11 MB), no cross-fade between clips unless the shader samples two,
and a hand-written shader
whose multiview behaviour is unverified (§4 Multiview).iwsdk.config.json: physics: false removes Havok (JS + WASM)
from the build; locomotion: false when stationary; sceneUnderstanding/environmentRaycast
off when not used.useWorker: true, 60 Hz). Keep it, and raise
features.physics.updateFrequency only for a measured need. updateFrequency is a
physics-only key: 1.0.1's locomotion accepts useWorker, initialPlayerPosition,
comfortAssistLevel, turningMethod, enableJumping and browserControls
(packages/core/src/project/validation.ts).LocomotionSystem is registered at priority −5
and InputSystem at −4, so locomotion reads the previous frame's controller state, although
the source comment says "InputSystem => LocomotionSystem" (src/init/world-initializer.ts).
An IWSDK 1.0.1 prototype measured 1 frame of input-to-motion delay with useWorker on and
off; a custom controller in a system after −4 measured 0. Fine for comfort walking; worth
measuring for fast action games.gltf-transform simplify), cut sphere/lathe segment counts on
small repeated parts, and make distance-based variants (two prototypes from one factory).LocomotionEnvironments (IWSDK locomotion
performance page).world.renderer.xr.setFoveation(value), 0 = none, 1 = maximum. super-three
0.181.0 already defaults to 1.0 and applies it at session start, so this is normally on.
Lower it (e.g. 0.5) only if peripheral text or edges look bad. FFR is lost when you render the
scene to an intermediate target and post-process it, or switch render targets mid-frame (Meta
FFR page).0.8-0.9 a last
resort, but for a Store build keep it ≥ 0.85 for most of the experience (VRC
Performance.4: "no less than 85% render scaling", recommended for immersive apps).IBLGradient/IBLTexture for ambient response.castShadow off by default (IWSDK rule), use a small shadowMapSize ("256"-"2048").session.supportedFrameRates; only call updateTargetFrameRate(rate) with a listed
value (Quest Browser 16.4+). Raise it only with measured headroom. If frames regularly exceed
the target frame time (Meta's example: over 11 ms at 90 Hz), lower the rate instead: missed
frames make the compositor synthesise frames (stutter, black edges).const s = world.session as XRSession & {
supportedFrameRates?: Float32Array; updateTargetFrameRate?: (r: number) => Promise<void>;
};
const rates = s?.supportedFrameRates ? Array.from(s.supportedFrameRates) : [];
if (rates.includes(90)) await s.updateTargetFrameRate?.(90); // only after measuring headroom
multiviewStereo: true and always offers the layers feature, so on Quest Browser it renders
both eyes in one pass through OCULUS_multiview and a projection layer. Check
world.renderer.xr.isMultiview in XR. Don't add other multiview code. Test custom shaders on the
device (unverified: multiview support for hand-written ShaderMaterials).XRQuadLayer, XRCylinderLayer components, see
examples/layers): the compositor shows them at their own resolution, which keeps text and
video sharp and lets static content redraw only when it changes. Enable
world.xr.features.layers: true.npm run build and sort dist/assets by size (IWSDK guide 08). Vite copies public/ as-is,
so compress models and textures before adding them (iwsdk-asset-pipeline).priority: 'critical'; others 'background', which load
right after the critical ones.iwsdkDev({ bundle: { fonts: [...] } })
keeps families that load dynamically.unpkg.com, controller models
from cdn.jsdelivr.net (@webxr-input-profiles/assets). Expect that latency; allow both
hosts in any CSP. To remove them: load art with your own loader and local decoders
(iwsdk-asset-pipeline §1a). For controller models, copy the profile GLBs you support under
public/ and wrap AssetManager.loadGLTF before World.create to rewrite the jsDelivr
prefix. That monkeypatches a static, because 1.0.1 has no option for it; it worked in the
emulator in an IWSDK 1.0.1 prototype and is unverified on a Quest.vite build && vite preview over HTTPS:
iwsdk-quest-device-testing §4a.hz-iwsdk-webxr skill,
references/desktop-load-profiling.md.Some guides (including Meta's hz-iwsdk-webxr skill, written for IWSDK 0.4) show APIs that
don't exist or don't apply to IWSDK 1.x. Details and sources:
references/older-advice.md.
vite preview), with p99 and hitch counts, not only averagesiwsdk.config.json; physics: false if no rigid bodiesiwsdk-asset-pipeline)castShadow only on grounded focal objects; one main light with PBRiwsdk-project-code-reviewer)dev.emulator.injectOnBuild is not true; dev-only probes removedworld.features.gaze.showDebugReticle offOCULUS_multiview)packages/core/src/init/world-initializer.ts (multiviewStereo: true; LocomotionSystem priority −5, InputSystem −4), src/project/validation.ts (physics and locomotion keys), src/init/xr.ts (default layers offer), src/asset/loaders/gltf-loader.ts, packages/xr-input/src/gamepad/input-profiles.ts, docs/guides/08-build-deploy.md, docs/concepts/locomotion/performance.md, examples/layers/[email protected], lib/device/XRDevice.js (Object.defineProperty(navigator, 'userAgent', …))GPU_DISJOINT_EXT)iwer 2.6.0 lib/device/configs/headset/meta.js (metaVRGlasses frame rates)Last verified: 2026-10-17
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/iwsdk-core:iwsdk-performancefrom IWSDK Core
npx claudepluginhub mirzaaghazadeh/iwsdk-webxr-skills --plugin iwsdk-core17 skills in this plugin
/horizon-launch-roadmapPlan and sequence the launch of an IWSDK / WebXR game or 2D web app on Meta Quest: choose between hosted web, the Browser new tab page and a Horizon Store PWA; pick 2D vs immersive; list the irreversible decisions (Android package id, signing key, origin and Digital Asset Links, Early Access, pre-order and Coming Soon windows, Data Use Checkup auto-approval, age group, web IAP limits, Meta VR Glasses input and targeting); map each phase to the skill that does the work; and build a dated timeline counting back from launch day, plus post-launch growth tools. Use when the user asks "how do I publish my WebXR game", "should I ship as a PWA or just a website", "what's the release process for a Quest web app", "plan my launch", "when should I submit", "can I do early access / pre-orders", "should I support Meta VR Glasses", or starts a new IWSDK project meant for the store./horizon-store-listing-assetsPrepare and validate the Meta Horizon Store listing for a WebXR / IWSDK PWA or a 2D PWA: art specs (covers, Hero, Mini Landscape, Logo, Icon, Spatialized tile, screenshots, trailer, 360 preview), asset VRCs, metadata limits, specs (play area, input, comfort, internet), age group and IARC, privacy policy and Data Use Checkup, pricing, price A/B tests, Try Before You Buy limits, web IAP limits (WebXR PWAs only, no subscriptions), sales, keys, Early Access, pre-orders, Store analytics, and what Meta VR Glasses change. Includes an image checker. Use when the user asks for "store assets for my web app", "cover art size", "screenshots of my WebXR game", "trailer requirements", "store description", "age rating / IARC", "privacy policy for my Quest PWA", "can my PWA sell items", "set the price", "A/B test my price", "free trial", "run a sale", "generate keys", or "early access". Replaces the asset table in Meta's hz-store-submit, which has wrong dimensions and limits./horizon-web-store-publishEnd-to-end release pipeline for shipping an IWSDK / WebXR game (or a 2D web app) on the Meta Horizon Store as a PWA/TWA: production build, HTTPS hosting that can serve /.well-known/assetlinks.json, web app manifest and icons, @meta-quest/bubblewrap-cli in immersive or 2D mode (scripted, non-TTY), version codes, signed-APK verification, sideload test, ovr-platform-util or metavr upload to ALPHA, device targeting (Future devices for Meta VR Glasses, quest3+ channel suffix), promotion between release channels, web-only updates versus APK rebuilds, and CI. Ships a deploy checker, a TWA APK verifier and a guarded upload wrapper. Use when the user says "publish my WebXR app to the Quest store", "package my IWSDK game as a PWA", "bubblewrap for Quest", "my TWA won't launch / shows a URL bar", "assetlinks", "upload my web app APK", "ship my PWA to Meta VR Glasses", "promote to beta / production", or "set up CI for my Quest PWA". Builds on and corrects Meta's hz-store-pwa skill./horizon-web-vrc-checklistPre-submission audit of a WebXR / IWSDK PWA (immersive) or a 2D PWA against Meta's current Virtual Reality Checks (VRCs) for the Horizon Store, by VRC ID, using the Store and Store (2D) columns of Meta's VRC table. For each VRC it gives the web-specific check (WebXR APIs, Bubblewrap manifest output, web permissions) and how to test it in the installed TWA on a Quest with metavr, adb, chrome://inspect and OVR Metrics Tool, then produces a PASS/FAIL/RISK evidence table. Use when the user asks "will my WebXR app pass review", "VRC checklist for a PWA", "which VRCs apply to a 2D web app", "focus awareness in WebXR", "pause when the Universal Menu opens", "frame rate requirement for WebXR", "entitlement check for a PWA", "is my PWA ready for Meta VR Glasses", or "why was my web app rejected (VRC...)". Takes precedence over the generic VRC notes in Meta's hz-store-submit, which are partly out of date./hz-immersive-designerGuides design of comfortable, intuitive VR/MR experiences for Meta VR and Horizon OS — comfort guidelines, interaction patterns, spatial layout, accessibility. Use during UX design review or when evaluating comfort and accessibility. Build paths: Meta Spatial SDK, Unity, Unreal, native OpenXR, and WebXR; for 2D panel apps use hz-panel-designer if available. Use hz-quest-verify-first if the build path is unclear./hz-perfetto-debugAnalyzes Meta VR and Horizon OS VR performance using Perfetto traces — frame timing, CPU/GPU bottlenecks, render pass analysis. Use when profiling frame drops, jank, or thermal issues on Meta VR devices. Build paths: all Meta VR app stacks; use hz-quest-verify-first if the build path is unclear.