Commit Graph

3813 Commits

Author SHA1 Message Date
robert manuszewski
4c9c6db9cb Garbage Collector History: GC can now store information about traversed references which can then later be searched through with FReferenceChainSearch (obj refs)
#preflight 61f966f580608c7029bb14e1
#rb Steve.Robb

#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 18810462 in //UE5/Release-5.0/... via CL 18810472 via CL 18822694
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18823613 by robert manuszewski in ue5-main branch]
2022-02-02 05:53:42 -05:00
robert manuszewski
4a814e3a44 Merging changes from another stream:
FReferenceChainSearch will no longer store raw pointers to UObjects when constructing reference chains and instead will only preserve basic information about UObjects separate from UObjects themselves

Making FUObjectArray::ObjectToObjectItem accept a pointer to a const object

Removing redundant code from FindStaleClusters and fixing indents

#jira SOL-1885
#rb Steve.Robb
#preflight 61f959458b4112f7cc9a88c0

#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 18809578 in //UE5/Release-5.0/... via CL 18809596 via CL 18822554
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18823575 by robert manuszewski in ue5-main branch]
2022-02-02 05:51:34 -05:00
dave jones2
c8574d3b74 Merging //UE5/Dev-LargeWorldCoordinates [at] 18802167 to //UE5/Release-5.0
Blueprint real number support.

This change deprecates the use the of "float" and "double" types in Blueprints in favor of a new "real". By default, "real" is back by a double precision floating point number. However, it can be single precision if the number is a native float property or function parameter. This distinction won't be visible to the Blueprint user: in both instances, they'll be represented by "real" pin types. During deserialization, we'll automatically convert Blueprint pin types to use real/doubles, unless they're used to represent native code (including delegate signatures).

One consequence of this change is that we need to perform implicit casts between single and double precision real numbers. During Blueprint compilation, the compiler will detect points in the graph for when either a widening or narrowing conversion needs to occur. Subsequently, the script bytecode will contain a new cast instruction that performs the conversion. This also works on container types, but each entry in the container will have to be converted. This can introduce unwanted overhead for large containers that are frequently passed between Blueprint and native code.

The scope of this change affects Blueprints used by Gameplay, Animation, Control Rig, and UMG.

#rb marc.audy (serialization changes)
#jira UE-116484
#preflight 61f8bdd5a2514ba12ff7bdfc

#ROBOMERGE-AUTHOR: dave.jones2
#ROBOMERGE-SOURCE: CL 18809077 in //UE5/Release-5.0/... via CL 18809455 via CL 18822548
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18823569 by dave jones2 in ue5-main branch]
2022-02-02 05:50:50 -05:00
paul chipchase
99a949cdc4 Replace use of LogVirtualization with LogSerialization for FPackageTrailer.
#rb trivial
#rnx
#preflight 61f8fb4e114ec25fe0d3adf5

#ROBOMERGE-AUTHOR: paul.chipchase
#ROBOMERGE-SOURCE: CL 18806432 in //UE5/Release-5.0/... via CL 18808536 via CL 18822165
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18822468 by paul chipchase in ue5-main branch]
2022-02-02 02:44:41 -05:00
paul chipchase
05d81ee7f3 EditorBulkData and the virtualization system now use FIoHash directly and FPayloadId is removed
#rb Per.Larsson, Devin.Doucette
#jira UE-133497
#rnx
#preflight 61f835491c5ac5523462810a

- A lot of files have been touched but most of this is changing FPayload::IsValid to !FIoHash::IsZero, the main changes are in EditorBulkData/EditorBulkDataTests
- The only difference between FPayloadId and FIoHash is that the former considered the hash of an invalid or empty buffer to be 'invalid' too where as FIoHash would return a valid hash
-- To keep behaviour the same, we only hash payloads in EditorBulkData using a utility method ::HashBuffer which will not hash empty or invalid payloads and return a default FIoHash instead.
-- Unit tests have been extended to prove that the behaviour has not changed.

#ROBOMERGE-AUTHOR: paul.chipchase
#ROBOMERGE-SOURCE: CL 18806362 in //UE5/Release-5.0/... via CL 18808527 via CL 18821790
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18822154 by paul chipchase in ue5-main branch]
2022-02-02 02:21:24 -05:00
robert manuszewski
97b5e82c0b Deprecating EInternalObjectFlags::PendingKill. Making sure iterators use the appropriate flags based on the current state of PendingKill being enabled or not.
#preflight 61f8f33d537702981c352c7a
#rb Steve.Robb

#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 18806353 in //UE5/Release-5.0/... via CL 18808526 via CL 18821789
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18822151 by robert manuszewski in ue5-main branch]
2022-02-02 02:21:12 -05:00
marc audy
3f37f75a75 Avoid unnecessary lookup of Archetype
General cleanup of component langugage where actually it is more generally for all subobjects
Fix comments and add default parameters
#rnx
#preflight 61f88a94f657e25a59067fb4

