Commit Graph

93 Commits

Author SHA1 Message Date
louisphilippe seguin
6a740ef60a Fix missing call to Teardown when removing ReplicationGraphConnection's
Improve cleanup of ReplicationGraphConnection in InitializeForWorld

#rb Bart.Hawthorne

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: louisphilippe.seguin
#ROBOMERGE-SOURCE: CL 10932609 via CL 10932610 via CL 10932611 via CL 10932612
#ROBOMERGE-BOT: NETWORKING (Main -> Dev-Networking) (v632-10940481)

[CL 10961394 by louisphilippe seguin in Dev-Networking branch]
2020-01-13 16:16:33 -05:00
louisphilippe seguin
c9e18d60d4 Fix missing call to Teardown when removing ReplicationGraphConnection's
Improve cleanup of ReplicationGraphConnection in InitializeForWorld

#rb Bart.Hawthorne


#ROBOMERGE-SOURCE: CL 10932609 via CL 10932610 via CL 10932611
#ROBOMERGE-BOT: (v626-10872990)

[CL 10932612 by louisphilippe seguin in Main branch]
2020-01-09 16:30:55 -05:00
louisphilippe seguin
61539c0140 Optimized RepGraph ReplicateDestructionInfos by not testing the destroyed actors list every frame
* Now testing if viewers are near destroyed objects only after they travel far enough from the previously tested location
* Set Net.RepGraph.OutOfRangeDistanceCheckRatio to 0 to disable the optim and test the Destroyed Actor List every frame.
* Saves 0.2ms per frame in the worst seen case

[RN] minor engine/network
#rb Ryan.Gerleve

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: louisphilippe.seguin
#ROBOMERGE-SOURCE: CL 10904656 via CL 10904662 via CL 10904665
#ROBOMERGE-BOT: NETWORKING (Main -> Dev-Networking) (v626-10872990)

[CL 10921395 by louisphilippe seguin in Dev-Networking branch]
2020-01-09 01:19:28 -05:00
louisphilippe seguin
470fe2b735 Optimized RepGraph ReplicateDestructionInfos by not testing the destroyed actors list every frame
* Now testing if viewers are near destroyed objects only after they travel far enough from the previously tested location
* Set Net.RepGraph.OutOfRangeDistanceCheckRatio to 0 to disable the optim and test the Destroyed Actor List every frame.
* Saves 0.2ms per frame in the worst seen case

[RN] minor engine/network
#rb Ryan.Gerleve


#ROBOMERGE-SOURCE: CL 10904656 via CL 10904662
#ROBOMERGE-BOT: (v626-10872990)

[CL 10904665 by louisphilippe seguin in Main branch]
2020-01-08 10:41:15 -05:00
marc audy
826320c88b Second batch of remaining Engine copyright updates.
#rnx
#rb none

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 10871248 in //UE4/Main/...
#ROBOMERGE-BOT: NETWORKING (Main -> Dev-Networking) (v624-10872983)

[CL 10874754 by marc audy in Dev-Networking branch]
2020-01-03 09:55:36 -05:00
Marc Audy
360d078ca3 Second batch of remaining Engine copyright updates.
#rnx
#rb none

[CL 10871248 by Marc Audy in Main branch]
2019-12-27 09:26:59 -05:00
louisphilippe seguin
ae62f0be81 Repgraph
* For AlwaysRelevant actors we will now always send the DestructionInfo to connections that knew of this actor.
* Added a flag to FActorDestructionInfo that ignores the distance culling test.

[RN] minor engine/network
#rb Ryan.Gerleve

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: louisphilippe.seguin
#ROBOMERGE-SOURCE: CL 10802164 via CL 10802173 via CL 10802516 via CL 10802550 via CL 10802580 via CL 10802634
#ROBOMERGE-BOT: NETWORKING (Main -> Dev-Networking) (v610-10636431)

[CL 10837450 by louisphilippe seguin in Dev-Networking branch]
2019-12-19 18:07:54 -05:00
louisphilippe seguin
1bcd87f5be Repgraph
* For AlwaysRelevant actors we will now always send the DestructionInfo to connections that knew of this actor.
* Added a flag to FActorDestructionInfo that ignores the distance culling test.

[RN] minor engine/network
#rb Ryan.Gerleve


