File tree Expand file tree Collapse file tree
com.unity.netcode.gameobjects/Tests/Runtime Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ console_standalone_build_{{ project.name }}_{{ platform.name }}_{{ editor }}:
5050{% endif %}
5151 commands :
5252 - unity-downloader-cli --fast --wait -u {{ editor }} -c Editor -c il2cpp -c {{ platform.name }}
53- - UnifiedTestRunner --testproject={{ project.path }} --architecture={% if platform.name == "switch" %}arm64{% else %}x64{% endif %} --scripting-backend=il2cpp --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --artifacts-path=artifacts --player-save-path=build/players --testfilter="Unity.Netcode.RuntimeTests.*" --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --reruncount=1 --clean-library-on-rerun --build-only --timeout={{ test_timeout}}
53+ - UnifiedTestRunner --testproject={{ project.path }} --architecture={% if platform.name == "switch" %}arm64{% else %}x64{% endif %} --scripting-backend=il2cpp --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --artifacts-path=artifacts --player-save-path=build/players --testfilter="Unity.Netcode.RuntimeTests.*" --extra-editor-arg=-batchmode --extra-editor-arg=-nographics{% if platform.name == "switch" %} --extra-editor-arg=-overrideTextureCompression --extra-editor-arg=ForceUncompressed{% endif %} --reruncount=1 --clean-library-on-rerun --build-only --timeout={{ test_timeout}}
5454 variables :
5555# PS4 related
5656 SCE_ORBIS_SDK_DIR : ' C:\Users\bokken\SCE\ps4_sdk_12_00'
Original file line number Diff line number Diff line change @@ -11,11 +11,15 @@ 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- #if UNITY_EDITOR
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
1621 public const float MinThreshold = 0.00555555f ;
1722#else
18- // Add additional room for error on console tests
1923 public const float MinThreshold = 0.009999f ;
2024#endif
2125
You can’t perform that action at this time.
0 commit comments