#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 18803287 in //UE5/Release-5.0/... via CL 18803296 via CL 18821587
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18821670 by marc audy in ue5-main branch]
2022-02-02 01:49:54 -05:00
marc audy
7d32006af7 Fix IsInBlueprint to work correctly in cooked builds
Give useful name in cooked builds when handling invalid reference errors
#rb Phillip.Kavan
#jira
#rnx

#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 18801055 via CL 18801659 via CL 18801747 via CL 18803191 via CL 18821577
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18821659 by marc audy in ue5-main branch]
2022-02-02 01:49:06 -05:00
marc audy
0c003430d8 Remove ClassGeneratedBy TODO from validated cases
Fixup one case in SavePackageUtilities
#jira
#rnx

#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 18800104 via CL 18800777 via CL 18800925 via CL 18802753 via CL 18821549
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18821634 by marc audy in ue5-main branch]
2022-02-02 01:46:33 -05:00
Marc Audy
e68ad1cf27 Fix IsDefaultObject to not return true for CDOs
Cleaned up out of date comment about function implementation
#rb Ben.Zeigler
#preflight 61f88a9e68795b2f45916cae

[CL 18803336 by Marc Audy in ue5-main branch]
2022-01-31 20:35:09 -05:00
andrew davidson
a687bd02ed Merge //UE5/Dev-LWCRendering[at]18755967
LWC: Serialize LWC double types as double. Enable double bulk serialization for all bulk-serializable-as-float LWC types.
#lockdown marc.audy
#rb marc.audy
#preflight 61f83517114ec25fe0ad5f15

#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18795077 in //UE5/Release-5.0/... via CL 18795472 via CL 18797572
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18798048 by andrew davidson in ue5-main branch]
2022-01-31 16:44:37 -05:00
Andrew Davidson
4a3e582384 LWC: Remove UE_LARGE_WORLD_COORDINATES_DISABLED toggle
#rb stephen.holmes
[FYI] zak.middleton
#preflight 61f7d18b114ec25fe09648d6

#ROBOMERGE-OWNER: Andrew.Davidson
#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18788533 in //UE5/Release-5.0/... via CL 18788583 via CL 18788850
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)
#ROBOMERGE-CONFLICT from-shelf
#preflight 61f7eb7a114ec25fe0990f8c

[CL 18789644 by Andrew Davidson in ue5-main branch]
2022-01-31 10:10:51 -05:00
steve robb
2537bf8094 Hide UClass::Implements to prevent accidental misuse.
#jira UE-140075
#rb devin.doucette
#preflight 61f40096f628752a568a8493

#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 18787643 via CL 18787651 via CL 18787653 via CL 18787882 via CL 18787955
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18787962 by steve robb in ue5-main branch]
2022-01-31 06:07:14 -05:00
marc audy
0fd821baa5 Make ClassGeneratedBy WITH_EDITORONLY_DATA as it will always be null in cooked builds
#rb Michael.Noland
#preflight 61f441427a7f0d39ddf153cf
#jira

#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 18778942 via CL 18778966 via CL 18778988 via CL 18779795 via CL 18780212
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18780217 by marc audy in ue5-main branch]
2022-01-28 18:19:09 -05:00
phillip kavan
340513789d Ensure that the FArchiveReplaceObjectAndStructPropertyRef ctor invokes the default serialization path with the right vtable.
#jira MH-3535, MH-4936
#rb Robert.Manuszewski
#preflight 61f43da2241aeec8655ac928

#ROBOMERGE-AUTHOR: phillip.kavan
#ROBOMERGE-SOURCE: CL 18777281 in //UE5/Release-5.0/... via CL 18778405 via CL 18778932
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18778969 by phillip kavan in ue5-main branch]
2022-01-28 16:45:51 -05:00
paul chipchase
0ccefd14bc Add a new bitfield of flags to the payload entries in FPackageTrailer.
#rb PJ.Kack
#rnx
#preflight 61f439e2801201ab389237ef

- This will allow us to store per payload info in the future such as disabling virtualization for specific payloads.
- Currently there are no flags.
- Older trailer formats will update automatically.

#ROBOMERGE-AUTHOR: paul.chipchase
#ROBOMERGE-SOURCE: CL 18776027 in //UE5/Release-5.0/... via CL 18777349 via CL 18777591
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18777602 by paul chipchase in ue5-main branch]
2022-01-28 15:26:33 -05:00
paul chipchase
2af0d61698 Fix NSLOCTEXT being split over multiple lines
#rb trivial
#rnx
#preflight 61f43acf801201ab38924266

#ROBOMERGE-AUTHOR: paul.chipchase
#ROBOMERGE-SOURCE: CL 18776018 in //UE5/Release-5.0/... via CL 18777341 via CL 18777587
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18777599 by paul chipchase in ue5-main branch]
2022-01-28 15:26:27 -05:00
jose villarroel
9746cc9977 [Backout] - CL18751910
[FYI] Thomas.Sarkanen
Original CL Desc
-----------------------------------------------------------------
Fix asserts/warnings around child anim BPs

Ensures that cleaned-up sparse class data structs are moved out of the package they are in, thus not requiring a GC step to ensure that batch compilation works correctly.
Without this, it is possible for the NewObject call in FAnimBlueprintCompilerContext::RecreateSparseClassData to attempt to re-use (as it has a fixed name) the currently-existing (but not referenced) object rather than creating a new one.
This also reverts some other changes that were made to try to address related issues.

