Commit Graph

89 Commits

Author SHA1 Message Date
Gene Walters 54de15b0ec Adding '.network.spawnable' as a network constant
Signed-off-by: Gene Walters <genewalt@amazon.com>
2022-01-18 16:34:58 -08:00
AMZN-koppersr 603967d61f Fixed build issues with Spawnable Entity Aliases.
Signed-off-by: AMZN-koppersr <82230785+AMZN-koppersr@users.noreply.github.com>
2022-01-06 11:04:54 -08:00
Esteban Papp cd5306febf Merging from development
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
2021-12-07 12:35:41 -08:00
Esteban Papp 59ef6f983f Removes Driller from ScriptCanvas
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
2021-12-02 13:55:00 -08:00
amzn-sean 38a03817bb Removal and Replacement of the CryTimer (gEnv->pTimer) (#5409)
Replaced and removed the CryTimer (gEnv->pTimer). The new TimeSystem is a merger of the current time functionality found in the engine.

* Rename TimeSystemComponent.h/.cpp to TimeSystem.h/.cpp
* Adding New TimeSystem
* remove old timer cvars
* small improvements to the time system.
 - updated parts to use the time conversion functions.
 - in AdvanceTickDeltaTimes applying t_simulationTickScale is now uses doubles instead of floats.
* Replace gEnv->pTimer / ITimer usages with TimeSystem
* Updating usages of AZ::TimeMs{ 0 } and AZ::TimeUs{ 0 } to AZ::Time::ZeroTimeMs and AZ::Time::ZeroTimeUs
* red code the CryTimer
* using TimeUs instead of TimeMs is some cases + updating usages of old cvars to new

Signed-off-by: amzn-sean <75276488+amzn-sean@users.noreply.github.com>
2021-11-15 12:11:58 +00:00
Nicholas Van Sickle 8d5dd4e35f Merge remote-tracking branch 'upstream/stabilization/2110' into nvsickle/StabToDevNov21
Signed-off-by: Nicholas Van Sickle <nvsickle@amazon.com>
2021-11-11 10:15:52 -08:00
lumberyard-employee-dm 5fc4551ac0 [LYN-8041] Enable relocation of the Project Game Release Layout (#5380)
* Enable relocation of the Project Game Release Layout

Relocating the Project Game Release Layout to another directory on the file system failed due to the querying of the engine root failing due to the ComponentApplication::m_engineRoot not using the project path stored in the SettingsRegisry if the engine root cannot be detected

Removed the ApplicationRequestBus GetEngineRoot function.
The ComponentApplicationRequestBus has a function of the same name that returns the same path.

Removed the deprecated GetAppRoot function.
The path it returns has no defined value. It was not the engine root or the project root.
Removed unused CFileUtil and CFileUtil_impl functions that were invoking the ApplicationREquestBus GetEngineRoot function.
On the way to update the functions it was discovered that they aren't called

Added a CalculateBranchToken overload that can populate a fixed_string to avoid heap allocations

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Protect against an empty list of artifacts to remove when generating the
engine.pak

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
2021-11-09 12:03:52 -06:00
kberg-amzn 988561920a Sets up the event scheduler system component for hierarchy tests
Signed-off-by: kberg-amzn <karlberg@amazon.com>
2021-11-05 12:26:10 -07:00
kberg-amzn dedb367e9a Remove lots of mock interface code duplication
Signed-off-by: kberg-amzn <karlberg@amazon.com>
2021-11-04 16:29:41 -07:00
kberg-amzn 97e10d8210 Fix mock and benchmark interfaces
Signed-off-by: kberg-amzn <karlberg@amazon.com>
2021-11-04 16:27:05 -07:00
Olex Lozitskiy 775dda8ed2 NetBindComponent::SetOwningConnectionId is for a hierarchy based on its root's network entity
- for hierarchies, on both servers and clients NetBindComponent::SetOwningConnectionId is set for the all involved entities based on the root entity owning connection id
- added new unit tests to cover these scenarios
- all unit tests pass, hierarchy benchmarks remain unaffected
2021-10-22 11:09:30 -04:00
kberg-amzn 214a2899ad oops =(
Signed-off-by: kberg-amzn <karlberg@amazon.com>
2021-10-21 16:41:01 -07:00
kberg-amzn 2df466228a fixing one more broken include
Signed-off-by: kberg-amzn <karlberg@amazon.com>
2021-10-21 15:58:01 -07:00
AMZN-Olex 37873f81cf Setting owning connection id based on the hierarchy root network entity.
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-10-21 15:09:46 -04:00
kberg-amzn 79b41686c4 Merging latest dev
Signed-off-by: kberg-amzn <karlberg@amazon.com>
2021-10-21 10:11:37 -07:00
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
SergeyAMZN 2971dc9a3e Merge pull request #4425 from aws-lumberyard-dev/NetHierarchyInput
Network hierarchy input processing
2021-10-20 13:18:12 +01:00
kberg-amzn c228e77e1c Fixes a bunch of bad casts in hierarchy tests
Signed-off-by: kberg-amzn <karlberg@amazon.com>
2021-10-19 12:11:56 -07: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
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
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
kberg-amzn e6290436fc Updates mocks for interface changes
Signed-off-by: kberg-amzn <karlberg@amazon.com>
2021-10-15 18:01:40 -07: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
puvvadar ba7ff3c8e8 Add Network Input unit tests
Signed-off-by: puvvadar <puvvadar@amazon.com>
2021-10-13 16:31:30 -07: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 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
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
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
AMZN-Olex 65b82b41d6 Added unittest for an activation test
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-10-01 17:56:32 -04:00
kberg-amzn 8d993494f6 Entity migrations now totally functional again, plus some fixes to network rigid bodies to make them work properly as they migrate around
Signed-off-by: kberg-amzn <karlberg@amazon.com>
2021-09-30 22:53:51 -07:00
AMZN-Olex 6d005c62f4 Merge branch 'development' of https://github.com/o3de/o3de into Network/olexl/nettransform_local_for_children_cr 2021-09-23 16:29:40 -04:00
AMZN-Olex 4308db0c6d Debug build clang fixes
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-09-23 11:59:43 -04:00
AMZN-Olex 3c46336ab0 NetTransform replicates local transform for child entities
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-09-23 10:25:14 -04:00
AMZN-Olex ce1614bd57 Merged with dev
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-09-22 08:35:35 -04:00
AMZN-Olex cb75607106 Merged dev
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-09-22 08:09:53 -04:00
SergeyAMZN 35517c4e6a Merge pull request #4023 from aws-lumberyard-dev/MPSpawnableRework
Reworked net entities instantiation in order to fix entity references…
2021-09-22 10:50:35 +01:00
AMZN-Olex 5f73061227 Adding client side on-parent-changed logic for Network Transform Component
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-09-21 22:19:21 -04:00
AMZN-Olex f85a7dfeeb Merged dev
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-09-21 12:57:57 -04:00
AMZN-Olex 78148ead7c Unittests for IsHierarchyEnabled
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-09-20 11:56:40 -04:00
puvvadar 3e8fe7df39 Add unit tests for RewindableObject Get and GetPrevious
Signed-off-by: puvvadar <puvvadar@amazon.com>
2021-09-17 15:41:54 -07:00
AMZN-Olex c673988935 Unittest refactoring
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
2021-09-15 17:58:06 -04:00