Commit Graph

10 Commits

Author SHA1 Message Date
joe pribele
71694cd010 lazyload support for zenloader
https://p4-swarm.epicgames.net/reviews/24507657
#preflight 640908e0aa00423335d51461

[CL 24568340 by joe pribele in ue5-main branch]
2023-03-08 17:29:42 -05:00
julien stjean
af4424e59c Introducing the relocation workflow.
When on, at load the packages will detect if they where moved and if this is the case they will modify their ImportMap and SoftObjectPathList. The package reference in those that were in the same MountPoint as the asset when it was saved will behave as if they were relative references.

#preflight 63f3e319500c05a624417605
#rb Matt.Peters

[CL 24332127 by julien stjean in ue5-main branch]
2023-02-20 20:57:13 -05:00
joe pribele
cffacc0be5 support for TObjectPtr handling renames and GetTypeHash(TObjectPtr) no long has to resolve
GetTypeHash will create a packaged object ref for hashing if the class is defined as lazy load otherwise raw pointer is hashed
a map was added for moved objects and ObjectPathId can be a WeakObjectPtr
the map allows UObjects to be mapped back to packed object refs

#rb zousar.shaker
https://p4-swarm.epicgames.net/reviews/23356491
#preflight 63b5de641c35d1cbdbccecf7
#preflight 63b70406e26e31879b8aa6d3

[CL 23589497 by joe pribele in ue5-main branch]
2023-01-05 12:27:16 -05:00
joe pribele
0f45c0a9d5 Undo //UE5/Main/Engine/... changelist 23416765
#preflight 638fed855c5308d18c157af0

[CL 23423019 by joe pribele in ue5-main branch]
2022-12-06 20:58:56 -05:00
joe pribele
115c3e1a0e support for TObjectPtr handling renames and GetTypeHash(TObjectPtr) no long has to resolve
GetTypeHash will create a packaged object ref for hashing if the class is defined as lazy load otherwise raw pointer is hashed
a map was added for moved objects and ObjectPathId can be a WeakObjectPtr
the map allows UObjects to be mapped back to packed object refs
#preflight 638fad1b5624e6da5e166024

[CL 23416765 by joe pribele in ue5-main branch]
2022-12-06 16:27:20 -05:00
joe pribele
9571d4eec5 [AssetRegistry] changed TryGetAssetByObjectPath to use FSoftObjectPath to match the rest of the API
#rb zousar.shaker
#preflight 63376f4d0d2b0d7bd8ce92c1

[CL 22283581 by joe pribele in ue5-main branch]
2022-09-30 19:00:07 -04:00
joe pribele
3db3104b1c [AssetRegistry] added two new methods TryGetAssetByObjectPath and TryGetAssetPackageData to allow lazy load to be able to accurately validate that objects and paths exist
otherwise an unresolve `TObjectPtr` could resolve to nullptr causing determinism issues

#rb matt.peters zousar.shaker
#rnx
#preflight 6335c8cb5c2225fe5f12a7d6

[CL 22263392 by joe pribele in ue5-main branch]
2022-09-30 00:54:16 -04:00
joe pribele
0b82102f66 [Core] changes to make lazyloadimports performant
changed lazy load back to looking at meta data to decide which types are lazyloaded
removed callback that handles lazyload can add back in the future if needed
only imports that marked as lazy are skipped. verifyimports still resolves other imports
skipping all imports causes performance problems because PackageLoadInternal is called many more times then necessary

#rb zousar.shaker
#p4v-preflight-copy 21567032
#preflight 6307d7753042e94f9f642a6d

[CL 21571620 by joe pribele in ue5-main branch]
2022-08-25 16:26:05 -04:00
robert millar
fb932b1cdb [KillPendingKill] Remove renamed packages and their exports from the async loading thread's caches.
#rb pj.kack

#ROBOMERGE-AUTHOR: robert.millar
#ROBOMERGE-SOURCE: CL 21060094 via CL 21060128 via CL 21060415 via CL 21060535
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21078246 by robert millar in ue5-main branch]
2022-07-13 15:37:02 -04:00
Zousar Shaker
501acd133c Change how lazy load is configured to allow it to be driven by callback instead of by metadata. Added a callback from CookOnTheFlyServer to allow it to lazy load references to packages it doesn't intend to save (ie: iteratively skipped packages). This is only effective when cooking in a commandlet (not in editor).
#rb matt.peters
#preflight 625dabdbd412434587aa0b8d

[CL 19791002 by Zousar Shaker in ue5-main branch]
2022-04-18 14:35:51 -04:00