Snapchat Mar 15, 2023

Lens Performance Toolkit

Article Summary

Snap's Lens Performance Toolkit has been sunset, but its replacement Mobile Monitor offers AR developers something better. Here's what changed and why it matters for your lens performance.

Snap documented their original Lens Performance Toolkit (now deprecated in favor of Mobile Monitor) that let AR lens developers monitor real-time performance metrics by pairing mobile devices with Lens Studio. The toolkit addressed a critical challenge: most developers lack access to multiple test devices, yet their lenses must perform across all hardware.

Key Takeaways

Critical Insight

The toolkit gave AR developers instant performance feedback without leaving their IDE, ensuring lenses hit critical size and memory thresholds that directly impact reach and engagement.

The grading system and automatic optimization prompts reveal how Snap thinks about performance budgets for consumer AR experiences.

About This Article

Problem

Lens developers couldn't see how their work performed on different devices while building. They had no way to check Frame Processing Time or activation latency without having the actual hardware in their hands.

Solution

Snap added a Performance button to Lens Studio's toolbar. When paired with a mobile device, it streams real-time data back to the IDE, including Size, Activation Time, FPT, and Memory usage for instant review.

Impact

Developers can now set hard performance limits during development, keeping lenses under 8MB and 150MB RAM. The system grades performance as Good, Fair, or Bad and suggests specific optimizations to improve reach and engagement.