Runtime Optimizer Part 3 - AI-Assisted Performance Optimization on Meta Quest | Performance Series
Who says performance optimization has to live behind expert-only tooling? In this Start Performance Series session, Meta software engineers Jay Hsia and Nico Lopez show you how the Meta Quest Runtime Optimizer pairs with Perfetto and large language models (LLMs) to turn dense performance data into clear, actionable insights. Youโll also see how Unity developers can use the Runtime Optimizer for GPU analysis, then use Perfetto traces with an LLM to surface bottlenecks and generate specific fixes you can test right away.
๐ก By viewing this session, youโll learn:
- How to use Runtime Optimizer to profile GPU performance in Unity, including deep captures and โwhat-ifโ analysis
- How to capture rich Perfetto traces and use them for system-level performance profiling
- How to use an LLM to turn trace data into plain-English bottlenecks and concrete fix ideas
- How to validate improvements with a repeatable before-and-after trace comparison loop
Recorded on December 4, 2025 as part of the Meta Horizon Start program.
๐ฌ CHAPTERS
๐ INTRODUCTION
๐ 00:00 - What the Runtime Optimizer does and why it matters
โ๏ธ RUNTIME OPTIMIZER UPDATES
๐ 03:21 - Whatโs new in Runtime Optimizer 0.2.2
๐ 03:35 - Hierarchy view for GPU cost analysis
๐ 04:14 - Batch profiling game objects
๐ค AI MEETS PERFORMANCE PROFILING
๐ 04:39 - Why Perfetto changes the optimization workflow
๐ 05:32 - Where AI fits into performance analysis
๐ 06:02 - What an MCP adds to LLM reliability
๐งช LIVE DEMO: PERFETTO AND LLM ANALYSIS
๐ 08:42 - Capturing a Perfetto trace
๐ 09:56 - Reading frame breakdowns with an LLM
๐ 10:38 - Detecting anomalies and GPU bottlenecks
๐ FROM INSIGHT TO FIX
๐ 11:15 - Turning analysis into actionable changes
๐ 12:35 - Applying suggested code changes
๐ 13:02 - Tuning Unity settings with performance context
๐ THE NORTH STAR OPTIMIZATION LOOP
๐ 16:05 - Runtime Optimizer, Perfetto, and Immersive Debugger together
๐ 17:27 - Running before and after trace comparisons
๐ 18:50 - Measuring real improvements
โ
BEST PRACTICES AND TAKEAWAYS
๐ 19:28 - How to get reliable results from AI-assisted profiling
๐ 20:06 - Why profiling markers matter
๐ 21:00 - Managing tokens and context for better AI results
๐ 22:15 - Applying AI across your profiling toolchain
๐งฐ TOOLS REFERENCED
Perfetto: https://perfetto.dev/
Unity Profiler: https://docs.unity3d.com/Manual/Profiler.html
Cursor: https://cursor.com/
RenderDoc: https://renderdoc.org/
๐ RESOURCES
โก๏ธ Fix Performance Bottlenecks with Meta Quest Runtime Optimizer: https://communityforums.atmeta.com/discussions/Community_Resources/fix-performance-bottlenecks-with-the-meta-quest-runtime-optimizer--performance-s/1356116
โก๏ธ Developers Blog: https://developers.meta.com/resources/blog/
โก๏ธ Meta Quest Developer Hub: https://developers.meta.com/horizon/documentation/unity/ts-mqdh/
๐ CONNECT WITH US
โก๏ธ Sign up to get the latest news from Meta Horizon: https://developers.meta.com/horizon/newsletter
๐ก LEARN ABOUT THE META HORIZON START PROGRAM
The Meta Horizon Start program provides intermediate and advanced developers with the resources, hands-on support, and expert guidance needed to accelerate their app development. Join a thriving community to get the tools and go-to-market guidance you need to successfully deploy and grow your app on Meta Horizon OS.
Apply to Start today: https://developers.meta.com/horizon/discover/programs/start





