Commit Graph

154 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
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
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
brian bekich
f5a06b9c44 Handle an actor with an invalid location (NaN) in GetCellInfoForActor
#jira UE-166885
#rb louisphilippe.seguin

[CL 22534390 by brian bekich in ue5-main branch]
2022-10-14 16:57:32 -04:00
ryan gerleve
ba27312428 Replication graph GridSpatialization2D node uses old world bounds values.
The grid is densely stored and risks very high memory usage at large coordinates.

#jira UE-165198
#rb louisphilippe.seguin
#preflight 6334c113691c0168b71c21f7

[CL 22240520 by ryan gerleve in ue5-main branch]
2022-09-28 22:24:09 -04:00
bryan sefcik
50d4fac9e0 Updated ../Engine/Plugins/... to inline gen.cpp files
Before:
3548 unity files
Total CPU Time: 47343.578125 s
Total time in Parallel executor: 494.60 seconds

After:
3445 unity files
Total CPU Time: 46044.671875 s
Total time in Parallel executor: 468.51 seconds

#jira
#preflight 63336159b20e73a098b7f24f

[CL 22218213 by bryan sefcik in ue5-main branch]
2022-09-28 01:06:15 -04:00