Commit Graph

70 Commits

Author SHA1 Message Date
Julien StJean
2eba3b5a65 Improved the performance of the TypedElementSelectionSet Selection.
From 119 Seconds to 269 ms when measuring the time redo a large marquee selection (30 384 static mesh instances).

#jira UE-148888
#preflight 627146b75e6ce673f443ccea

[CL 20393379 by Julien StJean in ue5-main branch]
2022-05-27 10:44:22 -04:00
marc audy
4dae64633a Custom FChange objects can now add referenced objects
#jira UE-114303
#rb Michael.Noland, Ben.Hoffman
#preflight 621a7563f81019873dcc8ec0
#lockdown julien.marchand

#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 19176255 in //UE5/Release-5.0/... via CL 19177681
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19179800 by marc audy in ue5-main branch]
2022-02-28 14:45:03 -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
jamie dale
5231db658b Optimized transaction object snapshotting
Removed the mapping of objects to their save count, in favor of putting the save count into a new FObjectRecords struct, and mapping objects to that instead. This allows the records for an object to be found via the map, and avoids the remaining look-up overhead of searching the records array during object snapshotting.

The object records map keys against the FPersistentObjectRef rather than the raw-UObject, so that the record for sub-objects can be found correctly even if the sub-object is re-created.

#jira UE-110998
#rb Francis.Hurteau
#preflight 609e86c1f6c6e30001232b2b

#ROBOMERGE-SOURCE: CL 16330375 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v804-16311228)

[CL 16330390 by jamie dale in ue5-release-engine-test branch]
2021-05-14 11:37:33 -04:00
JeanFrancois Dube
c5978c82aa Backout changelist 16052362 as it makes actors lose their components when undoing.
#rb none
#fyi jamie.dale, francis.hurteau

[CL 16092274 by JeanFrancois Dube in ue5-main branch]
2021-04-22 08:52:53 -04:00
Jamie Dale
4f876f3f79 Optimized transaction object snapshotting
Removed the mapping of objects to their save count, in favor of putting the save count into a new FObjectRecords struct, and mapping objects to that instead. This allows the records for an object to be found via the map, and avoids the remaining look-up overhead of searching the records array during object snapshotting.

The object records map keys against the FPersistentObjectRef rather than the raw-UObject, so that the record for sub-objects can be found correctly even if the sub-object is re-created.

#jira UE-110998
#rb Francis.Hurteau

[CL 16052362 by Jamie Dale in ue5-main branch]
2021-04-19 13:12:00 -04:00
jamie dale
dc3b187fdb Avoid sub-object resolution during SnapshotObject when locating the object record
#rb Francis.Hurteau

#ROBOMERGE-SOURCE: CL 15833283 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v785-15821902)

[CL 15834685 by jamie dale in ue5-main branch]
2021-03-25 18:52:37 -04:00
jamie dale
7003ca0601 Optimized sub-object look-up within transactions
FPersistentObjectRef would perform a StaticFindObject for each sub-object in its object chain, for each request to resolve the object pointer. This could be quite costly when finding the record for a large transaction (eg, when moving thousands of objects).

This change stores a cache of the resolved object chain, and will use this cache if every object in the chain still passes its validation check. In order to do this, the guts of FPersistentObjectRef have been made private, and the -> operator was also removed as it could promote writing code that would repeatedly resolve the object pointer.

#rb Francis.Hurteau

#ROBOMERGE-SOURCE: CL 15813398 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v783-15756269)

[CL 15814442 by jamie dale in ue5-main branch]
2021-03-24 21:25:11 -04:00
Ben Ingram
ab0bbe060e Make undo transactions work correctly when saving objects over 2GB in size (32->64 bit size)
#rb martin.ridgers, jamie.dale, jason.nadro
#jira UE-107678

[CL 15321527 by Ben Ingram in ue5-main branch]
2021-02-04 15:32:15 -04:00
Marc Audy
bc88b73a29 Merge Release-Engine-Staging to Main @ CL# 15151250
Represents UE4/Main @ 15133763

