Bake Your Animations to Greatly Improve Performance...For Some Use Cases | Unity Tutorial #shorts @LlamAcademy
Bake Your Animations to Greatly Improve Performance...For Some Use Cases | Unity Tutorial #shorts  @LlamAcademy
Uploaded November 2022 | Updated September 2026, 1 hour ago
In this Unity tutorial you will learn how to bake animations as a series of "snapshots" of meshes. These snapshots can be taken at a configurable framerate that suits your game.

The concept here is attacking a similar problem as Animation Instancing: blog.unity.com/technology/animation-instancing-instancing-for-skinnedmeshrenderer, but is still handled by the CPU and does not require any "shader magic" to manipulate the vertices.
It also does not reduce the Draw Calls, as Animation Instancing will do. Instead, this approaches the problem by resolving the "CPU Skinning" taking up a lot of CPU time on the main Unity thread to improve FPS.

This can be taken one step further to batch all the meshes into a single draw call per material via Graphics.DrawMeshInstanced(): docs.unity3d.com/ScriptReference/Graphics.DrawMeshInstanced.html
Strangely, with my initial attempt, the performance was actually worse than what is implemented here. I didn't have time to dive into that and the performance here was "good enough" for my use case.

👨‍💻 As always, the full project code is available on GitHub: github.com/llamacademy/baked-animation-meshes

📚 Resources
⚫ Bake Skinned Mesh Renderer Mesh: docs.unity3d.com/ScriptReference/SkinnedMeshRenderer.BakeMesh.html
⚫ Graphics Draw Mesh Instanced: docs.unity3d.com/ScriptReference/Graphics.DrawMeshInstanced.html /
⚫ Animator Play: docs.unity3d.com/ScriptReference/Animator.Play.html
⚫ Animator Update: docs.unity3d.com/ScriptReference/Animator.Update.html

📱 Let's stay connected
YouTube: youtube.com/c/LlamAcademy
Patreon: patreon.com/llamacademy
Facebook: facebook.com/LlamAcademyOfficial
Twitter: twitter.com/TheLlamAcademy
TikTok: tiktok.com/@LlamAcademy
Instagram: instagram.com/LlamAcademy

----

Believe in LlamAcademy's mission and have received value from the videos? Consider becoming a Patreon supporter: patreon.com/llamacademy

----
Most tutorials come from knowledge gained making https://survival.llama.software Llama Survival - a top-down zombie survival shooter for Android and iOS.
I also have some Unity Assets: assetstore.unity.com/publishers/22409?_aid=1101l9QvC
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.

#unitytutorial #tutorialtuesday #gamedev #tutorial #unity #llamacademy #gamedevelopment
Bake Your Animations to Greatly Improve Performance...For Some Use Cases | Unity Tutorial #shortsFREE Performance Optimization / Draw Call Reducer (HLOD) | Unity TutorialUnity Localization Tools | Learn How to Localize Your Game | Unity TutorialHow to Reset any Scene in Unity | Unity TutorialRaycasts, Explained. Every Physics Cast Visualized | Unity TutorialSave and Load a Player Loadout | Gun Series Part 14 | Unity TutorialData Persistence - Save & load your game state while avoiding common mistakes #shortsGun Sound Effects with an Audio Config ScriptableObject | Gun Series 5 | Unity TutorialProjectile Gun Support | Scriptable Object Gun Series Part 6 | Unity Tutorial #shortsHow I made an Inverse Tower Defense game with Unity 6. Its FREE & Open Source.I accidentally created a dodgeball game with projectile motion & movement prediction #ShortsIN-EDITOR Automatic LOD Generation for 3D Models | Unity Tutorial #shorts
LlamAcademy |

Bake Your Animations to Greatly Improve Performance...For Some Use Cases | Unity Tutorial #shorts

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER