#UnityTips A lot of Mathf.min and Mathf.max in performance relevant code?🤔
Use the ternary operator, it is a lot faster!🚀
BTW use the Unity Testframework to benchmark cases like this. Our friends @BoundfoxStudios helped a lot with the testing of this one.#gamedev #indiedev pic.twitter.com/ZIs74PEIF5
— Binary Impact (@BinaryImpactG) June 15, 2021