Unity.mathx icon indicating copy to clipboard operation
Unity.mathx copied to clipboard

Benchmark bitwave() against bitwave2()

Open ltmx opened this issue 2 years ago • 0 comments

[MethodImpl(IL)] public static float4 bitwave(float4 x) => floor(math.fmod(x, 2));
[MethodImpl(IL)] public static float4 bitwave2(float4 x) => (int4)x & 1;

ltmx avatar May 12 '23 07:05 ltmx