Commit Graph

181 Commits

Author SHA1 Message Date
kirill zorin
a469aafd78 Update callsites to prepare for upcoming TArray/TArrayView<TObjectPtr<...>> restrictions
#rb zousar.shaker
#rb devin.doucette
#rb steve.robb
#rb robert.manuszewski
#rb saam.barati
#preflight 643f4c09a35280ed4f53ccb3

[CL 25100071 by kirill zorin in ue5-main branch]
2023-04-18 22:39:29 -04:00
Brian Bekich
933b3733c1 Handle gameplay debugger replicator in basic rep graph
#jira UE-183272
#jira UE-183273
#preflight 643963a0c947f6523a56e24c
#rb louisphilippe.seguin

[CL 25048869 by Brian Bekich in ue5-main branch]
2023-04-14 16:19:55 -04:00
Brian Bekich
ddda7e829a Reverting uses of FloatCastChecked
#jira UE-181363
#preflight 64222de1c42c7fd1cbb14030

[CL 24813420 by Brian Bekich in ue5-main branch]
2023-03-27 20:15:42 -04:00
Brian Bekich
26610f72b2 Enabling UnsafeTypeCastWarningLevel for rep graph
#jira none
#preflight 641882a042618c85c48c0385
#rb louisphilippe.seguin, jon.fairchild, ryan.gerleve

[CL 24732881 by Brian Bekich in ue5-main branch]
2023-03-21 11:42:33 -04:00
louisphilippe seguin
234eccbf75 ReplicationGraph
* Prevent sending multicast RPCs on a channel that is closing but not yet cleaned up.

#rb Ryan.Gerleve

[CL 24617952 by louisphilippe seguin in ue5-main branch]
2023-03-13 14:37:56 -04:00
anton dunchev
4076ae4e46 Fix DormantActorDestruction: remove cached nodes, so 2 arrays point to same cell data.
[REVIEW] [at]brian.bekich, [at]louisphilippe.seguin, [at]richard.smith
#rb andrew.ladenberger
#rnx

#localization none
#tests PIE

[CL 24509700 by anton dunchev in ue5-main branch]
2023-03-03 18:16:21 -05:00
brian bekich
09edde2147 Lowering net frequency of rep graph debug actor
#rb ryan.gerleve

[CL 24295943 by brian bekich in ue5-main branch]
2023-02-17 20:29:33 -05:00
brian bekich
1de597a7bb Add optional driver name filter to rep graph debug commands
#rb ryan.gerleve

[CL 24138163 by brian bekich in ue5-main branch]
2023-02-11 13:03:07 -05:00
anton dunchev
99e519be25 ReplicationGraph amortize the cost of dormant actor cleanup by allowing gathering actor lists for 1 connection at a time.
#rb LouisPhilippe.Seguin
#tests PIE

[CL 24058151 by anton dunchev in ue5-main branch]
2023-02-07 15:43:54 -05:00
anton dunchev
5813842292 Fix stale nodes cleanup from caches when Node disconnected from the connection
#rnx
[FYI] andrew.ladenberger, brian.bekich, LouisPhilippe.Seguin

[CL 23782222 by anton dunchev in ue5-main branch]
2023-01-19 17:27:57 -05:00
anton dunchev
f506434e62 Fix stale nodes cleanup from caches when Node disconnected from the connection
#rnx
[FYI] andrew.ladenberger, brian.bekich, LouisPhilippe.Seguin

[CL 23781885 by anton dunchev in ue5-main branch]
2023-01-19 17:14:50 -05:00
anton dunchev
98624ca781 Fix TTL decrease for dormant actor cleanup
#rnx
[FYI] andrew.ladenberger, brian.bekich, LouisPhilippe.Seguin

[CL 23781861 by anton dunchev in ue5-main branch]
2023-01-19 17:14:02 -05:00
anton dunchev
8ef5d19523 Send destruction info for dormant actors from cells that are no longer observed by the network client.
- TimeToLife for cell to send destruction is configurable and overridable by the game per GridSpatialization2DNode
- Exposed ReplicatedDormantDestructionInfosPerFrame CVar to have control over optimization levers
- Added Profiler markers to measure impact of enabling dormant actor cleanup

#rb brian.bekich, LouisPhilippe.Seguin
[FYI] andrew.ladenberger
#tests PIE

