Top 5 Optimization Tips from Building a Mobile Game in Unity
Published: 24 May 2022
Learn my top 5 optimization tips from building my latest mobile game! I boosted the fps in my game from barely playable in the Unity Editor to a solid 60fps ๐ on most mobile devices!
These are not mobile-specific optimizations, and they don't all apply to every game type. Which optimization techniques will be most impactful for your game will vary depending on what kind of game you're making and how you've implemented it (this is discussed in the video as well).
If you're struggling with FPS in your game, this is a great starting point for which techniques you can use to optimize your game! There are WAY more than 5 optimization techniques, and not all of them may apply to every game type. These are the ones I found most beneficial when optimizing my game!
I hope this helps give you some guidance on how you may be able to boost the FPS in your game and have it run super smooth on your target platform and target hardware!
๐จโ๐ป Since this is just a "tips" video, there is no GitHub repository available this time! All tutorials have full projects available on GitHub: https://www.github.com/llamacademy
๐ท๏ธSave 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?section=personal&billing=yearly
๐ Resources
โซ Unity Profiler: https://docs.unity3d.com/Manual/ProfilerCPU.html
โซ Unity Mesh Combining API: https://docs.unity3d.com/ScriptReference/Mesh.CombineMeshes.html
โซ Simple Mesh Combine: https://assetstore.unity.com/packages/tools/utilities/simple-mesh-combine-8748?aid=1101l9QvC
โซ Unity GPU Instanced Animations: https://blog.unity.com/technology/animation-instancing-instancing-for-skinnedmeshrenderer
โซ Mesh Animator (no URP / HDRP support): https://assetstore.unity.com/packages/tools/animation/mesh-animator-animate-massive-crowds-26009?aid=1101l9QvC
โซ Unity Performance Tips: https://unity.com/how-to/best-practices-performance-optimization-unity#transforms
โซ Baked Animations: https://www.youtube.com/watch?v=Hh5zcT2IkaQ
โซ Static Batching: https://youtu.be/8D8A6gabwlU
โซ Jobs System: https://www.youtube.com/watch?v=dHLNqbKrJdg
๐งก Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
๐ Patreon: https://www.patreon.com/llamacademy
๐ YouTube Member: https://www.youtube.com/channel/UCnWm6pMD38R1E2vCAByGb6w/join or click the Join button on any video
๐ Take my Unity ShaderGraph Course:
https://www.gamedev.tv/p/unity-shader-graph?affcode=45216_kuvg0bp7
๐ Get yourself some LlamAcademy merch: https://llamacademy.myspreadshop.com/
๐ธ Use my Affiliate Link for Humble Bundles https://humblebundleinc.sjv.io/9g4ak4
๐ธ Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publisher-sale?aid=1101l9QvC (affiliate)
๐ธ Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sale=true&orderBy=1&aid=1101l9QvC (affiliate)
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.