#jira FORT-444463
#rb Phillip.Kavan
#preflight 61f18be3f8088a3d298e6419
#p4v-cherrypick 18740288

#ROBOMERGE-AUTHOR: jose.villarroel
#ROBOMERGE-SOURCE: CL 18773105 in //UE5/Release-5.0/... via CL 18773189 via CL 18773693
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18773704 by jose villarroel in ue5-main branch]
2022-01-28 12:39:05 -05:00
carlmagnus nordin
73a67c95d9 Renamed EPackageLocationFilter enums from Cooked/Uncooked to IoDispatcher/FileSystem
Cleaned up duplicated logic between DoesPackageExist and DoesPackageExistEx
#rnx
#preflight 61f3b9f2801201ab387e6e50
#rb per.larsson

#ROBOMERGE-AUTHOR: carlmagnus.nordin
#ROBOMERGE-SOURCE: CL 18770321 in //UE5/Release-5.0/... via CL 18770330 via CL 18770438
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18770443 by carlmagnus nordin in ue5-main branch]
2022-01-28 08:48:13 -05:00
carlmagnus nordin
a201cd8e12 Fixed up uses of FIoDispatcher::IsInitialized() so that they work correctly also when there's a mix of cooked packages in iostore and uncooked packages on disk
FIoDispatcher::IsInitialized() will now return true if it exists (which is almost always)
Renamed FArchive::IsUsingEventDrivenLoader() to IsLoadingFromCookedPackage and based it on the PKG_Cooked flag
#rnx
#rb pj.kack
#preflight 61f3ab6f74510448a6740570

#ROBOMERGE-AUTHOR: carlmagnus.nordin
#ROBOMERGE-SOURCE: CL 18769198 in //UE5/Release-5.0/... via CL 18769204 via CL 18769272
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18769277 by carlmagnus nordin in ue5-main branch]
2022-01-28 04:29:58 -05:00
jeanfrancois dube
6bd286e26e Remove usage of deprecated RF_Garbage flag.
#rb none
#preflight none

#ROBOMERGE-AUTHOR: jeanfrancois.dube
#ROBOMERGE-SOURCE: CL 18756176 in //UE5/Release-5.0/... via CL 18756214 via CL 18758742
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18760767 by jeanfrancois dube in ue5-main branch]
2022-01-27 15:45:30 -05:00
jeanfrancois dube
5d78017a49 Fix UPackage::IsEmptyPackage not working properly with pending kill disabled.
#rb francis.hurteau
#preflight none

#ROBOMERGE-AUTHOR: jeanfrancois.dube
#ROBOMERGE-SOURCE: CL 18756019 in //UE5/Release-5.0/... via CL 18756038 via CL 18758700
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18760709 by jeanfrancois dube in ue5-main branch]
2022-01-27 15:43:38 -05:00
paul chipchase
0d4d469bbd Add LexToString to FPayloadId and change existing use of ToString to use it.
#rb Per.Larsson
#rnx
#jira UE-133497
#preflight 61f259a3706ac5ea0cf2ee3e

#ROBOMERGE-AUTHOR: paul.chipchase
#ROBOMERGE-SOURCE: CL 18751491 in //UE5/Release-5.0/... via CL 18751500 via CL 18751554
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18751559 by paul chipchase in ue5-main branch]
2022-01-27 04:20:46 -05:00
paul chipchase
a4bc26f69b Improve error messages given when a package is not able to be loaded
#rb PJ.Kack
#jira UE-133884
#preflight 61f25238706ac5ea0cf29222

- Changed a number of UE_LOG messages when parsing a package's file summary to use FMessageLog instead and using the category "LoadErrors" rather than LogLinker.
-- Currently when a user encounters one of these issues they will be prompted to open the "LoadErrors" message log category via a UI popup, but since we were logging via UE_LOG and using the LogLinker category the message log would not actually contain any of the warnings/errors relating to the failed load. those messages were being routed to the output log instead.
-- By switching to FMessageLog the user will now see the warnings/errors that prevent the package from loading and can hopefully work towards a fix of their data.
- We now report an empty/corrupted package summary as an error rather than a warning. All other messages have been left with their original severity.
- Some error messages have been cleaned up and all are now using FText so could be localised in the future.

#ROBOMERGE-AUTHOR: paul.chipchase
#ROBOMERGE-SOURCE: CL 18751275 in //UE5/Release-5.0/... via CL 18751277 via CL 18751393
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18751400 by paul chipchase in ue5-main branch]
2022-01-27 03:41:23 -05:00
jamie dale
e8f33997f3 Deleted FStructVariant in favor of using FInstancedStruct
#jira
#preflight 61f1ca11fd5285142b4dbc64
#rb Rex.Hill

#ROBOMERGE-OWNER: jamie.dale
#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 18747759 via CL 18747878 via CL 18747892 via CL 18747928 via CL 18748218 via CL 18748276
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18748289 by jamie dale in ue5-main branch]
2022-01-26 19:50:32 -05:00