Commit Graph

534 Commits

Author SHA1 Message Date
Olex Lozitskiy 9e2eba2829 Network Hierarchy optimizations for rebuilding hierarchies
- reworked recursive rebuilding to iterative breadth first method
- some minor optimization here and there
2021-10-20 13:50:35 -04:00
AMZN-Olex 9e4a39f9ed Hierarchy code enhancements
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-10-20 09:30:21 -04:00
SergeyAMZN 2971dc9a3e Merge pull request #4425 from aws-lumberyard-dev/NetHierarchyInput
Network hierarchy input processing
2021-10-20 13:18:12 +01:00
Sergey Pereslavtsev 8e520c8db8 PR feedback
Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com>
2021-10-20 12:36:35 +01:00
Sergey Pereslavtsev e3a14c0809 Fixed warning about unused local variable
Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com>
2021-10-19 18:42:35 +01:00
puvvadar 66c4950de0 Merge pull request #4529 from aws-lumberyard-dev/mp_deltaserializer_perf
Reworking DeltaSerializer to no longer require string based hashes
2021-10-19 10:22:37 -07:00
Sergey Pereslavtsev faea65e840 Removed pragma once from cpp
Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com>
2021-10-19 17:59:06 +01:00
pereslav 725be128aa tidy up
Signed-off-by: pereslav <pereslav@amazon.com>
2021-10-19 16:20:40 +01:00
pereslav 62971fa7bd PR feedback, removed unnecessary code
Signed-off-by: pereslav <pereslav@amazon.com>
2021-10-19 13:52:32 +01:00
AMZN-Olex ceb9b7afd7 Merge branch 'development' of https://github.com/o3de/o3de into Network/olexl/hierarchy_optimizations_cr 2021-10-18 22:54:06 -04:00
puvvadar 0c141ac210 Const some unit test values
Signed-off-by: puvvadar <puvvadar@amazon.com>
2021-10-18 16:20:13 -07:00
Vincent Liu a534fccc9b Expose matchmaking event polling APIs and add required session notifications (#4636)
* Expose matchmaking event polling APIs and add required session notifications

Signed-off-by: onecent1101 <liug@amazon.com>
2021-10-18 12:47:55 -07:00
puvvadar b5739f6918 Merge branch 'development' of https://github.com/o3de/o3de into mp_deltaserializer_perf 2021-10-15 12:53:26 -07:00
pereslav 05493b538f Added tracking of hierarchy root ownership when hierarchies are migrated
Signed-off-by: pereslav <pereslav@amazon.com>
2021-10-15 13:13:19 +01:00
pereslav 3c1a2db636 Removed unnecessary files from CMakeLists.txt
Signed-off-by: pereslav <pereslav@amazon.com>
2021-10-14 23:27:58 +01:00
pereslav b1a76feead Added tests. Made network spawnable to serialize in binary
Signed-off-by: pereslav <pereslav@amazon.com>
2021-10-14 23:21:04 +01:00
Vincent Liu 6823ea2274 Add GameLift matchmaking backfill server support (#4622)
* Add GameLift matchmaking backfill server support

Signed-off-by: onecent1101 <liug@amazon.com>
2021-10-13 16:59:37 -07:00
puvvadar ba7ff3c8e8 Add Network Input unit tests
Signed-off-by: puvvadar <puvvadar@amazon.com>
2021-10-13 16:31:30 -07:00
pereslav 08b1529da8 Merge from development
Signed-off-by: pereslav <pereslav@amazon.com>
2021-10-08 21:27:55 +01:00
pereslav 0c2c042fde Fixed crash in ConstEntityHandle. Added hierarchical correction data serialization
Signed-off-by: pereslav <pereslav@amazon.com>
2021-10-08 21:19:22 +01:00
Stephen Tramer 396edd22fb Merge pull request #4461 from aws-lumberyard-dev/LYN-7080_FixEditorServerConnectionRaceCondition
Fix EditorServer Connection
2021-10-08 11:07:52 -07:00
AMZN-Olex 065e0635d4 Merge branch 'development' of https://github.com/o3de/o3de into Network/olexl/hierarchy_optimizations_cr 2021-10-08 12:22:22 -04:00
Gene Walters 9b86749a83 Making sure unit tests using iMultiplayers implement the new AddServerAcceptance events; misc cleanup
Signed-off-by: Gene Walters <genewalt@amazon.com>
2021-10-07 13:01:05 -07:00
AMZN-Olex ecd358a53e Cleaning up
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-10-07 12:56:44 -04:00
AMZN-Olex a114077e72 Final touches on the first pass of imgui hierarchy debugger
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-10-07 12:53:33 -04:00
pereslav cb53389004 Added validation into input processing
Signed-off-by: pereslav <pereslav@amazon.com>
2021-10-07 16:58:37 +01:00
pereslav 28a40fa4df Added look up of the child entities when processing input to make sure the entity still exists
Signed-off-by: pereslav <pereslav@amazon.com>
2021-10-07 16:24:21 +01:00
AMZN-Olex 77c23b6c8f Hierarchy imgui debugger, first take
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-10-07 08:27:48 -04:00
Gene Walters 7e6d35b046 small fix to include using <>
Signed-off-by: Gene Walters <genewalt@amazon.com>
2021-10-06 20:11:29 -07:00
Gene Walters b464ff966c merging latest dev + resolving 1 merge conflict
Signed-off-by: Gene Walters <genewalt@amazon.com>
2021-10-06 16:53:25 -07:00
pereslav a58325e691 Enabled multi-entities player prefabs. Added updating replication set for hierarchy children. PR feedback addressing
Signed-off-by: pereslav <pereslav@amazon.com>
2021-10-07 00:38:07 +01:00
Gene Walters 50fe8bc04d pass in AZ::Utils::GetProjectPath().c_str() directly since converting projectpath is not needed
Signed-off-by: Gene Walters <genewalt@amazon.com>
2021-10-06 16:35:21 -07:00
Gene Walters d36041d1b7 Update based on feedback. Adding event to MPSystemComponent for receiving a server acceptance packet. The editor system component subscribes to this event and tells the server we're ready for entity updates
Signed-off-by: Gene Walters <genewalt@amazon.com>
2021-10-06 15:48:54 -07:00
AMZN-Olex 0a11e8ffc5 Optimization for looking up components.
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-10-05 11:26:31 -04:00
pereslav 801e54c599 Merge branch 'development' of https://github.com/o3de/o3de into NetHierarchyInput 2021-10-05 15:53:39 +01:00
AMZN-Olex 37d9ef8762 Merge branch 'development' of https://github.com/o3de/o3de into Network/olexl/hierarchy_optimizations_cr 2021-10-05 10:23:04 -04:00
AMZN-Olex c2a84de38c Updated mock-like interfaces for benchmarks
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-10-05 08:53:50 -04:00
AMZN-Olex 5cf6236bd9 Fixing development build break
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-10-05 08:46:48 -04:00
AMZN-Olex d05d5d1e97 Hierarchy components optimizations
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-10-05 08:31:23 -04:00
Olex Lozitskiy 52d3e4c601 [SIG-Network] Google benchmarks for network hierarchy components.
First google benchmarks for hierarchy components.
2021-10-05 08:23:14 -04:00
AMZN-Olex 31b2fe427b Added a helpful comment on hierarchy benchmark
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-10-04 21:10:39 -04:00
puvvadar 91aafdcdde Fix bad include in NetworkTransformTests
Signed-off-by: puvvadar <puvvadar@amazon.com>
2021-10-04 15:17:01 -07:00
puvvadar 170a32d667 Merge latest to mp_handshake_conndata
Signed-off-by: puvvadar <puvvadar@amazon.com>
2021-10-04 13:58:09 -07:00
kberg-amzn 5acb360fbb Merge pull request #4253 from aws-lumberyard-dev/MigrationFixup
Migration fixup
2021-10-04 13:50:28 -07:00
kberg-amzn 9f209dceea Fix casing issue with client hierarchy tests
Signed-off-by: kberg-amzn <karlberg@amazon.com>
2021-10-04 09:43:43 -07:00
kberg-amzn 66ab15a4b6 Removing old EntityReplicationManager.h that got re-added, this has been moved to public includes
Signed-off-by: kberg-amzn <karlberg@amazon.com>
2021-10-04 09:39:35 -07:00
AMZN-Olex 3321f9e5ea First google benchmarks for hierarchy logic.
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-10-04 09:00:20 -04:00
Gene Walters 73891c71b7 Fix EditorServer connection by ensuring that SendReadyForEntityUpdates is only called after a handshake is finished and the editor has accepted the editorserver's connection. Also allow engine-centric projects to use editor-server by passing in the project-path when launching the editor-server. Also allow devs to set sv_defaultPlayerSpawnAsset from inside the editor and it'll be used by the editor-server
Signed-off-by: Gene Walters <genewalt@amazon.com>
2021-10-03 22:49:13 -07:00
pereslav 64068991ed Merge branch 'development' of https://github.com/o3de/o3de into NetHierarchyInput 2021-10-02 23:46:17 +01:00
kberg-amzn bf136a567b Some shutdown crash fixes, reverted a whitespace, and added some basic unit tests for time additions
Signed-off-by: kberg-amzn <karlberg@amazon.com>
2021-10-01 15:04:50 -07:00