Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Profiler.BeginSample("#### System.Math.Abs ####");
for (int i = 0; i < 10000; i++)
{
System.Math.Abs(xx);
}
Profiler.EndSample();
Profiler.BeginSample("#### UnityEngine.Mathf.Abs ####");
for (int i = 0; i < 10000; i++)
{
Mathf.Abs(xx);
}
Profiler.EndSample();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment