Commit Graph

287 Commits

Author SHA1 Message Date
Tim Smith
a9dd8d0077 Client fails to build due to an assert in UHT.
#rb trivial
#jira UE-111972

#ushell-cherrypick of 15850207 by Tim.Smith

[CL 15850311 by Tim Smith in ue5-main branch]
2021-03-29 09:30:09 -04:00
Jamie Dale
4ca8447908 Fixed bad merge
#fyi Ben.Marsh, Tim.Smith
#rb none
#rnx

[CL 15815140 by Jamie Dale in ue5-main branch]
2021-03-24 22:16:13 -04:00
ben marsh
7427752f6c Various UE4->UE5 renames.
#rb none
#jira UE-111511, UE-111448, UE-111128, UE-111287, UE-111198, UE-111657
#preflight 605b8cec0c31c10001599547

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 15807072 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v783-15756269)
#ROBOMERGE-CONFLICT from-shelf

[CL 15813821 by ben marsh in ue5-main branch]
2021-03-24 20:52:19 -04:00
Tim Smith
7571d8ea73 Reduce preprocessing time by 60%. Utilizing JobGraph to allow reading and initial parsing of files to be 100% concurrent.
#rb devin.doucette

[CL 15738003 by Tim Smith in ue5-main branch]
2021-03-18 11:03:01 -04:00
Tim Smith
a2237e050d LiveCoding Re-instancing
LIMITATIONS:

1) Re-instancing will only update UClass instance data.
2) Adding and removing properties should only be done towards the end of a class or structure and can not be followed by complex data types.
3) Adding and removing properties from a base class should not be done if a derived class contains complex data types.

KNOWN ISSUES:

1) Changes to enumerations and structures will not be reflected in existing blueprints.  However, adding new nodes to the blueprint will show the updated enumeration or structure.
2) If a class contains an enumeration or structure as a member, the class will not be re-instanced if enumeration or structure is changed.

CHANGES:

1) LiveCodingServer
1a) Modified to always execute certain static instances during load.
1b) Modified to exclude the _Statics static structures to avoid patching to old copies.

2) Added support for LiveCoding reinstancing
2a) Refactored deferred registration system for UClass, UEnum, and UScriptStruct to use a common system that works for normal game, hot reload and live coding.
2b) Type specific version check data is possible (i.e. enum doesn't have a size)
2c) Single registration static for UClass
2d) Single registration class for all types that is just a blind forward to API.
2e) Static and dynamic registrations use different API entry points to avoid having overloaded argument lists that just apply to one or the other.
2f) Shims for older API

3) New common "Reload" system to avoid using HotReload code.
3a) Support common delegates regardless of who is reloading/reinstancing.
3b) Re-instancing code moved from HotReload to Kismet2 (where the bulk of the re-instance code already existed).
3c) Modified PyWrapper to use new helper class instead of depending on HotRelaod
3d) Added WITH_RELOAD which is defined if HotReload or LiveCoding is enabled.
3e) Modifed existing code to use new #define and delegates.

Robert did the review on the changes covered by Part 2.  Remaining changes are all straightforward.

#rb robert.manuszewski
#jira UE-74493

[CL 15736777 by Tim Smith in ue5-main branch]
2021-03-18 08:13:59 -04:00
Tim Smith
35cc3755d2 Fixing a race condition with -WRITEREF and -VERIFYREF that would cause files to be missing.
Removed some unused functionality in FScriptLocation that wasn't being used and depended on a global variable.

#rb devin.doucette

[CL 15726794 by Tim Smith in ue5-main branch]
2021-03-17 13:16:36 -04:00
Marc Audy
1d16cff267 No longer generate PPO offsets since nativization is no longer a thing
#rb Phillip.Kavan

[CL 15480852 by Marc Audy in ue5-main branch]
2021-02-19 20:14:52 -04:00
Marc Audy
9753392e2b Merge UE5/RES CL# 15462083 to UE5/Main
This represents UE4/Main @ 15414221