#ROBOMERGE-SOURCE: CL 10802164 via CL 10802173 via CL 10802516 via CL 10802550 via CL 10802580
#ROBOMERGE-BOT: (v610-10636431)

[CL 10802634 by louisphilippe seguin in Main branch]
2019-12-18 16:13:37 -05:00
zzgyy123
890ec7731e ReplicationGraph
* Upgrade ReplicationPeriodFrame to uint16 to fix overflow error when the NetUpdateFrequency is very low

PR #6330: Fix bug about implict cast of ReplicationPeriodFrame from uint32 to uin8. (Contributed by zzgyy123)
#jira UE-83117
#rb Jake.Leonard

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: louisphilippe.seguin
#ROBOMERGE-SOURCE: CL 10451981 via CL 10451994 via CL 10452496
#ROBOMERGE-BOT: NETWORKING (Main -> Dev-Networking) (v606-10482310)

[CL 10530240 by louisphilippe seguin in Dev-Networking branch]
2019-12-05 12:48:44 -05:00
zzgyy123
442d0effac ReplicationGraph
* Upgrade ReplicationPeriodFrame to uint16 to fix overflow error when the NetUpdateFrequency is very low

PR #6330: Fix bug about implict cast of ReplicationPeriodFrame from uint32 to uin8. (Contributed by zzgyy123)
#jira UE-83117
#rb Jake.Leonard


#ROBOMERGE-SOURCE: CL 10451981 via CL 10451994
#ROBOMERGE-BOT: (v595-10452236)

[CL 10452496 by louisphilippe seguin in Main branch]
2019-11-26 10:14:18 -05:00
louisphilippe seguin
34ae8afd74 Downgrade RepGraph warning in FindOrAddConnectionManager to verbose.
#rnx
#rb Jake.Leonard


#ROBOMERGE-SOURCE: CL 9880456 via CL 9880534 via CL 9880558
#ROBOMERGE-BOT: (v553-9872581)

[CL 9880608 by louisphilippe seguin in Main branch]
2019-10-29 10:04:40 -04:00
brian bekich
fe3bb27e2f Add role swapping to fast shared path
#rb ryan.gerleve


#ROBOMERGE-SOURCE: CL 9875434 via CL 9875436 via CL 9875440
#ROBOMERGE-BOT: (v553-9872581)

[CL 9875823 by brian bekich in Main branch]
2019-10-28 18:40:25 -04:00
brian bekich
999b07d8c4 Adding option to swap roles when replicating actor properties
#rb ryan.gerleve


#ROBOMERGE-SOURCE: CL 9739359 via CL 9739362 via CL 9739365
#ROBOMERGE-BOT: (v542-9736015)

[CL 9739366 by brian bekich in Main branch]
2019-10-21 20:02:40 -04:00
louisphilippe seguin
8a5a5bd81f Fix UReplicationGraphNode_DynamicSpatialFrequency::CalcFrequencyForActor sometimes not finding valid zones due to unclamped dot product.
[REVIEW] [at]Ryan.Gerleve
#rnx


#ROBOMERGE-SOURCE: CL 9492156 via CL 9492162
#ROBOMERGE-BOT: (v519-9489664)

[CL 9492164 by louisphilippe seguin in Main branch]
2019-10-09 15:17:28 -04:00
louisphilippe seguin
8ead0e7c76 Added perf stats in FlushDormancy handlers
#rb trivial
#rnx


#ROBOMERGE-SOURCE: CL 9476824 via CL 9476828
#ROBOMERGE-BOT: (v508-9471939)

[CL 9476831 by louisphilippe seguin in Main branch]
2019-10-08 14:03:48 -04:00
Ryan Gerleve
25445e2948 Copying //UE4/Dev-Networking to Dev-Main (//UE4/Dev-Main)
#rb none

[CL 9407021 by Ryan Gerleve in Main branch]
2019-10-03 18:10:17 -04:00
louisphilippe seguin
9b15fcfb28 Added log when RepGraph discovery budget is disabled
#rb trivial


#ROBOMERGE-SOURCE: CL 9199652 via CL 9199724
#ROBOMERGE-BOT: (v443-9013191)

[CL 9199772 by louisphilippe seguin in Main branch]
2019-09-27 09:30:11 -04:00
louisphilippe seguin
16132932a5 Limit connection view locations to HALF_WORLD bounds in the ReplicationGraph
#rb Ryan.Gerleve


