Search Issue Tracker
By Design
Votes
0
Found in
2022.3.62f1
6000.0.48f1
6000.1.2f1
6000.2.0a10
Issue ID
UUM-104759
Regression
Yes
(Apple Silicon) Floating point inconsistencies between mono and il2cpp
Reproduction steps:
1. Open the attached “IN-100968_TestFloating_.zip“ project
2. Open the Test Runner (Window > General > Test Runner)
3. Select the “EditMode” Tab
4. Run the “FmaddFloatTest“ test
5. Observe
Expected result: The test passes as the floating point value matches the other platforms
Actual result: Test fails
Reproducible with: 2022.2.0a9 (fbbd3cf564e5), 2022.3.62f1, 6000.0.48f1, 6000.1.2f1, 6000.2.0a10
Not reproducible with: 2022.2.0a8
Reproducible on: M1 Max MacOS 15.1.1
Not reproducible on: No other environment tested
Note:
- Issue reproduces inside the Player when using Mono Scripting Backend and inside the Editor. The issue is not reproducible when using IL2CPP
- The user runs identical code on client and server. The server is running coreCLR with no unity dependency and results are always consistent with IL2CPP builds across all unity versions and devices (mobile/desktop).
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
- Shader Graph validation errors are not pointing to the right implementation
Resolution Note:
This was an intentional change.
https://github.com/Unity-Technologies/mono/pull/1553
For all other platforms and architectures, Mono promotes all floating
point operations to double precision. While using single precision
allows for getting performance in some cases, it makes macOS ARM64 Mono
behave differently from other platform/architecture combinations.