Commit Graph

199 Commits

Author SHA1 Message Date
steve robb
206d9d76b4 Replaced EAutomationTestFlags::ApplicationContextMask with EAutomationTestFlags_ApplicationContextMask.
[CL 34335388 by steve robb in ue5-main branch]
2024-06-13 07:06:47 -04:00
louisphilippe seguin
0335caea8b Iris
* Made NetRefHandleError enum a bitflag

#rnx
#rb jon.fairchild

[CL 34018233 by louisphilippe seguin in ue5-main branch]
2024-05-30 19:04:13 -04:00
brandon schaefer
d1becd40a2 Remove the now deleted option to EnableAutoRTFM, this is default and now youve to explicitly disable it for a module
#rb neil.henning

[CL 34015057 by brandon schaefer in ue5-main branch]
2024-05-30 18:00:50 -04:00
louisphilippe seguin
f9b17563d9 NetBitArray
* Added safer ways to access internal buffers held by a FNetBitArray and FNetBitArrayView
* GetWord() can be used to safely access the full 32bit value to modify 32bit entries at once.
* GetDataChecked(NumWordSize) can be used to access the raw array buffer but will also validate that the maximum word iteration count is within the bounds of the NetBitArray
* Reset() has been deprecated in favor of ClearAllBits()

Iris
* Replaced usage of deprecated NetBitArray::Reset
* Replaced a few usages of unsafe GetData() with safer GetWord and GetDataChecked
* Replaced Reset with ClearAllBits

[CL 33692839 by louisphilippe seguin in ue5-main branch]
2024-05-16 13:31:10 -04:00
louisphilippe seguin
e89a87acde Iris
* Support runtime NetBitArray reallocations when maximum replicated object count is hit.
* FReplicationSystemParams can now configure an initial size for netobjet lists that can grow up to the MaxReplicatedObjectCount when the initialize size is all assigned to registered netobjets.
* Use InitialNetObjectListCount to set the initial list size.
* Use NetObjectListGrowCount to set by how many indexes we grow and realloca all netobject lists.
* Hitting the maximum active replicated object limit will now cause a fatal error and kill the process.

NetDriver
* Split Iris config into two structs: ReplicationSystemConfigClient and ReplicationSystemConfigServer

#rb bradley.heath, Peter.Engstrom

[CL 33647879 by louisphilippe seguin in ue5-main branch]
2024-05-14 22:04:11 -04:00
louisphilippe seguin
b0c40c2155 ReplicatedSubObjects
* Added some utility functions to count the amount of registered replicated objects of an actor

#rnx

#rb Jon.Fairchild

[CL 33270373 by louisphilippe seguin in ue5-main branch]
2024-04-26 13:44:13 -04:00
mattias hornlund
ceaa32ba79 Iris
- Fixed error in PropertyConditions.cpp

#rb Mattias.Hornlund

[CL 32894478 by mattias hornlund in ue5-main branch]
2024-04-11 12:39:28 -04:00
mattias hornlund
da0f053537 Optimized PreReplication to not lookup fRepChangedPropertyTracker unless required.
This also allows SetPropertyActiveOverride macros to be called outside of PreReplicate to move towards proper push model.
Removed some old deprecated code

#rb Peter.Engstrom

[CL 32891697 by mattias hornlund in ue5-main branch]
2024-04-11 11:19:30 -04:00
joe kirchoff
fb6334a7c2 [Backout] - CL32838690
[FYI] Joe.Kirchoff
Original CL Desc
-----------------------------------------------------------------
Prevent clang analysis warnings for uninitialized data from FArchive derived readers

#rnx

[CL 32857977 by joe kirchoff in ue5-main branch]
2024-04-10 11:20:19 -04:00
joe kirchoff
76bd93d0de Prevent clang analysis warnings for uninitialized data from FArchive derived readers
#rnx

[CL 32838765 by joe kirchoff in ue5-main branch]
2024-04-09 16:44:38 -04:00
mattias hornlund
9be6fe524f Removed c++ 20 usage from FastArrayNetSerializer headers
#rb Peter.engstrom

[CL 32757647 by mattias hornlund in ue5-main branch]
2024-04-05 09:06:47 -04:00
louisphilippe seguin
75bca3f7d9 Iris
* Added official NetRefHandleError enum
* Added net.Iris.EnsureNetRefHandleError cvar. Used to control if NetRefHandle error should cause an ensure or not.
 -1=never ensure. 0=ensure on any error. 1..X=ensure only for specific error type
 Defaults to ensure on any error

#rb Bradley.Heath
#rnx

[CL 32584172 by louisphilippe seguin in ue5-main branch]
2024-03-28 13:28:54 -04:00
louisphilippe seguin
f77dcf2e5f Networking:
* Added Networking_FastArray_Apply csv scope to FastArray reception codepath
* Allows to track regressions in FastArray user code
* Exposed CSV Networking category via NetCore module export

