「毎日Unity」の技術ブログ

開発で役立つ情報を発信する

2023-03-28から1日間の記事一覧

【UnityC#】Math.Sin、Mathf.Sinの速度比較

Math.Sin、Mathf.Sinの速度比較をしたので結果を残しておきます。 [ 環境 ] Unity 2018.4.14.f1 [ 比較結果 ] Math.Sin 20 ms Mathf.Sin 30 ms [ スクリプト ] using System.Collections; using System.Collections.Generic; using UnityEngine; using Syste…

【UnityC#】Math.Clamp、Mathf.Clampの速度比較

Math.Clamp、Mathf.Clampの速度比較をしたので結果を残しておきます。 [ 環境 ] Unity 2018.4.14.f1 [ 比較結果 ] Math.Clamp 8 ms Mathf.Clamp 9 ms [ スクリプト ] using System.Collections; using System.Collections.Generic; using UnityEngine; using…

【UnityC#】Math.Sqrt、Mathf.Sqrtの速度比較

Math.Sqrt、Mathf.Sqrtの速度比較をしたので結果を残しておきます。 [ 環境 ] Unity 2018.4.14.f1 [ 比較結果 ] Math.Sqrt 4 ms Mathf.Sqrt 21 ms [ スクリプト ] using System.Collections; using System.Collections.Generic; using UnityEngine; using Sy…

【UnityC#】Math.Abs、Mathf.Absの速度比較

Math.Abs、Mathf.Absの速度比較をしたので結果を残しておきます。 [ 環境 ] Unity 2018.4.14.f1 [ 比較結果 ] Math.Abs 6 ms Mathf.Abs 18 ms [ スクリプト ] using System.Collections; using System.Collections.Generic; using UnityEngine; using System…