[CL 23781800 by anton dunchev in ue5-main branch]
2023-01-19 17:12:18 -05:00
ben zeigler
932a637aa0 Change the replication graph debug actor to a weak reference so it doesn't break seamless travel when pending kill is disabled
#jira UE-160144
#preflight 63c1a5b91a06fc6105ea79fc
#rb LouisPhilippe.Seguin

[CL 23682412 by ben zeigler in ue5-main branch]
2023-01-13 13:51:18 -05:00
henrik karlsson
3c9aacb1ad [Engine/Plugins]
* Updated public headers for ~170 engine plugins using iwyu to remove includes not needed. Removed includes are still available behind UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2

#preflight 63c08f4a2a6acaf1622bcc73
#rb none

[CL 23674775 by henrik karlsson in ue5-main branch]
2023-01-13 01:54:01 -05:00
henrik karlsson
2f78497e67 [Engine/Plugins]
* Updated private files with IWYU for all plugins which had 3 or less changes made in ue5 main since last integration to fn

#preflight 63bf8d8b577437afe607dc72
#rb none

[CL 23659643 by henrik karlsson in ue5-main branch]
2023-01-12 01:48:34 -05:00
alex koumandarakis
0eea291d13 Change the BasicReplicationGraph's GridSpatialization2D node to use UE_OLD_WORLD_MAX
#jira none
#rb Ryan.Gerleve
#preflight 63bc3342c927e344826470f9

[CL 23613209 by alex koumandarakis in ue5-main branch]
2023-01-09 10:42:23 -05:00
louisphilippe seguin
8ead96f9c2 ReplicationGraph
* Refactored Dependent actor lists so the child actors are stored by streaming levels
* Now dependent actors are not replicated if the connection does not have the streaming level loaded
* Added FLevelBasedActorList struct to RepGraph plugin. Holds actors based on their level (permanent or streaming)

#jira UE-159638
#rb Ryan.Gerleve, Brian.Bekich

[CL 23480107 by louisphilippe seguin in ue5-main branch]
2022-12-12 13:39:19 -05:00
louisphilippe seguin
55b6193ef0 RepGraph
* Deleted deprecated code from before 5.1

#rb Peter.Engstorm

[CL 23428822 by louisphilippe seguin in ue5-main branch]
2022-12-07 10:42:56 -05:00
Brian Bekich
e8cf730f3a Replace some rep graph node strong refs with weak pointers
#jira FORT-536326
#preflight 63861d9533774509005e9d91
#rb louisphilippe.seguin

[CL 23307930 by Brian Bekich in ue5-main branch]
2022-11-29 10:31:11 -05:00
anton dunchev
d97c370c0f Fix level visibility check for dormant actor cleanup feature. This allows dormant actors placed in a persistent level to be destroyed on the client and reclaim their memory.
#rb brian.bekich
[FYI] andrew.ladenberger
#tests PIE

[CL 23039167 by anton dunchev in ue5-main branch]
2022-11-08 16:03:05 -05:00
henrik karlsson
80a0aeccfe [Engine]
Removal of includes to reduce transitive includes in high traffic headers to reduce compile times
Highlights
* Skeleton and BonePose not leaked out of commonly used animation headers
* AudioComponent leaking out less
* Brush not leaking Level.h (Brush is included indirectly a lot)
* VertexStreamComponent moved to its own file so Components.h can include that instead of VertexFactory (which would leak out all of RHI and others)

#preflight 6365dd15c53af2f47f8d8c40
#rb none

[CL 23003402 by henrik karlsson in ue5-main branch]
2022-11-05 20:36:27 -04:00
henrik karlsson
4a5e13525d Fixed non-unity non-pch compile errors
#preflight skipped
#rb none

[CL 22788359 by henrik karlsson in ue5-main branch]
2022-10-26 16:22:34 -04:00
henrik karlsson
b5b86c796c This change is a strategical submit for a coming change that removes lots of includes in headers that are included by many files. This change contains adding of includes in files that previously got those includes transitively from other inclkudes
#preflight 6355d4940313c24974b2107b
#rb none

[CL 22783162 by henrik karlsson in ue5-main branch]
2022-10-26 12:57:32 -04:00
ryan gerleve
572b34b4d8 Add a CSV stat to track CPU time impact of multiple replications of the same actor to the same connection in the same frame. Possible in RepGraph when an RPC causes a new channel to open.
Change FReplicationGraphCSVTracker::PostReplicateActor to take enum flags.

#rb LouisPhilippe.Seguin
#preflight 63503b82b13bfb29ebf8671a

[CL 22647222 by ryan gerleve in ue5-main branch]
2022-10-19 21:51:43 -04:00