[CL 15463811 by Marc Audy in ue5-main branch]
2021-02-18 18:13:28 -04:00
Zousar Shaker
bdfe4fff0f Split the representation in the reflection system of TObjectPtr fields into FObjectPtrProperty (derived from FObjectProperty and already existed since the introduction of wrapped object pointers) and a new FClassPtrProperty (derived from FClassProperty, and newly introduced in this change). As with raw pointers, UHT will generate code for one vs the other depending on whether the inner type is derived from UClass or not. The new reflection type is meant to be functionally equivalent to the existing one, except it changes how the PROPERTY (not the instance of the field on a containing object) is serialized to ensure it includes the MetaClass member as inherited from FClassProperty.
#rb robert.manuszewski

[CL 15317249 by Zousar Shaker in ue5-main branch]
2021-02-04 12:19:38 -04:00
Marc Audy
cac1fe0019 Merge UE5/Release-Engine-Staging @ CL# 15299266 to UE5/Main
This represents UE4/Main @ CL# 15277572

[CL 15299962 by Marc Audy in ue5-main branch]
2021-02-03 14:57:28 -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
Marc Audy
4c1bb11c29 Merge UE5/Release-Engine-Staging to UE5/Main @ 14548662
This represents UE4/Main @ 14525125 + cherrypicked fixes
#skipundocheck

[CL 14551026 by Marc Audy in ue5-main branch]
2020-10-22 19:19:16 -04:00
jack cai
cc44047bec RigVM: Backing out UHT changes @ CL14544263, causing UHT failure in Frosty
#jira UE-101652
#rb none

[CL 14546229 by jack cai in ue5-main branch]
2020-10-22 12:33:50 -04:00
jack cai
cbe2dcee05 RigVM: Add header file path registration for RigVM Functions, required for Control Rig Nativization Research Project
#jira UEA-679

#rb helge.mathee sara.schvartzman

[CL 14544263 by jack cai in ue5-main branch]
2020-10-22 09:42:42 -04:00
Zousar Shaker
77d13185b7 Copying //UE5/Dev-Cooker@14539516 to Main (//UE5/Main)
[CL 14539954 by Zousar Shaker in ue5-main branch]
2020-10-21 17:56:05 -04:00
Marc Audy
50a3d7d368 Merge Release-Engine-Staging to Main @ CL# 14467590
This represents UE4/Main @ 14432125 + some cherrypick fixes

[CL 14468207 by Marc Audy in ue5-main branch]
2020-10-09 22:42:26 -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
7379fa99c5 Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14229157
[CL 14233282 by Marc Audy in ue5-main branch]
2020-09-01 14:07:48 -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
11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00
Ben Marsh
99be00dcdb Merging latest from Private-Starship.
[CL 13192225 by Ben Marsh in ue5-main branch]
2020-05-05 18:50:52 -04:00
marc audy
66843dbb81 UHT Optimization: Parallelize the file loading and initial parsing of headers
#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]
2020-05-05 18:20:38 -04:00
marc audy
615d7a84c7 UHT optimization: Encapsulate GUnrealSourceFilesMap, GTypeDefinitionInfoMap, and GPublicSourceFileSet to allow indexing in multiple ways
#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]
2020-05-05 13:59:39 -04:00
marc audy
1fe338e5e5 UHT optimization: UnrealSourceFile API cleanup
Eliminate Get/AppendDefinedClasses and use the const TMap& GetDefinedClassesWithParsingInfo instead to avoid building/copying arrays unnecessarily.
Cache GeneratedHeaderFilename, StrippedFilename, and FileId instead of repeatedly rebuilding
Use Move parameters as possible
#rb Michael.Noland
#jira
#rnx

#ROBOMERGE-SOURCE: CL 13181587 via CL 13181592 via CL 13181597
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v688-13145358)

[CL 13181603 by marc audy in Main branch]
2020-05-05 12:35:20 -04:00
marc audy
4175165b20 UHT Optimization: Determine and store in a static bool FailIfGeneratedCodeChanges rather than looking up per module.
#rb Michael.Noland
#rnx
#jira

#ROBOMERGE-SOURCE: CL 13181389 via CL 13181398 via CL 13181407
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v688-13145358)

[CL 13181416 by marc audy in Main branch]
2020-05-05 12:16:53 -04:00