{"id":121768,"plugin_id":"plugin_asdk_app_6af5f39a383881918c111b771eb6afc3","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-28T00:14:27.405Z","digest":"12003df9ed442329f19d345f17cf72b70d111cd6b76130c87d807d7f7686c56c","against":null,"payload":{"description":"Find why a ViroReact scene is slow or heavy (models, textures, draw calls, lights) and fix it, using the ReactVision MCP's budget checks and Viro Live's Inspect figures.","included_files":[],"name":"performance-review","skill_md_contents":"---\nname: performance-review\ndescription: Find why a ViroReact scene is slow or heavy (models, textures, draw calls, lights) and fix it, using the ReactVision MCP's budget checks and Viro Live's Inspect figures.\n---\n\n# ViroReact performance review\n\nUse this when a scene stutters, loads slowly, runs hot, crashes on a low-end device or on Meta Quest, or when the developer wants a scene checked before shipping. Measure first, then change the biggest cost, then measure again.\n\n## Gather the numbers\n\n1. Ask which platforms the scene targets. Meta Quest has the tightest budgets.\n2. Call `reactviro_list_assets_needed` on each scene file to list its models, textures and sounds, local and remote.\n3. Call `reactviro_check_performance_budget` with the remote GLB and glTF URLs (up to 10 a call) and the target platforms (`quest`, `mobile-ar`, `visionos`, `web`). It reports triangles and texture size against rough per-platform budgets.\n   - It reads GLB, and glTF with embedded buffers only. A glTF with an external `.bin`, and VRX, FBX and OBJ, are reported as unsupported, not measured.\n   - Its budgets are rough guidance: \"within budget\" means no obvious problem, \"over budget\" means worth a look. Say so when you report them.\n4. Open the scene in Viro Live (`reactviro_live_preview`) and ask the developer to open Inspect. It shows the frame rate, draw calls, triangles and texture memory of the last frame, each model's triangles against the budgets, and the parts inside a selected model with their triangle counts. Ask them for the figures; you are not sent them, except for a model they select.\n5. The preview's frame rate is the browser's, not the device's. Use it to compare before and after a change, not as the device's number.\n\n## Common costs and what to do\n\n- **Too many triangles** in a model: reduce it in the modelling tool or with a glTF optimiser, or use a lower-detail version for the target. The part list in Inspect shows which part carries the triangles.\n- **Large textures**: a 4096 px texture costs about 16 times a 1024 px one. Resize textures to what the object's size on screen needs.\n- **Many draw calls**: each mesh and material is at least one. Merge static meshes that share a material, and reuse materials instead of near-duplicates.\n- **Lights and shadows**: each shadow-casting light adds a render pass. Keep shadows to the lights that need them.\n- **Meta Quest**: check the scene against `reactviro_get_platform_matrix` and the Quest setup doc (`reactviro_get_docs` with `QUEST_SETUP`) before tuning, since some effects behave differently there.\n- **Off-screen or hidden content** still loads. Load models when they are needed, not all at scene start.\n\nLook up any prop or component you recommend with `reactviro_get_component_props` or `reactviro_search`; do not suggest a prop the tools do not show.\n\n## Check the change\n\nAfter each change, call `reactviro_update_live_preview`, ask the developer for the new Inspect figures, and rerun `reactviro_check_performance_budget` for a changed model. Report the before and after numbers.\n\n## Report honestly\n\nSay which numbers came from the budget check, which from the preview, and that neither is a measurement on the device. Recommend profiling on the target device before shipping; never claim device performance that was not measured.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}