Arm Unity Optimization Resources
The Unity game engine is a highly popular development environment used to create games and applications across multiple platforms. Arm works closely with Unity, acting as a champion for optimal performance on mobile platforms both through runtime efficiency and profiling. Game developers can use Arm Performance Studio to profile, debug, and optimize games using Unity. Refer to our best practices and sample code for artists and developers to help maximize the performance of mobile games.
AI Development in Unity
Bring AI into your Unity project on Arm-based mobile devices, either with Unity Sentis or Unity Machine Learning Agents Toolkit (ML-Agents)
- Video: This talk highlights an implementation of quantization to significantly reduce the computational requirement of these models: Streamlining Large AI Models for Games with Quantization
- Video: Learn how to train non-player characters in games with machine learning agents in Unity: Unity ML-Agents on Arm and How We Created Game AI
- Get started with using Unity Machine Learning Agents toolkit running in a game on an Arm-based mobile platform: Using Unity’s Machine Learning Agents on Arm
- The following blogs cover in detail how Arm develop “Dr Arm’s” demo in which you can play against a game AI implemented using Unity Machine Learning Agents Toolkit. The demo was created to show how game developers can use this technology creatively:
- This blog is a case study to showcase what happens when a developer increases the quantity of intelligent agents, using Unity ML Agents Toolkit: Multi-Agent Reinforcement Learning on Android Devices
- Read more about the advanced AI capabilities of the Arm CPUs: Generative AI is on Mobile and it’s Powered by Arm
Unity Best Practices
These documents provide general best practices for developing on Arm using Unity and some specific best practice for special effects.
Artists' Best Practices for Unity Developers
Optimizing game artwork is essential for getting the most out of Arm GPUs. The following best practices help artists design more performant artwork and calculate reasonable assets budgets for mobile.
Read the following documents to optimize different aspects of your artwork.
- Textures best practice
- Materials and shaders best practice
- Lighting best practice
- Geometry best practice
Arm joinly with Unity created an interactive tutorial on Unity LEARN.
Profiling and Debugging Unity Games
Arm's free performance insight tools help improve Unity game performance. Arm Performance Studio helps game developers quickly find the cause of frame rate drops, and performance bottlenecks, which might slow down the game, drain battery or overheat the device.
- Use Arm Performance Studio to profile and debug your Unity games on mobile platforms.
- For Unity profiler users, Arm provides a Unity package to read and display Arm’s GPU hardware counters.
Unity Resources – Videos and Blogs
Read all the recent blogs with up-to-date advice on building and optimizing Unity games on mobile platforms.