Forum Discussion

h.taylor's avatar
h.taylor
Community Manager
5 months ago

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

No RepliesBe the first to reply

โ†’ Find helpful resources to begin your development journey in Getting Started

โ†’ Get the latest information about HorizonOS development in News & Announcements.

โ†’ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.

โ†’ Get support or provide help in Questions & Discussions.

โ†’ Show off your work in What Iโ€™m Building to get feedback and find playtesters.

โ†’ Looking for documentation?  Developer Docs

โ†’ Looking for account support?  Support Center

โ†’ Looking for the previous forum?  Forum Archive

โ†’ Looking to join the Start program? Apply here.

 

Recent Discussions