2) Improved the performance of the array dimension enum lookup code.
3) Moved type shutdown to be tracked in the app instead of at c++ exit time.
4) Changed to TSharedRef iteration to use references instead of by value to avoid the performance hit.
#rb none
#rnx
[CL 16936536 by Tim Smith in ue5-main branch]
Added new casting system betwen the different type definitions. This allows some patterns that makes the code easier.
Moved some direct calls to engine API to FClasses.
More property data moved to the property definition.
Replacing a many more instances of referencing engine type directly with referencing UHT types.
Removed the FToken from the property data. Saved 600MB of memory on some titles.
#rb jonathan.adamczewski
#rnx
[CL 16416114 by Tim Smith in ue5-main branch]
2) Remove the global hash storage system since it is moved into the Function type information.
3) Remove some unsed classes and methods.
4) Added the TEMPORARY auto creation of base engine types until they can be added to the no export file.
#rb marc.audy
#rnx
#preflight 60893ddb2377910001be8638
[CL 16142341 by Tim Smith in ue5-main branch]
1) Refactored preparsing to scan for @UCLASS, @USTRUCT, and @ENUM and define then. This means that no new entries into the type definition info system will be added after pre-parsing and thus remove the need for any type of locking during code generation.
2) Parsing and code generation is now being done in a strict order based on dependencies and no longer by project. This removes the need of explicitly parsing depedencies first or waiting on hashes to be computed. (Provided a 50%-80% improvement in code generation time)
3) Changed HeaderParser to be specific to one source file. Removed the need to pass the source file around since it is always known at construction time. Simplified some error handling logic.
4) Changed parallel for loops to using event graph to provide more concurrency.
5) Refactored the main program flow into concise steps.
Testing:
Verified that the headers generated exactly the same for:
1) First person C++ Project
2) UnrealEditor
3) QAGame
4) ShooterGame
5) FortniteGame
FYI: Marc had reviewed this as part of a larger change but some parts were extract. These are the remaining changes.
#rb marc.audy
#rnx
#preflight 6078666a02850d00010e22c5
[CL 16023636 by Tim Smith in ue5-main branch]
#rb Michael.Noland
#jira
#rnx
#ROBOMERGE-SOURCE: CL 13191242 via CL 13191244 via CL 13191248
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v688-13145358)
[CL 13191250 by marc audy in Main branch]
#rb Michael.Noland
#rnx
#jira
#ROBOMERGE-SOURCE: CL 13183805 via CL 13183813 via CL 13183823
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v688-13145358)
[CL 13183833 by marc audy in Main branch]
* Remove FNameLookupCPP struct and interface name maps. Overhead of managing/locking maps provides no benefit to the very simple Printf that it is ultimately doing.
* Remove unused FNameLookupCPP source file
* Remove GClassStrippedHeaderTextMap and GClassHeaderNameWithNoPathMap as they are unused
* No longer add Enum hashes to global table as they are not read.
* CheckedMetadataSpecifiers now stored as a FName keyed TMap as the incoming values are names not strings, so no need to convert name to string
#jira
#rnx
#rb
#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 10879228 via CL 10879328 via CL 10879344
#ROBOMERGE-BOT: (v626-10872990)
[CL 10880488 by marc audy in Main branch]
* Restructured code so that FNativeClassHeaderGenerator can now use ParallelFor for 3 phases: creating the .generated.h files, creating the .gen.cpp, and exporting the generated headers
* FNameLookupCPP, GPackageSingletons, GGeneratedCodeHashes, GetTypePackageName, FNativeClassHeaderGenerator::GetPackageSingletonName, FTypeSingletonCache, and FTypeSingleton::GetExternDecl now use RWScopeLocks to safely control access to globals/statics
#jira
#rnx
#rb
#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 10876463 via CL 10876464 via CL 10876465
#ROBOMERGE-BOT: (v624-10872983)
[CL 10876473 by marc audy in Main branch]