[CL 15158774 by Marc Audy in ue5-main branch]
2021-01-21 16:22:06 -04:00
Marcus Wassmer
3b81cf8201 Merging using //UE5/Main_to_//UE5/Release-Engine-Staging @14384769
autoresolved files
#rb none

[CL 14384911 by Marcus Wassmer in ue5-main branch]
2020-09-24 00:43:27 -04:00
Marc Audy
a7c9001a94 Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14075166
#rb
#rnx

[CL 14075271 by Marc Audy in ue5-main branch]
2020-08-11 01:36:57 -04:00
marc audy
7759c5bd97 Convert some transaction debugging to be controlled by a cvar instead of having to modify a #if 0
#rb Ben.Hoffman
#jira
#rnx

#ROBOMERGE-SOURCE: CL 11824608 in //UE4/Release-4.25/... via CL 11824610
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v656-11643781)

[CL 11824618 by marc audy in Main branch]
2020-03-02 10:48:18 -05:00
ryan durand
627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -05:00
Robert Manuszewski
7b6f840f7f Copying //UE4/Dev-Core @ 10708550 to Dev-Main (//UE4/Dev-Main)
#rb none

[CL 10708666 by Robert Manuszewski in Main branch]
2019-12-13 11:07:03 -05:00
Alexis Matte
428f0cae3f Prevent doing nested undo. It can happen if there is a popup dialog during the broadcast of the undo event.
#rb jamie.dale
#rb francis.hurteau
#jira UE-80897
#jira UE-81982
#rnx

[CL 9643643 by Alexis Matte in 4.24 branch]
2019-10-17 11:47:19 -04:00
Jamie Dale
5b137f2716 Optimize object snapshot diffing if we know which properties have changed
This also changes snapshots to only write and diff properties, regardless of whether we give it a specific list

#jira UE-79870
#fyi Danny.Couture
#rb Francis.Hurteau

[CL 9619743 by Jamie Dale in 4.24 branch]
2019-10-16 12:36:40 -04:00
JeanMichel Dignard
d4f0f4d3f2 Copying //UE4/Dev-Enterprise @ cl 9420543 to Dev-Main (//UE4/Dev-Main)
#rb none

[CL 9420574 by JeanMichel Dignard in Main branch]
2019-10-04 13:11:45 -04:00
Chris Gagnon
8ab0638182 Copying //UE4/Dev-Editor to Dev-Main (//UE4/Dev-Main) for 4.24
#rb none

[CL 9325047 by Chris Gagnon in Main branch]
2019-10-01 20:41:42 -04:00
francis hurteau
3cc5dcbe95 Fixed crash when undoing material changes in static mesh editor when object is also instanced in the loaded level
Partition ActorComponent to the beginning of the map using sort like it used to be before the depth sort

#jira UE-80416
#rb Jamie.Dale
[FYI] Mihnea.Balta
#lockdown Cristina.Riveron

#ROBOMERGE-SOURCE: CL 9053171 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v443-9013191)

[CL 9055038 by francis hurteau in Main branch]
2019-09-24 16:50:24 -04:00
Marc Audy
18b6506e9b Make FTransaction::Records an indirect array to avoid resizing issues when adding actors which have component instance data caches with components that have editinline subobjects.
#rb Matt.Kuhlenschmidt

[CL 7798327 by Marc Audy in Dev-Framework branch]
2019-08-06 11:50:44 -04:00
Marc Audy
278eda75dd Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 7234503
#rb
#rnx

[CL 7263339 by Marc Audy in Dev-Framework branch]
2019-07-10 13:47:03 -04:00
Marc Audy
a3cfddf7f6 Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 6547008
#rb
#rnx

[CL 6548655 by Marc Audy in Dev-Framework branch]
2019-05-17 17:18:20 -04:00
Francis Hurteau
57c677da93 Copying //UE4/Dev-Enterprise@4705006 to Dev-Main (//UE4/Dev-Main)
#rb none
#lockdown Nick.Penwarden

[CL 4705151 by Francis Hurteau in Main branch]
2019-01-10 17:26:53 -05:00
Ben Marsh
7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00