#rb jordan.cristiano, Ryan.Gerleve

[CL 31952587 by louisphilippe seguin in ue5-main branch]
2024-03-01 14:56:21 -05:00
louisphilippe seguin
04da431991 Fix missing export dll tag to SetAnalyticsAppender
#rb louisphilippe.seguin
#rnx

[CL 31941779 by louisphilippe seguin in ue5-main branch]
2024-03-01 09:00:19 -05:00
louisphilippe seguin
91555ff3fd NetAnalytics
* Added ability to add game specific attributes to the NetAnalytics framework
* To add those game attributes, Implementations of FNetAnalyticsData must call AppendGameInstanceAttributes before calling SendAttributes.
* Add or modify your game attributes with the  NetDriver::SetNetAnalyticsAttributes function
* NetDriver will add some default attributes (NetDriverName, NetDriverDefinition, ReplicationModel, NetMode) when net.AddNetDriverInfoToNetAnalytics is true

#[review]-31918845
#rb Ryan.Gerleve

#ushell-cherrypick of 31917915 by LouisPhilippe.Seguin

[CL 31941572 by louisphilippe seguin in ue5-main branch]
2024-03-01 08:56:03 -05:00
louisphilippe seguin
90eee141d1 Iris
* Make sure PushModel support is not tied to ShouldUseIrisReplication config.
* Instead the gamenetdriver will directly disable or enable pushmodel handle creation if it initalized Iris or not.
* This enables push model to work in GameModes that don't use Iris when the default engine setting from ShouldUseIrisReplication is true
* Remove crashcontext ReplicationModel attribute when GameNetDriver is shutdown on clients or listen servers.

#rnx
#rb Ryan.Gerleve

[CL 31851816 by louisphilippe seguin in ue5-main branch]
2024-02-27 15:58:09 -05:00
mattias hornlund
d856426368 Added console command to set nettrace verbosity at runtime
- NetTrace.SetTraceVerbosity [verbositylevel]

#rb Peter.Engstrom

[CL 31834077 by mattias hornlund in ue5-main branch]
2024-02-27 03:40:45 -05:00
mattias hornlund
14d3a3d55e Proper variant of deprecated FFastArraySerializer::FPostReplicatedReceiveParameters::bHasMoreUnmappedReferences as its behavior is inconsistent and code should not rely on it.
#jira UE-207435
#rb Peter.Engstrom

[CL 31757555 by mattias hornlund in ue5-main branch]
2024-02-23 03:41:29 -05:00
mattias hornlund
92bbd2994a Disabled deprecation of property until I have figured out to compilation errors from 31718958
#jira UE-207435
#rb Peter.Engstrom

[CL 31721149 by mattias hornlund in ue5-main branch]
2024-02-22 10:10:13 -05:00
mattias hornlund
1ed21b8927 Fixed compilation errors from 31718958
#jira UE-207435
#rb Peter.Engstrom

[CL 31719776 by mattias hornlund in ue5-main branch]
2024-02-22 09:13:27 -05:00
mattias hornlund
8d56d0f964 Deprecated FFastArraySerializer::FPostReplicatedReceiveParameters::bHasMoreUnmappedReferences as its behavior is inconsistent and code should not rely on it.
- Fixed issue with OldArraySize parameter not always propagated correctly when using iris

#jira UE-207435
#rb Peter.Engstrom

[CL 31719011 by mattias hornlund in ue5-main branch]
2024-02-22 08:41:38 -05:00
steve robb
148d4c61d5 Deprecated TIsTriviallyDestructible.
#rb devin.doucette

[CL 31695997 by steve robb in ue5-main branch]
2024-02-21 15:55:03 -05:00
steve robb
f8d47335a4 Replaced RemoveAt(N, 1, EAllowShrinking::*) with RemoveAt(N, EAllowShrinking::*).
[CL 31626444 by steve robb in ue5-main branch]
2024-02-19 16:51:58 -05:00
gkoreman
2ccbfeb41d #ue5 - UCharacterMovementComponent::RoundAcceleration() changed to match the same rounding and clamping that is used by replication of FVector_NetQuantize10. Adapted from PR #10236
#jira UE-179831
#rb Justin.Hare
#tests PIE with networked movement showing corrections/logging

[CL 31060459 by gkoreman in ue5-main branch]
2024-01-31 15:05:39 -05:00
mattias hornlund
88a2558657 Iris
- Fixed issue where subobjects of objects pending dormant all would not always be polled as they should

#rb Peter.Engstrom
#ushell-cherrypick of 30915928 by Mattias.Hornlund

[CL 30920534 by mattias hornlund in ue5-main branch]
2024-01-26 08:18:34 -05:00