Commit Graph

288 Commits

Author SHA1 Message Date
Wojtek Figat
cf40facefe Add engine fatal error types handling
Add general out-of-memory handling
Add safety memory buffer for crash or out of memory handling
Refactor Globals exit/error state to be in Engine class
2025-01-24 20:07:12 +01:00
Wojtek Figat
668f3fa68d Update read and write streaming api to use the newest format 2024-12-29 23:00:40 +01:00
Wojtek Figat
9d70fd82d6 Merge remote-tracking branch 'origin/master' into 1.10
# Conflicts:
#	Source/Engine/Networking/NetworkReplicator.cpp
2024-11-22 16:31:18 +01:00
envision3d
8af74e2062 Remap object id for role change message 2024-11-08 05:04:40 -06:00
Wojtek Figat
a1b3610af8 Enable network object ids remapping for host or server too to fix custom object ids map
#3042
2024-11-07 13:57:26 +01:00
Wojtek Figat
851e0b4239 Check for valid object id to map 2024-11-06 23:58:14 +01:00
Wojtek Figat
246944f688 Merge remote-tracking branch 'origin/master' into 1.10 2024-11-06 09:29:48 +01:00
Wojtek Figat
853e7cb6f7 Add NetworkReplicator.AddObjectIdMapping for global/custom network objects sync
#3042
2024-11-05 16:37:23 +01:00
ldkuba
2715df7cf2 Fix NetworkManager not resetting LastUpdateTime
NetworkManager did not reset the LastUpdateTime variable to 0 when
stopping. This lead to wrong behaviour in Update when Stopped and
Started multiple times.
2024-10-30 15:16:45 +01:00
Wojtek Figat
c94052513e Add object replication data cache and send via Reliable channel to reduce data transfer 2024-10-15 19:47:09 +02:00
Wojtek Figat
60ed23105d Fix typo 2024-10-15 12:33:51 +02:00
Wojtek Figat
ac832a0e81 Optimize network transform replication 2024-10-15 11:24:10 +02:00
Wojtek Figat
b957733150 Fixes 2024-10-14 23:35:41 +02:00
Wojtek Figat
7e4d7743a4 Add Quaternion quantization for network stream
Reduced send rate by 56% in average. Identity quat is just 8-bits (flags)
Added tests with full-sphere rotation to ensure this works correctly.
2024-10-14 22:32:29 +02:00
Wojtek Figat
b38af8fd00 Format code and add debug cmd attributes 2024-10-14 12:12:48 +02:00
Wojtek Figat
443fe5dbcb Add network keys table to optimize ids and names sending over network
#2815
2024-10-14 12:11:20 +02:00
Wojtek Figat
c063afc5bc Fix GetObject/SetObject usage in network replication hierarchy 2024-09-30 14:52:05 +02:00
Wojtek Figat
dd5b66386a Fix compilation regression from 5f7075d2f7 2024-09-29 22:25:44 +02:00
Wojtek Figat
bf4badd6b9 Merge branch 'networklagdriver-fix' of https://github.com/LOOPDISK/FlaxEngine into LOOPDISK-networklagdriver-fix 2024-09-29 22:10:29 +02:00
Wojtek Figat
5f7075d2f7 Add NetworkReplicationNode::SetObject to customize object replication settings at runtime 2024-09-29 22:08:31 +02:00
Terence Lee
6015514680 Fixed NetworkLagDriver having wrong ChannelType and Length 2024-09-29 12:41:36 +08:00
Wojtek Figat
5d578d9e92 Fix NetworkReplicator::MapObjectId to work in both ways on a client 2024-09-24 09:25:10 +02:00
Wojtek Figat
18dc475f40 Merge remote-tracking branch 'origin/master' into 1.9
# Conflicts:
#	Source/Engine/UI/GUI/Common/Button.cs
2024-09-23 14:11:05 +02:00
Wojtek Figat
8c0d89bc62 Add NetworkReplicator::MapObjectId for networked object identifies mapping 2024-09-18 12:54:10 +02:00
Wojtek Figat
9daddccbed Merge remote-tracking branch 'origin/master' into 1.9
# Conflicts:
#	Source/Editor/Modules/ContentDatabaseModule.cs
#	Source/Editor/Surface/SurfaceUtils.cs
#	Source/Editor/Windows/Assets/MaterialInstanceWindow.cs
#	Source/Engine/Foliage/Foliage.cpp
#	Source/Engine/Graphics/Models/MeshBase.h
#	Source/Engine/Tools/MaterialGenerator/MaterialGenerator.Textures.cpp
2024-09-12 13:38:20 +02:00
Wojtek Figat
f3f7d4a034 Fix incorrect network RPC sending when target client ids list is provided but is empty
#2272
2024-08-28 16:36:08 +02:00
e08b57e814 Support custom deprecation messages in bindings generator 2024-06-17 20:43:14 +03:00
Wojtek Figat
3404643636 Add better error messages to NetworkReplicator::SetObjectOwnership for incorrect usage 2024-05-16 10:49:51 +02:00
Wojtek Figat
203f03a597 Add Write/Read methods to NetworkStream for INetworkSerializable sending in C# api 2024-04-22 23:25:19 +02:00
Wojtek Figat
6929a91312 Add support for manually dirtying objects that use ReplicationFPS < 0 for manual-only replication 2024-03-29 13:03:38 +01:00
Wojtek Figat
069445b94e Fix bug in NetworkReplicator::RemoveObject 2024-03-29 13:03:11 +01:00
Wojtek Figat
09f5ac0ed6 Fix networked objects dirtying for replication 2024-03-29 13:02:23 +01:00
Wojtek Figat
d719c381ea Merge remote-tracking branch 'origin/master' into 1.8 2024-03-11 23:49:33 +01:00
Wojtek Figat
53bd576ade Fix game settings serialization bug 2024-02-28 02:05:26 +01:00
Wojtek Figat
f1bc161ad2 Merge branch 'category-rework' of https://github.com/Tryibion/FlaxEngine into Tryibion-category-rework 2024-02-27 11:08:33 +01:00
Wojtek Figat
859c420d76 Update year in copyright note 2024-02-26 19:00:48 +01:00
Wojtek Figat
e2dd9832ba Fix crash when using network replication or rpc after hot-reload in Editor 2024-02-26 18:25:53 +01:00
Chandler Cox
8ee2bf8d76 Change category drop panel o look similar to other panels. Add flax engine scripts to flax engine category. 2024-02-20 21:00:20 -06:00
Wojtek Figat
04f1c9a59b Fix missing networked object ID resolving
#1607
2024-02-10 21:06:48 +01:00
Wojtek Figat
7f5dd78349 Merge branch 'null_networkdriver' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-null_networkdriver 2024-01-04 11:27:13 +01:00
Wiktor Kocielski
8e331e4d13 Silently drop unreliable RPC calls if we failed to find an object 2024-01-04 08:54:04 +03:00
f10840efb4 Fix uninitialized value of NetworkConfig NetworkDriver field 2023-12-29 19:51:29 +02:00
Wojtek Figat
1874382816 Various fixes to prefabs 2023-12-13 11:05:29 +01:00
Wojtek Figat
a909b57e82 Fix deadlock in NetworkManager when network peer returns invalid event type
#1992
2023-11-28 11:24:46 +01:00
Wojtek Figat
35ebdb0ffe Refactor INetworkDriver::PopEvent to use network event as output parameter rather than raw pointer
#1992
2023-11-28 11:24:17 +01:00
Wojtek Figat
9cd8c02911 Fix NetworkTransform to properly reject local simulation deltas on incoming authoritative transform data
#1907
2023-11-10 11:34:52 +01:00
Wojtek Figat
fa96707c57 Fix crash when implementing INetworkSerializable in C#-only
#1664
2023-10-11 18:39:51 +02:00
Wojtek Figat
d71c171412 Cleanup code in #1367 and fix api compatibility, revert joint changes 2023-09-28 13:10:58 +02:00
Wojtek Figat
2f9c601678 Merge remote-tracking branch 'origin/master' into 1.7 2023-09-27 17:32:47 +02:00
Wojtek Figat
6621e70ae7 Add objects replication and RPC stats table to Network Profiler 2023-09-26 10:33:12 +02:00