#ROBOMERGE-SOURCE: CL 8484339 via CL 8493598
#ROBOMERGE-BOT: (v406-8472469)

[CL 8502252 by louisphilippe seguin in Main branch]
2019-09-05 04:30:53 -04:00
louisphilippe seguin
262acf7a6a - Net.RepGraph.PrintCullDistances will now work without a RepGraphDebugActor
- Added Net.RepGraph.PrintCullDistancesForConnection which outputs also the connection specific cull distance (uses the  RepGraphDebugActor)
- Added DO_ENABLE_REPGRAPH_DEBUG_ACTOR instead of hardcoded build defines to easily add the RepGraphDebugActor

#rb [at]ryan.gerleve
[FYI] Tim.Tillotson


#ROBOMERGE-SOURCE: CL 8296006 via CL 8354853
#ROBOMERGE-BOT: (v401-8057353)

[CL 8355002 by louisphilippe seguin in Main branch]
2019-08-27 17:30:29 -04:00
jon nabozny
d1a421760f Fix a bug where changing an Actor's Dormancy could add it back to the GridSpatialization2D node in RepGraph, even if it was explicitly removed.
[at]Ryan.Gerleve [at]LouisPhilippe.Seguin [at]Brian.Bekich
#rb Brian.Bekich


#ROBOMERGE-SOURCE: CL 8119515 via CL 8119830 via CL 8123251
#ROBOMERGE-BOT: (v401-8057353)

[CL 8124958 by jon nabozny in Main branch]
2019-08-20 10:02:10 -04:00
louisphilippe seguin
7bb52e7dfb Fix nullptr crash in RepGraph
#rb trivial
#rnx


#ROBOMERGE-SOURCE: CL 7463780 via CL 7468546
#ROBOMERGE-BOT: (v371-7306989)

[CL 7468693 by louisphilippe seguin in Main branch]
2019-07-20 02:37:59 -04:00
louisphilippe seguin
c0ec255655 RepGraph will now reflush DORM_Initial and non-netstartup actors when a client leaves and rejoins an island.
(Different fix for reverted cl 7461839)

[FYI] Ryan.Gerleve, Brian.Bekich, Bart.Hawthorne


#ROBOMERGE-SOURCE: CL 7462239 via CL 7467579
#ROBOMERGE-BOT: (v371-7306989)

[CL 7467762 by louisphilippe seguin in Main branch]
2019-07-20 02:23:20 -04:00
louisphilippe seguin
2164f30181 -Now cleaning the destroyed nodes in the ReplicationGraph's AllChildNodes array after a spatial rebuild event
-Now cleaning the AllChilldNode in TearDown
-Using RemoveSingleSwap to speed up some TArray item removal operations in the RepGraph
-Added option to keep node order intact when removing destroyed nodes

#rb Ryan.Gerleve, Brian.Bekich
[RN] engine/network


#ROBOMERGE-SOURCE: CL 7226858 via CL 7227169
#ROBOMERGE-BOT: (v367-6836689)

[CL 7227176 by louisphilippe seguin in Main branch]
2019-07-08 09:43:16 -04:00
louisphilippe seguin
7e71bfb6d2 Replace MIN_FLT with actual smallest negative float -MAX_FLT
[FYI] Ryan.Gerleve, David.Ratti


#ROBOMERGE-SOURCE: CL 6933981 via CL 6933985 via CL 6934000 via CL 6934011 via CL 6943403
#ROBOMERGE-BOT: (v366-6836689)

[CL 6946153 by louisphilippe seguin in Main branch]
2019-06-11 21:18:44 -04:00
louisphilippe seguin
e6a805ddf8 Ensure a connection's PlayerController and current view target (pawn) are processed first in the RepGraph gather list.
#rb Ryan.Gerleve, David.Ratti
[FYI] Tim.Tillotson, Zak.Middleton



#ROBOMERGE-SOURCE: CL 6929140 via CL 6930216 via CL 6930293 via CL 6930360 via CL 6942922
#ROBOMERGE-BOT: (v366-6836689)

[CL 6943126 by louisphilippe seguin in Main branch]
2019-06-11 17:57:50 -04:00