Skip to content

Commit 2050e8f

Browse files
committed
reverted change
1 parent f5a2ef3 commit 2050e8f

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

com.unity.netcode.gameobjects/Tests/Runtime/TransformInterpolationTests.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,11 @@ namespace Unity.Netcode.RuntimeTests
1111
internal class TransformInterpolationObject : NetworkTransform
1212
{
1313
public static bool TestComplete = false;
14-
// Set the minimum threshold which we will use as our margin of error.
15-
// Consoles interpolate with lower floating point precision, so they need additional room for error.
16-
// The platform define is set both in a console player and in the editor when it targets a console,
17-
// which covers console tests whether they run on-device or through the editor playmode harness.
18-
#if UNITY_PS4 || UNITY_PS5 || UNITY_SWITCH || UNITY_GAMECORE
19-
public const float MinThreshold = 0.009999f;
20-
#elif UNITY_EDITOR
14+
// Set the minimum threshold which we will use as our margin of error
15+
#if UNITY_EDITOR
2116
public const float MinThreshold = 0.00555555f;
2217
#else
18+
// Add additional room for error on console tests
2319
public const float MinThreshold = 0.009999f;
2420
#endif
2521

0 commit comments

Comments
 (0)