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
Sergey Pereslavtsev
32f72a1213
Merge from development
...
Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com >
2021-11-08 15:41:40 +00:00
kberg-amzn
479ff188a0
merging latest development
...
Signed-off-by: kberg-amzn <karlberg@amazon.com >
2021-11-05 15:05:23 -07:00
Sergey Pereslavtsev
2b2e5c6367
Fixed client hierarchy construction to check for authority instead of controller
...
Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com >
2021-11-04 14:52:35 +00:00
kberg-amzn
8a3d055f8b
Some cleanup around handling of migrations to simplify interfaces and add additional hooks for functionality
...
Signed-off-by: kberg-amzn <karlberg@amazon.com >
2021-11-03 19:34:10 -07:00
AMZN-Olex
250a91dd96
Network Hierarchy Root and Child components can now act as MultiplayerInputDriver for components with NetworkInputs
...
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com >
2021-10-26 19:10:46 -04: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
AMZN-Olex
a2592e9ff8
Correction in set hierarchy entity logic.
...
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com >
2021-10-22 09:43:52 -04:00
AMZN-Olex
317bb7aa67
Owning connection id will happen on clients as well.
...
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com >
2021-10-21 15:14:00 -04: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
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
pereslav
62971fa7bd
PR feedback, removed unnecessary code
...
Signed-off-by: pereslav <pereslav@amazon.com >
2021-10-19 13:52:32 +01:00
kberg-amzn
a6e7a81b79
More fixes to migration, plus some quality of life fixes to TimeoutQueue to allow lambda based handlers and a quick fix to OctreeSystemComponent to more gracefully handle enumerate calls that lie outside the vis system bounds
...
Signed-off-by: kberg-amzn <karlberg@amazon.com >
2021-10-14 18:22:41 -07:00
kberg-amzn
4449e83c3b
Further fixes to get client migrations functional, plus a bug fix from the netBindComponent lookup optimization
...
Signed-off-by: kberg-amzn <karlberg@amazon.com >
2021-10-08 21:27:31 -07: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
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
kberg-amzn
18340f2b1b
Changes to get client migration partially functional
...
Signed-off-by: kberg-amzn <karlberg@amazon.com >
2021-10-06 18:57:45 -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
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
d05d5d1e97
Hierarchy components optimizations
...
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com >
2021-10-05 08:31:23 -04:00
kberg-amzn
5acb360fbb
Merge pull request #4253 from aws-lumberyard-dev/MigrationFixup
...
Migration fixup
2021-10-04 13:50:28 -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
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
865ed60007
merging latest dev
...
Signed-off-by: kberg-amzn <karlberg@amazon.com >
2021-10-01 09:53:16 -07: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
pereslav
ef3552df69
First pass for network hierarchy input processing
...
Signed-off-by: pereslav <pereslav@amazon.com >
2021-10-01 00:07:23 +01:00
AMZN-Olex
bd0f5a1746
Merge branch 'development' of https://github.com/o3de/o3de into Network/olexl/nettransform_local_for_children_cr
2021-09-30 18:22:23 -04:00
lumberyard-employee-dm
816a623c97
Added missing EntityId.h include to FocusModeInterface.h ( #4396 )
...
* Added missing EntityId.h include to FocusModeInterface.h
Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com >
* Non-unity build fix
Adding missing BehaviorContext.h includes to Multiplayer Gem
Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com >
* Added missing BehaviorContext.h include to NetworkCharacterComponent
Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com >
2021-09-29 17:49:02 -05:00
Artur K
f44169f7fa
Cleanup SerializeContext.h pt.1 ( #4264 )
...
* Remove AssetSerializer inclusion from SerializeContext header
Moved a few Reflect methods to new cpp files.
In addition, some preparations for further header dependency reductions.
Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com >
* Fix smoke test lua failures.
Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com >
* Windows build fixes.
Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com >
* Missing license headers
Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com >
* Fix white-space issues.
Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com >
* Code review fix for AzToolsFramework/AssetEditor/AssetEditorBus.h
Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com >
Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com >
* Fix inheritance list wrapping broken by older clang-format
Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com >
Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com >
2021-09-29 11:31:01 -05:00
kberg-amzn
0a829f9661
Merging latest development
...
Signed-off-by: kberg-amzn <karlberg@amazon.com >
2021-09-27 15:50:22 -07:00
AMZN-Olex
1765934281
Merge branch 'development' of https://github.com/o3de/o3de into Network/olexl/nettransform_local_for_children_cr
2021-09-27 07:37:54 -04:00
kberg-amzn
f837f0494b
many bug fixes
...
Signed-off-by: kberg-amzn <karlberg@amazon.com >
2021-09-23 18:25:46 -07:00
Gene Walters
e91353143f
Merge branch 'upstream/development' into LYN6657_MultiplayerScriptImprovementsForDemo
2021-09-23 16:35:56 -07:00
AMZN-Olex
40286b7bac
A small optimization
...
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com >
2021-09-23 17:37:39 -04:00
Gene Walters
a44af20f9a
Adding parameter names to NetworkCharacterComponent script events so people know what the parameters are used for in scriptcanvas
...
Signed-off-by: Gene Walters <genewalt@amazon.com >
2021-09-23 13:01:34 -07:00
Gene Walters
c2c18f094b
Exposing NetworkCharacterComponent::TryMoveWithVelocity to script. Updating Multiplayer AutoComponent baseclass behavior context to Reflect itself instead of its derived (human made) component. This is so the derived class can also create behaviorcontext classes of its own if needed. Misc copyright header edit.
...
Signed-off-by: Gene Walters <genewalt@amazon.com >
2021-09-23 09:46:55 -07: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
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
kberg-amzn
ca7de715fd
minor code cleanup
...
Signed-off-by: kberg-amzn <karlberg@amazon.com >
2021-09-21 11:56:19 -07: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
kberg-amzn
1000a07b3f
merging latest main
...
Signed-off-by: kberg-amzn <karlberg@amazon.com >
2021-09-20 17:26:11 -07:00
Gene Walters
465f91c7f5
Fix compiler error because EntityPreRenderEvent only takes one float for deltaTime now
...
Signed-off-by: Gene Walters <genewalt@amazon.com >
2021-09-20 14:59:28 -07:00
kberg-amzn
22ab484986
merging latest development
...
Signed-off-by: kberg-amzn <karlberg@amazon.com >
2021-09-20 14:07:49 -07:00
kberg-amzn
52004f6cb5
Merge pull request #4120 from aws-lumberyard-dev/LYN6527_MoveMPSampleComponents_into_MultiplayerGem
...
Move Multiplayer Sample Components into Multiplayer Gem
2021-09-20 13:50:00 -07:00
kberg-amzn
011bd5d10e
merging latest development
...
Signed-off-by: kberg-amzn <karlberg@amazon.com >
2021-09-20 13:28:57 -07:00