I've checked some sources. In https://gafferongames.com/post/floating_point_determinism/, a developer of SupCom confirms that they already use the IEEE754 float standard to avoid desync problems with different x86 processors (AMD and Intel). They use the _controlfp command to determine how floating-point calculations work. The problem is that on ARM Windows, _controlfp has a slightly different effect - it affects a different set of registers (https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/control87-controlfp-control87-2?view=msvc-170).
This is only a guess, but it seems like we can just rewrite some code and change the used float registers.
I'm not sure that this will solve everything, but it looks like a good first attempt.
0
Reputation
1
Posts
1
Profile views
0
Followers
0
Following
Best posts made by Eyvind
This user does not have any upvoted posts yet.
Latest posts made by Eyvind
RE: Desync on all replays and games with Windows 11 Arm on M1 Max Apple
posted in I need help •