AMZN-Olex
4ca71fd96a
Added MULTIPLAYER budget. Added profiler markers, visible in PIX.
...
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
4 years ago
Gene Walters
b98bc34eb1
Merge pull request #7031 from aws-lumberyard-dev/LYN-9321_RequestNetSpawnableErrorFix
...
Fix Editor Play-Mode RequestNetSpawnable Error
4 years ago
Daniel Edwards
0a5f472f43
Clang 13: Fix build errors ...
...
... due to local variables only being written to (but never read).
Signed-off-by: Daniel Edwards <dev@danieledwards.de>
4 years ago
Gene Walters
a452da819d
Dont allow spawning netbound entities by default, we first need to initialize multiplayer and know our network agent type (dedicated-server/client-server/client). This will stop the editor playmode (which doesn't init multiplayer until it connects to the server) from spawning netbound entities
...
Signed-off-by: Gene Walters <genewalt@amazon.com>
4 years ago
Gene Walters
fbfea49b68
small comment tweak based on feedback
...
Signed-off-by: Gene Walters <genewalt@amazon.com>
4 years ago
Gene Walters
54de15b0ec
Adding '.network.spawnable' as a network constant
...
Signed-off-by: Gene Walters <genewalt@amazon.com>
4 years ago
Gene Walters
626b16dbae
Updating NetworkingSpawnableLibrary to only store network spawnables, instead of all spawnables
...
Signed-off-by: Gene Walters <genewalt@amazon.com>
4 years ago
Gene Walters
786d6b5f85
minor code readability tweak
...
Signed-off-by: Gene Walters <genewalt@amazon.com>
4 years ago
Gene Walters
e4bd28f636
Update NetworkSpawnableLibrary to only hold onto network.spawnables (instead of all spawnables)
...
Signed-off-by: Gene Walters <genewalt@amazon.com>
4 years ago
lumberyard-employee-dm
18ea4ba6a8
Added a CriticalAssetsCompiled Lifecycle event ( #6469 )
...
The CriticalAssetsCompiled event can be handled to detect when the
AssetProcessor has finished processing Critical Assets
Also with the new event, an audit has been performed over all the
locations where the AssetCatalogEventBus OnCatalogLoaded event was being
handle to make sure it was the proper event to use.
If the handler was actually examing the enumerating over the full
catalog or querying all assets within the catalog, then it was a proper
use.
For handlers that were interested in a particular asset it was not
Moreover added implementations of `OnCatalogAssetChanged` and
`OnCatalogAssetAdded` to the FileTagComponent and the MaterialViewportComponent.
Any applications which uses the AtomToolsApplication
class(MaterialEditor, AtomSampleViewerStandalone,
ShaderMangementConsole) now signals a "CriticalAssetsCompiled" lifecycle
event as well as loads the "assetcatalog.xml" if it exists.
The Launcher application signals the "CrticalAssetsCompiled" event and
reloads the "assetcatalog.xml" for the ${project}.GameLauncher and
${project}.ServerLauncher in Launcher.cpp
Finally the Editor signals the "CriticalAssetsCompiled" and reloads the
"assetcatalog.xml" in CryEdit.cpp
resolves #6093
Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
4 years ago
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>
4 years ago
Sergey Pereslavtsev
1e6518abab
Build fix after the merge from dev
...
Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com>
4 years ago
Sergey Pereslavtsev
32f72a1213
Merge from development
...
Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com>
4 years ago
Sergey Pereslavtsev
807d0d7a5a
Fixed hierarchies migration. Fixed assert with invalid entity bounds
...
Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com>
4 years ago
kberg-amzn
ed06ef7ed2
Removing ITimeoutHandler to simplify timeout queue interface, removes some unneeded code
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
kberg-amzn
7e65104155
Addressing PR feedback
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
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>
4 years ago
kberg-amzn
fda7a6353e
Backing out some temporary debugging code
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
kberg-amzn
5b734b9d41
A number of fixes to timeout and disconnect handling
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
kberg-amzn
79b41686c4
Merging latest dev
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
kberg-amzn
47a00e9801
Missed one more printf
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
kberg-amzn
e2a2ecff44
missed a printf
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
kberg-amzn
3a0805254b
Fixes for 64-bit printfs
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
pereslav
05493b538f
Added tracking of hierarchy root ownership when hierarchies are migrated
...
Signed-off-by: pereslav <pereslav@amazon.com>
4 years ago
kberg-amzn
05e8b2941a
Removing unused member, simplify API
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
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>
4 years ago
pereslav
0c2c042fde
Fixed crash in ConstEntityHandle. Added hierarchical correction data serialization
...
Signed-off-by: pereslav <pereslav@amazon.com>
4 years ago
kberg-amzn
18340f2b1b
Changes to get client migration partially functional
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
kberg-amzn
c1c8709206
Fix 3-way replication for when an object migrates in rapid succession
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
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>
4 years ago
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>
4 years ago
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>
4 years ago
kberg-amzn
02bc89cd92
Fixes to sending entity updates and entity rpcs within an environment set up for cross host entity migration
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
kberg-amzn
0a829f9661
Merging latest development
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
kberg-amzn
95d7cc7212
Adding the NetworkConnectionComponent to hold user nonce and migration values for a backup host in case the current host crashes or abnormally disconnects
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
kberg-amzn
f837f0494b
many bug fixes
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
AMZN-Olex
cb75607106
Merged dev
...
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
4 years ago
SergeyAMZN
35517c4e6a
Merge pull request #4023 from aws-lumberyard-dev/MPSpawnableRework
...
Reworked net entities instantiation in order to fix entity references…
4 years ago
pereslav
dc0bb00c10
Added an error check in case of a requested spawnable is not networked
...
Signed-off-by: pereslav <pereslav@amazon.com>
4 years ago
pereslav
895974db57
Removed spawn/despawn events from the spawnable system. Used NetworkSpawnableHolderComponent instead
...
Signed-off-by: pereslav <pereslav@amazon.com>
4 years ago
kberg-amzn
8401ee409b
merging latest development
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
AMZN-Olex
bcc77d75db
Merge branch 'development' of https://github.com/o3de/o3de into Network/olex/hierarchy_component_phase1_pr
4 years ago
kberg-amzn
6e84495975
Changes to make client and entity migration functional, needed in the event of a host quitting necessitating a host migration
...
Signed-off-by: kberg-amzn <karlberg@amazon.com>
4 years ago
pereslav
454ae90afb
Added a few whitespaces
...
Signed-off-by: pereslav <pereslav@amazon.com>
4 years ago
kberg-amzn
f1f35a0ba8
Merge pull request #4003 from aws-lumberyard-dev/MultiplayerRewindClear
...
Multiplayer rewind clear
4 years ago
pereslav
a3dfb88696
Added support for instantiating network spawnables for any spawnables, not just root spawnable
...
Signed-off-by: pereslav <pereslav@amazon.com>
4 years ago
AMZN-Olex
2be5854beb
Cleanup
...
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
4 years ago
AMZN-Olex
fcd5b3f184
Converted to use AZ::Events for hiearchy notifications. Added unittests.
...
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
4 years ago
AMZN-Olex
aa6c038880
Hierarchical components, phase 1, unittests
...
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
4 years ago
pereslav
9b0e3f26b1
PR feedback addressing 2
...
Signed-off-by: pereslav <pereslav@amazon.com>
4 years ago