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

Is it determinstic in different platform?Im just want to use burst to speed up my deterministic math lib #200

Closed MouseChannel closed 2 years ago

MouseChannel commented 2 years ago

I dont know how it likes in it?I know something like float3 or any float is not deternimistic. But others like int int3.Are those thing determinstic or not? so I can use mathematic as my dependence and enjoy burst compile

unpacklo commented 2 years ago

@MouseChannel The floating point types are not deterministic across platforms. The integer types are deterministic and implement the C# rules for underflow and overflow (if not, that's a bug).