Commit Graph

122 Commits

Author SHA1 Message Date
louisphilippe seguin
17a89ba38f Replication:
* Added optional config that will prevent Actors from replicating if they are not BeginPlay yet.
* Enabled via net.ReplicateOnlyBeginPlay
* The only exception is if a RPC is called on an actor before BeginPlay and opens the ActorChannel
    * When opening the channel to send the RPC, we need to serialize the actor to open the channel correctly.
    * Even if the actor is not begin play we will set up his components for replication and serialize him anyway.
    * Note that sending rpcs this early is not recommened if the BeginPlay on the authority sets replicated variables that the client needs in his BeginPlay too.

# Defaults to true in FortniteGame

#jira UE-160463, FORT-499928
#rb Brian.Bekich

[CL 21500389 by louisphilippe seguin in ue5-main branch]
2022-08-22 21:39:03 -04:00
brian bekich
a1b145ac5b Disabling stat scope in test
#rb trivial

[CL 21467796 by brian bekich in ue5-main branch]
2022-08-19 19:21:53 -04:00
jaime cifuentes
7d1eb971be Inclusive Terminology Push
Replaced "master" with "main" at ReplicationGraph.h/.cpp

#jira UE-158584
#review @thomas.sarkanen
#preflight 62cea5eaf30df2b55bed965f

[CL 21069494 by jaime cifuentes in ue5-main branch]
2022-07-13 07:34:15 -04:00
Peter Engstrom
4aae8d3ed0 Iris experimental replication system.
Initial submit, compiled out by default.

#rb Peter.Engstrom,Mattias.Hornlund,Brian.Bekich,Ryan.Gerleve,John.Barrett
#jira UE-158381
#preflight /62cd6fc7ad490b52da0515a3

[CL 21068370 by Peter Engstrom in ue5-main branch]
2022-07-13 03:11:55 -04:00
Robb Surridge
0a5a02c5b2 Coding standard fixes: gender-inclusive language
#jira UE-156429
#preflight 62b32e826a25ba6ae52f94bd
#rb jason.walter

[CL 20795375 by Robb Surridge in ue5-main branch]
2022-06-23 11:14:07 -04:00
Andrew Davidson
8d844cd4a6 Improve support for an extended WORLD_MAX
#rb various, trivial
#preflight 62a1cb46f73a01bd981b9978

[CL 20573655 by Andrew Davidson in ue5-main branch]
2022-06-09 07:03:13 -04:00
VesCodes
3a6673c062 PR #9212: Fix grid cell node doubling child node actors (Contributed by VesCodes)
#rb trivial
#jira UE-153520

#ROBOMERGE-AUTHOR: louisphilippe.seguin
#ROBOMERGE-SOURCE: CL 20524521 via CL 20527269 via CL 20527465
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v954-20466795)

[CL 20529871 by VesCodes in ue5-main branch]
2022-06-06 18:58:10 -04:00
louisphilippe seguin
0a220bb418 ReplicationGraph
* Prevent actors outside the destruction radius but inside the current OutOfRange radius check from being added to the OutOfRange list.
* Instead keep actors in the PendingDestructionList until they get inside the send radius or outside the OutOfRange radius.

#rb Brian.Bekich, Jon.Sourbeer

#ROBOMERGE-AUTHOR: louisphilippe.seguin
#ROBOMERGE-SOURCE: CL 20229549 via CL 20229567 via CL 20229593 via CL 20229612
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20231614 by louisphilippe seguin in ue5-main branch]
2022-05-16 16:47:35 -04:00
alex koumandarakis
3fdbe21547 Have UNetReplicationGraphConnection::PrepareForReplication check if the connection is in the correct world.
Handle emptying the map name if CurrentMapName == DestinationMapName when no transition map is specified, and remove LastCompletedSeamlessTravelCount == SeamlessTravelCount check from APlayerController::HasClientLoadedCurrentWorld to prevent issues when client finishes travel before the server.

#jira UE-96063
#rb Ryan.Gerleve, LouisPhilippe.Seguin

#ROBOMERGE-AUTHOR: alex.koumandarakis
#ROBOMERGE-SOURCE: CL 19903360 via CL 19904489 via CL 19905622
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19907190 by alex koumandarakis in ue5-main branch]
2022-04-25 15:10:06 -04:00
TheJamsh
57ed082c1f PR #8848: RepGraph Bugfix: Prevent stale/garbage LastViewTarget actor being added to Replication List. (Contributed by TheJamsh)
#jira UE-141246
#rb trivial

#ROBOMERGE-AUTHOR: brian.bekich
#ROBOMERGE-SOURCE: CL 19103805 via CL 19106301 via CL 19106385 via CL 19110147
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19148501 by TheJamsh in ue5-main branch]
2022-02-25 11:03:19 -05:00
brian bekich
7a95a5e32d Additional granular mem tracking for more rep graph nodes
Adding scope count to the granular logging

#rb ryan.gerleve

#ROBOMERGE-AUTHOR: brian.bekich
#ROBOMERGE-SOURCE: CL 18955682 via CL 18955724 via CL 18955740 via CL 18956420 via CL 18956783
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18958918 by brian bekich in ue5-main branch]
2022-02-11 14:56:39 -05:00
brian bekich
83d8a19db1 Adding option to remove unused forcenetupdate delegate
#rb louisphilippe.seguin

#ROBOMERGE-AUTHOR: brian.bekich
#ROBOMERGE-SOURCE: CL 18936931 via CL 18936955 via CL 18936975 via CL 18937792 via CL 18938303
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18938378 by brian bekich in ue5-main branch]
2022-02-10 12:22:32 -05:00
brian bekich
42d5b4611c Additional granular network memory tracking
#rb louisphilippe.seguin, jon.nabozny

