#UnityTips Optimizing structs can be counter intuitive, it may be faster to assign a new struct over incrementing in an existing one.
The slower version is due to the overhead of temporary copies and the other one is easier for the compiler to optimize.#gamedev #indiedev pic.twitter.com/MzOtbsXT0Y
— Binary Impact (@BinaryImpactG) August 27, 2024