GetNeverCookPackageFileNames among other things adds every external actor package to NeverCookPackageList, even if they are not referenced by the rest of the cook. Since it stores the packages in the list as FNames of their normalized file path, this adds each package to the FName table. The packages would also have their filename added to the FName table by UE::Cook::FPackageData if they were referenced, but in many cases the packages are never referenced (e.g. development packages) and this is bloating the FName table for no reason. The FNames for the package names are unavoidably in the FName table because the AssetRegistry uses them, so we can store the packages as FNames to LongPackageName with no extra cost.
Change GetNeverCookPackageFileNames, and NeverCookPackageList, to store its elements as FNames to LongPackageName instead of FNames to normalized filename.
N/A
How do I set a material as a post-processing material?
How does TextureRenderTarget2D get TArray<uint8> type data?
What is the difference between Camera and CineCamera?
Why does the REMOVE method of map container remove elements have memory leaks?
How to delete some elements correctly when deleting an array loop?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-220512 in the post.
0 |
Component | UE - Foundation - Core - Cooker |
---|---|
Target Fix | 5.5 |
Fix Commit | 35365996 |
---|
Created | Jul 30, 2024 |
---|---|
Resolved | Aug 8, 2024 |
Updated | Aug 23, 2024 |