#ROBOMERGE-AUTHOR: brian.bekich
#ROBOMERGE-SOURCE: CL 18922219 via CL 18922430 via CL 18922585 via CL 18923565 via CL 18923970
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v916-18915374)

[CL 18923979 by brian bekich in ue5-main branch]
2022-02-09 15:44:28 -05:00
brian bekich
816b49d030 Wrapping replication graph calls with WITH_SERVER_CODE where appropriate
#rb ryan.gerleve

#ROBOMERGE-AUTHOR: brian.bekich
#ROBOMERGE-SOURCE: CL 18885436 via CL 18885444 via CL 18885445 via CL 18888433 via CL 18888865
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18888899 by brian bekich in ue5-main branch]
2022-02-07 13:28:54 -05:00
satchit subramanian
10e2557f4b Rep Graph : Change CVar_RepGraph_DynamicSpatialFrequency_ForceMaxFreq from REPGRAPH_DEVCVAR_SHIPCONST to a regular cvar to allow test builds to set it.
#rb Brian.Bekich

#ROBOMERGE-AUTHOR: satchit.subramanian
#ROBOMERGE-SOURCE: CL 18834481 via CL 18834756 via CL 18837934 via CL 18838048 via CL 18838134 via CL 18845135 via CL 18845743
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18845813 by satchit subramanian in ue5-main branch]
2022-02-03 13:26:56 -05:00
brian bekich
a8ff7a39d5 Updating llm tags for networking
New llm tags for onlinesubsystem/http/websockets

#jira UE-139302
#rb ryan.gerleve, ben.woodhouse, michael.kirzinger
#preflight none

#ROBOMERGE-OWNER: brian.bekich
#ROBOMERGE-AUTHOR: brian.bekich
#ROBOMERGE-SOURCE: CL 18709768 via CL 18709800 via CL 18709821 via CL 18710784 via CL 18711083
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18711122 by brian bekich in ue5-main branch]
2022-01-24 13:04:08 -05:00
bart hawthorne
c14ae35f93 * Add support for property names to be serialized instead of property handles in certain situations in RepLayout serialization. This can be activated with the FReplicationFlags::bSerializePropertyNames flag.
* Wrapped the call of ReplicateSingleActor for all the actors for a given connection in its own function so that it can be overridden.
* FObjectReplicator::ReplicateProperties now has an override for passing in a custom FNetBitWriter implementation.
* Added a replication flag for custom subobject serialization on UActorChannel for a class that derives from it.

#rb brian.bekich, louisphilippe.seguin
#preflight 61df3e7f6a16a18acf872d05

#ROBOMERGE-AUTHOR: bart.hawthorne
#ROBOMERGE-SOURCE: CL 18590284 via CL 18591876 via CL 18591889 via CL 18591905 via CL 18592543 via CL 18592575 via CL 18592581
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)

[CL 18592589 by bart hawthorne in ue5-main branch]
2022-01-12 19:47:06 -05:00
brian bekich
1eaa86dc14 Fix rep graph opening channels for actors that persisted through seamless travel
Fix crash in rep graph debugging post seamless travel

#jira UE-121583
#rb louisphilippe.seguin

#ROBOMERGE-AUTHOR: brian.bekich
#ROBOMERGE-SOURCE: CL 18544418 via CL 18544438 via CL 18544461 via CL 18544797 via CL 18544844
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18544878 by brian bekich in ue5-release-engine-test branch]
2022-01-07 10:59:18 -05:00
Marc Audy
0c3be2b6ad Merge Release-Engine-Staging to Test @ CL# 18240298
[CL 18241953 by Marc Audy in ue5-release-engine-test branch]
2021-11-18 14:37:34 -05:00
aurel cordonnier
fc542f6cfd Merge from Release-Engine-Staging @ 18081189 to Release-Engine-Test
This represents UE4/Main @18073326, Release-5.0 @18081140 and Dev-PerfTest @18045971

[CL 18081471 by aurel cordonnier in ue5-release-engine-test branch]
2021-11-07 23:43:01 -05:00
aurel cordonnier
a6e741e007 Merge from Release-Engine-Staging @ 17915896 to Release-Engine-Test
This represents UE4/Main @17911760, Release-5.0 @17915875 and Dev-PerfTest @17914035

[CL 17918595 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-25 20:05:28 -04:00
aurel cordonnier
a12d56ff31 Merge from Release-Engine-Staging @ 17791557 to Release-Engine-Test
This represents UE4/Main @17774255, Release-5.0 @17791557 and Dev-PerfTest @17789485

[CL 17794212 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-12 21:21:22 -04:00
aurel cordonnier
487e941b4a Copying to repair whitespace.
#rnx

[CL 17646587 by aurel cordonnier in ue5-release-engine-test branch]
2021-09-28 11:27:43 -04:00
aurel cordonnier
69fe095547 Merge from Release-Engine-Staging @ 17636544 to Release-Engine-Test
This represents UE4/Main @17638339 and Dev-PerfTest @17636504

[CL 17638842 by aurel cordonnier in ue5-release-engine-test branch]
2021-09-27 19:54:25 -04:00
aurel cordonnier
7f517562d5 Merge from Release-Engine-Staging @ 17438845 to Release-Engine-Test
This represents UE4/Main @17430120 and Dev-PerfTest @17437669

[CL 17439044 by aurel cordonnier in ue5-release-engine-test branch]
2021-09-06 12:23:53 -04:00