Unity-Technologies / Unity.Mathematics

The C# math library used in Unity providing vector types and math functions with a shader like syntax
Other
1.38k stars 156 forks source link

Make performance tests create a variable for iteration count. #205

Closed unpacklo closed 2 years ago

unpacklo commented 2 years ago

While the performance tests worked just fine, it was annoying to hand modify a performance test when investigating performance issues. You had to search the code for all instances of a const literal and be sure you changed the number in all those places. Instead, use a variable so you can change it in one place.