@Tarodev
  @Tarodev
Tarodev | Unity Code Optimization - Do you know them all? @Tarodev | Uploaded March 2022 | Updated October 2024, 21 minutes ago.
Find what common Unity optomizations truly make a difference. In this video I go over a bunch of interesting optimization tips as well and give you my recommendations on each.

Keep your code running fast with as little garbage allocation as possible by learning from these important concepts.

Benchmarks (let me know if you get weird results!): tarodev.itch.io/unity-benchmarks
Code: github.com/Matthew-J-Spencer/Unity-Benchmarks
Linq garbage allocations: jacksondunstan.com/articles/4840

Some topics covered:
SendMessage, Vector3.Distance, Find Objects, NonAlloc, Camera.main, Linq vs loop and Stringbuilder

❤️ Become a Tarobro on Patreon: patreon.com/tarodev

=========

🔔 SUBSCRIBE: bit.ly/3eqG1Z6
🗨️ DISCORD: discord.gg/tarodev
✅ MORE TUTORIALS: youtube.com/tarodev


0:00 intro
0:12 SendMessage
1:22 Extern call caching
3:02 Vector3.Distance vs SqrMagnitude
4:20 Find Objects
6:44 NonAlloc
9:34 Camera.main
10:51 Linq vs loops
13:16 Stringbuilder
14:20 Order of operations
Unity Code Optimization - Do you know them all?DOTWEEN is the BEST Unity asset in the WORLD and Ill fight anybody who disagreesC# Generics - The complete guideHow to make a Homing Missile in Unity with Trajectory Prediction (source included)Floppy, physics-based sprites in UnityAnimate like a ProgrammerYou NEED to know this! - Master debugging in Unity & C#C# Extension MethodsSprite Shadows in Unity - Cast and receive shadows using a SpriteRendererLINQ + Lambda expressions - C# tutorialObject References in Unity - How to Communicate Between ScriptsCreate a grid in Unity - Perfect for tactics or turn-based games! Part 2

Unity Code Optimization - Do you know them all? @Tarodev

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER