Skip to content

test: Perf tests part 4. Adding example of performance test with spawning x network objects at once #925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
6d185e5
moving orchestration to this branch from test/multiprocess-testing/wip
SamuelBellomo Jun 27, 2021
4f6d799
moving base for multiprocess tests to this branch from test/multiproc…
SamuelBellomo Jun 27, 2021
efb083c
adding fixed testcoordinator
SamuelBellomo Jun 27, 2021
bdaf320
Merge branch 'test/multiprocess-tests/orchestration' into test/multip…
SamuelBellomo Jun 27, 2021
4ea4d4c
adding missing change
SamuelBellomo Jun 27, 2021
ea7cdcf
moving execute step in context to this branch from test/multiprocess-…
SamuelBellomo Jun 27, 2021
4add65e
moving perf tests to this branch from test/multiprocess-testing/wip
SamuelBellomo Jun 27, 2021
5803269
taking changes from wip branch
SamuelBellomo Jun 27, 2021
43b3cbe
taking changes from wip branch
SamuelBellomo Jun 27, 2021
aa09b08
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jun 27, 2021
5fcc7f6
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jun 27, 2021
c804d64
commenting out ExecuteStepInContext for better PR clarity
SamuelBellomo Jun 27, 2021
4165a10
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jun 27, 2021
5a1d2ef
uncommenting here, this is where they should really be
SamuelBellomo Jun 27, 2021
8361c95
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jun 27, 2021
23e435a
cleanup
SamuelBellomo Jun 27, 2021
c400776
Merge branch 'test/multiprocess-tests/orchestration' into test/multip…
SamuelBellomo Jun 27, 2021
5197a3c
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jun 27, 2021
34c7bdc
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jun 27, 2021
c38a957
better name
SamuelBellomo Jun 27, 2021
ad836c5
Merge branch 'test/multiprocess-tests/orchestration' into test/multip…
SamuelBellomo Jun 27, 2021
f60e75c
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jun 27, 2021
e00926e
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jun 27, 2021
60b7d43
removing comment and putting better name
SamuelBellomo Jun 27, 2021
d77f03f
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jun 27, 2021
b1656ae
consistent naming
SamuelBellomo Jul 5, 2021
4ddcd25
Apply suggestions from code review
SamuelBellomo Jul 5, 2021
55e6853
Applying suggestions
SamuelBellomo Jul 5, 2021
310a78d
Merge branch 'test/multiprocess-tests/orchestration' of github.com:Un…
SamuelBellomo Jul 5, 2021
3da130d
Merge branch 'test/multiprocess-tests/orchestration' into test/multip…
SamuelBellomo Jul 5, 2021
17c7e7d
naming
SamuelBellomo Jul 5, 2021
7221712
should be kept public for following PR
SamuelBellomo Jul 5, 2021
4d0c72f
Merge branch 'test/multiprocess-tests/orchestration' into test/multip…
SamuelBellomo Jul 5, 2021
4ff1206
apply rename
SamuelBellomo Jul 5, 2021
ad7addb
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jul 5, 2021
5888f18
rename
SamuelBellomo Jul 5, 2021
98c9d2b
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 5, 2021
62a1d58
using latest test framework
SamuelBellomo Jul 5, 2021
eeae93c
using proper list
SamuelBellomo Jul 5, 2021
520c20d
better exception
SamuelBellomo Jul 5, 2021
3dad45e
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jul 5, 2021
80abc80
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 5, 2021
a3b98a0
Merge branch 'develop' into test/multiprocess-tests/orchestration
0xFA11 Jul 6, 2021
9885747
fix for unused method
SamuelBellomo Jul 6, 2021
4a902ab
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 6, 2021
240e4e0
correct spacing
SamuelBellomo Jul 6, 2021
b93ef11
removing comment and adding something a bit more dynamic
SamuelBellomo Jul 6, 2021
0b37b63
Merge branch 'test/multiprocess-tests/orchestration' of github.com:Un…
SamuelBellomo Jul 6, 2021
3cf743a
Merge branch 'test/multiprocess-tests/orchestration' into test/multip…
SamuelBellomo Jul 6, 2021
2f74194
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jul 6, 2021
fad69e8
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 6, 2021
f6309e9
fix/cleanup asmdefs again
0xFA11 Jul 6, 2021
cd809ec
Apply suggestions from code review
SamuelBellomo Jul 6, 2021
8db3ac3
Merge branch 'test/multiprocess-tests/orchestration' into test/multip…
SamuelBellomo Jul 6, 2021
933df82
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jul 6, 2021
f45df03
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 6, 2021
6f7469b
Merge branch 'develop' into test/multiprocess-tests/orchestration
0xFA11 Jul 8, 2021
29e05bb
no longer ignore '[Ss]treamingAssets/buildInfo.txt'
0xFA11 Jul 8, 2021
ed2519c
PR suggestions
SamuelBellomo Jul 8, 2021
b08561a
changing root menu
SamuelBellomo Jul 8, 2021
1c9fb6c
#
SamuelBellomo Jul 8, 2021
c6d3b4a
rename test scene
SamuelBellomo Jul 8, 2021
2aa372b
Update testproject/Assets/Tests/Runtime/MultiprocessRuntime/Helpers/B…
SamuelBellomo Jul 8, 2021
3b6bfd8
Merge branch 'test/multiprocess-tests/orchestration' of github.com:Un…
SamuelBellomo Jul 8, 2021
484700f
rename for test scene
SamuelBellomo Jul 8, 2021
0701716
Merge branch 'test/multiprocess-tests/orchestration' into test/multip…
SamuelBellomo Jul 8, 2021
cba7b19
proper rename for scene
SamuelBellomo Jul 8, 2021
bde44dd
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jul 8, 2021
9fbfb5b
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 8, 2021
90fffe4
#
SamuelBellomo Jul 8, 2021
24e3608
Merge branch 'test/multiprocess-tests/orchestration' into test/multip…
SamuelBellomo Jul 8, 2021
544572f
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jul 8, 2021
9601d2b
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 8, 2021
2c915e9
simpler flow
SamuelBellomo Jul 8, 2021
d083fb6
Merge branch 'test/multiprocess-tests/orchestration' into test/multip…
SamuelBellomo Jul 8, 2021
9a3bd9b
fixes
SamuelBellomo Jul 8, 2021
65b214c
Merge branch 'test/multiprocess-tests/orchestration' into test/multip…
SamuelBellomo Jul 8, 2021
945c7f3
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jul 8, 2021
17c6b6d
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 8, 2021
f34841f
Merge branch 'develop' into test/multiprocess-tests/base-multiprocess…
SamuelBellomo Jul 8, 2021
2fba2c4
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jul 8, 2021
ffdaeb6
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 8, 2021
070f6af
formatting issues
SamuelBellomo Jul 9, 2021
d1aea4a
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jul 9, 2021
9df09cd
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 9, 2021
d29cc80
format fix
SamuelBellomo Jul 9, 2021
8f8f7ec
name fix
SamuelBellomo Jul 9, 2021
b833202
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 9, 2021
9d33c8c
#
SamuelBellomo Jul 9, 2021
5897561
format update
SamuelBellomo Jul 9, 2021
e64b12e
name fix
SamuelBellomo Jul 9, 2021
c8b4186
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 9, 2021
dfb97b2
format issues
SamuelBellomo Jul 9, 2021
be40cfd
#
SamuelBellomo Jul 9, 2021
750a3b5
#
SamuelBellomo Jul 9, 2021
1e14bd4
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jul 9, 2021
fb5abaa
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 9, 2021
b15f3cd
Merge branch 'develop' into test/multiprocess-tests/base-multiprocess…
0xFA11 Jul 9, 2021
50398b3
fix for automation fail right now
SamuelBellomo Jul 9, 2021
3d4d863
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' of git…
SamuelBellomo Jul 9, 2021
e18b84f
Merge branch 'test/multiprocess-tests/base-multiprocess-tests' into t…
SamuelBellomo Jul 9, 2021
8275189
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 9, 2021
8ab1f40
Merge branch 'develop' into test/multiprocess-tests/execute-step-in-c…
SamuelBellomo Jul 9, 2021
f0a637d
Merge branch 'test/multiprocess-tests/execute-step-in-context' into t…
SamuelBellomo Jul 9, 2021
dd26d58
Merge branch 'develop' into test/multiprocess-tests/adding-perf-tests…
SamuelBellomo Jul 12, 2021
5de07e4
fixing package version issues
SamuelBellomo Jul 12, 2021
b6f85b1
Merge branch 'develop' into test/multiprocess-tests/adding-perf-tests…
SamuelBellomo Jul 12, 2021
4d7941b
proper name for file according to format
SamuelBellomo Jul 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
{
"name": "Unity.Multiplayer.MLAPI.RuntimeTests",
"rootNamespace": "",
"references": [
"Unity.Multiplayer.MLAPI.Runtime",
"UnityEngine.TestRunner",
"UnityEditor.TestRunner",
"Unity.Multiplayer.MLAPI.Editor"
],
"optionalUnityReferences": [
"TestAssemblies"
],
"includePlatforms": [],
"excludePlatforms": []
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"nunit.framework.dll"
],
"autoReferenced": false,
"defineConstraints": [
"UNITY_INCLUDE_TESTS",
"UNITY_EDITOR"
],
"versionDefines": [],
"noEngineReferences": false
}
3 changes: 3 additions & 0 deletions testproject/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ crashlytics-build.properties
# Temporary auto-generated Android Assets
/[Aa]ssets/[Ss]treamingAssets/aa.meta
/[Aa]ssets/[Ss]treamingAssets/aa/*

/[Aa]ssets/[Ss]treamingAssets/buildInfo.txt
/[Aa]ssets/[Ss]treamingAssets/buildInfo.txt.meta
49 changes: 49 additions & 0 deletions testproject/Assets/Prefabs/PerfTestNetworkObject.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &5637023994061915634
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5637023994061915632}
- component: {fileID: 5637023994061915633}
m_Layer: 0
m_Name: PerfTestNetworkObject
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5637023994061915632
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5637023994061915634}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &5637023994061915633
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5637023994061915634}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3}
m_Name:
m_EditorClassIdentifier:
GlobalObjectIdHash: 951099334
AlwaysReplicateAsRoot: 0
DontDestroyWithOwner: 0
AutoObjectParentSync: 1
7 changes: 7 additions & 0 deletions testproject/Assets/Prefabs/PerfTestNetworkObject.prefab.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

100 changes: 100 additions & 0 deletions testproject/Assets/Prefabs/PerfTestVisualNetworkObject.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &9115731988109684252
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 9115731988109684241}
- component: {fileID: 9115731988109684240}
- component: {fileID: 9115731988109684243}
- component: {fileID: 9115731988109684253}
m_Layer: 0
m_Name: PerfTestVisualNetworkObject
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &9115731988109684241
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9115731988109684252}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &9115731988109684240
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9115731988109684252}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &9115731988109684243
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9115731988109684252}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!114 &9115731988109684253
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9115731988109684252}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3}
m_Name:
m_EditorClassIdentifier:
GlobalObjectIdHash: 951099334
AlwaysReplicateAsRoot: 0
DontDestroyWithOwner: 0

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading