Commit Graph

164 Commits

Author SHA1 Message Date
shawn mcgrath
a5a3936e40 VectorVM: allow dead random instruction to be removed.
Turned new VM back on and bumped the Niagara_LatestScriptCompileVersion.  #JIRA UE-147838 #preflight 624c47478e5ae00f0ab7e7f4 #rb rob.krajcarski

[CL 19627043 by shawn mcgrath in ue5-main branch]
2022-04-05 12:28:07 -04:00
cesar castro
a15d1515a4 Motion Matching - Moved Pose Search Database Search Index to the DDC using lower level DDC api
#rb aaron.cox
#preflight 6245d735292f228e09048ff1

[CL 19574506 by cesar castro in ue5-main branch]
2022-03-31 12:48:04 -04:00
shawn mcgrath
b03432bbb0 New VectorVM optimizer fixes. Fixes some invalid instruction removal bugs as well as incorrect SSA calculation on re-ordered instructions. Also fixed potential external function register alignment bugs. Turned new VectorVM back on by default and bumped the Niagara script compiled version. #preflight 62438337c51908059aa24096 #rb rob.krajcarski
[CL 19551771 by shawn mcgrath in ue5-main branch]
2022-03-29 20:09:16 -04:00
rob krajcarski
b281028c38 Additional support for new experimental VM
-moves optimization pass to the async compilation pipeline (including moving it to it's own file, out of NiagaraSystem)
-splits up the NIAGARA_VM_EXP preprocessor define into VECTORVM_SUPPORTS_LEGACY & VECTORVM_SUPPORTS_EXPERIMENTAL allowing support of one, the other or both (the default)
#rb shawn.mcgrath
#jira none
#preflight 623c85cd1302f69e9aa0b1d7

[CL 19496739 by rob krajcarski in ue5-main branch]
2022-03-24 11:52:03 -04:00
rune stubbe
8292810479 Fixed potential streamer crash by fixing the non-determinism issues in the Nanite builder.
Because of assumptions in the DDC system about cooking being deterministic, we could under various circumstances end up in a situations where StaticMesh and the associated Nanite streaming data was coming from two different cooks.
This could easily cause a crash as the StaticMesh chunk contains explicit page and offset references into the streaming data.

Determinism fixes:
-Added sorting step during initial clustering in the case where an edge is shared by more than 2 triangles.
-Added sorting step to sort parent clusters after they have been generated.
-Changed cluster GUID from 32bit to 64bit. When cooking CitySample there was one case where two clusters that were compared ended up with the same GUID, resulting in undefined order.
-Initialized GUID in the cluster constructor that takes a list of clusters to merge. Before it would just be 0.
-Added missing initialization of vertex color on fallback meshes that don't use vertex color.

#jira UE-146347
#rb brian.karis, michal.valient
#preflight 6238817789625f06129f616f

#ushell-cherrypick of 19458684 by Rune.Stubbe
#lockdown Marc.Audy

#ROBOMERGE-AUTHOR: rune.stubbe
#ROBOMERGE-SOURCE: CL 19467008 in //UE5/Release-Engine-Staging/...
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v935-19464907)

[CL 19468567 by rune stubbe in ue5-main branch]
2022-03-22 13:10:29 -04:00
robert millar
9b14ca87aa When building name patches, compare names case sensitively. (Sorting was already done case sensitively.)
Removing ensure from FName about unfreezing names that were created for a case-insensitive target. We rely on the archive used for serialization to save names with their case intact.

#rb ben.ingram, johan.torp

#ROBOMERGE-AUTHOR: robert.millar
#ROBOMERGE-SOURCE: CL 19422180 via CL 19424113 via CL 19430180 via CL 19430244
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v930-19419903)

[CL 19432581 by robert millar in ue5-main branch]
2022-03-18 02:34:50 -04:00
daniel wright
05e0e5f329 'Affect Distance Field Lighting' per Static Mesh Section
* Useful to hide window frames in the distance field to work around over-occlusion

#ROBOMERGE-AUTHOR: daniel.wright
#ROBOMERGE-SOURCE: CL 19416394 via CL 19416400
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v928-19376421)

[CL 19417073 by daniel wright in ue5-main branch]
2022-03-16 23:42:08 -04:00
jeanfrancois dube
0650e67340 Initial NC custom object version file.
#rb marc.audy
[FYI] daniel.wright, richard.malo
#preflight 62325960c676783ece6fb0d1
#rnx

#ROBOMERGE-AUTHOR: jeanfrancois.dube
#ROBOMERGE-SOURCE: CL 19415193 via CL 19415416
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v928-19376421)

[CL 19417057 by jeanfrancois dube in ue5-main branch]
2022-03-16 23:41:43 -04:00
marc audy
a3275e4513 Move SystemGUIDs in to a cpp to avoid massive recompiles when changing
Convert landscape mobile cook version to system guid system
#jira
#rnx

#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 19346370 via CL 19352300 via CL 19352991 via CL 19355735
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19357735 by marc audy in ue5-main branch]
2022-03-11 13:08:58 -05:00
marc audy
697d66e0a9 Convert Nanite and StaticMesh derived versions to system guids
#rb Rune.Stubbe
#jira
#rnx

#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 19254713 via CL 19267804 via CL 19277889 via CL 19293438
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v924-19243027)

[CL 19296673 by marc audy in ue5-main branch]
2022-03-07 19:47:29 -05:00
marc audy
5b9ec3c75d Adapt UE5 Main system guids to static init fix
Actually register the ue5 main  system guids
#rnx
#lockdown JeanFrancois.Dube

#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 19243841 in //UE5/Release-Engine-Staging/...
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19243896 by marc audy in ue5-main branch]
2022-03-03 10:11:42 -05:00
marc audy
f8046155d0 Adapt UE5 Release system guids to static init fix
Actually register the ue5 release system guids
#rnx
#lockdown JeanFrancois.Dube

#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 19243752 via CL 19243762 via CL 19243800
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19243893 by marc audy in ue5-main branch]
2022-03-03 10:11:34 -05:00
michael galetzka
cdd018b199 Fixed static init order bug with new DevSystemGuids.
[FYI] simon.tovey

#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: michael.galetzka
#ROBOMERGE-SOURCE: CL 19242528 via CL 19243180 via CL 19243201 via CL 19243797
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19243888 by michael galetzka in ue5-main branch]
2022-03-03 10:11:27 -05:00
marc audy
9c53aea82a Fix accidental removal of 'n'
#jira
#rnx

#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 19228288 via CL 19228477 via CL 19237794 via CL 19237974 via CL 19238476
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19239364 by marc audy in ue5-main branch]
2022-03-03 01:27:38 -05:00
marc audy
95561d5986 Create system that allows system guids, often used for derived data versions, to be changed in separate streams without causing conflicts
#rb Aurel.Cordonnier, Shaun.Kime
#jira

#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 19227447 via CL 19237703 via CL 19237709 via CL 19238311
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19239348 by marc audy in ue5-main branch]
2022-03-03 01:26:10 -05:00
steve robb
288f3de432 Fixes for the implicit conversion of ints and chars to TCHARs in UTF-8 mode.
#rb trivial
#preflight 621ed0b4e15c51d8c5e5d081

#ROBOMERGE-OWNER: steve.robb
#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 19219816 via CL 19220283 via CL 19220288 via CL 19223679
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19227684 by steve robb in ue5-main branch]
2022-03-02 15:30:50 -05:00
robert millar
b7b8b8d70c Fixes for memory image names.
Correctly write to MemoryImageNames array, copy contents of TArrayView rather than the layout of the view object itself, handle name layout during patch application on foreign platforms.

#rb none
[FYI] johan.torp, ben.ingram

#ROBOMERGE-OWNER: Ben.Woodhouse
#ROBOMERGE-AUTHOR: robert.millar
#ROBOMERGE-SOURCE: CL 19068807 via CL 19068829 via CL 19074886 via CL 19075335 via CL 19077116
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19077183 by robert millar in ue5-main branch]
2022-02-22 14:13:32 -05:00
robert millar
5811293e2a Add TargetRules.bFNameOutlineNumber as an option to reduce the size of FName by 4 bytes by storing the number in the name table.
Adds a define UE_FNAME_OUTLINE_NUMBER.
Removes of FName, FMinimalName from memory image support. Adds of FMemoryImageName.
Removal of FMinimalName operator<<, all fields made private, size made variable.
All fields of FScriptName made private.
Added console commands for dumping numbered/unnumbered names and stats.

#rb johan.torp

#ROBOMERGE-OWNER: robert.millar
#ROBOMERGE-AUTHOR: robert.millar
#ROBOMERGE-SOURCE: CL 19058026 via CL 19058611 via CL 19058656 via CL 19061727 via CL 19061740 via CL 19064047
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v918-19018356)

[CL 19066701 by robert millar in ue5-main branch]
2022-02-21 02:35:48 -05:00
jordan cristiano
fc3a72b5bb Inlined operator==(FNameEntryId Id, EName Ename) to allow the compiler to optimize out overhead in comparisons to NAME_None.
#rb johan.torp, evgenii.babinets

#ROBOMERGE-AUTHOR: jordan.cristiano
#ROBOMERGE-SOURCE: CL 19044043 via CL 19044071 via CL 19044083 via CL 19044089 via CL 19044971
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v918-19018356)

[CL 19045892 by jordan cristiano in ue5-main branch]
2022-02-17 20:04:45 -05:00
matt peters
42ce723078 #jira VLN-1992
Ship robustness: Add a fatal assert if FName text is too long in HashLowerCase. This can occur with adversarial corruption of AssetRegistry.bin and could be taken advantage of for injected code execution.
#rb Johan.Torp
#rnx
#preflight 61dc718f917ab977169e020e

#ROBOMERGE-AUTHOR: matt.peters
#ROBOMERGE-SOURCE: CL 18562114 in //UE5/Release-5.0/... via CL 18562143
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18562159 by matt peters in ue5-release-engine-test branch]
2022-01-10 13:05:20 -05:00
andrew davidson
b98537f02b UNSAFE_TYPECAST_WARNING macros allow force enabling of warnings.
#[fyi] michael.noland
#preflight 61d86fa3c65e66487b36b5c0

#ushell-cherrypick of 18546856 by Andrew.Davidson

#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18552595 via CL 18552601 via CL 18552604 via CL 18553016 via CL 18553035
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18553054 by andrew davidson in ue5-release-engine-test branch]
2022-01-07 20:09:18 -05:00
andrew davidson
83f6ea2c8a Undo //Fortnite/Dev-EngineMerge-Test2/Engine/... changelist 18551315
#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18552107 via CL 18552130 via CL 18552133 via CL 18552520 via CL 18552534
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18552539 by andrew davidson in ue5-release-engine-test branch]
2022-01-07 19:03:23 -05:00
andrew davidson
9dc047e01d UNSAFE_TYPECAST_WARNING macros allow force enabling of warnings.
[FYI] michael.noland
#preflight 61d86fa3c65e66487b36b5c0

#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18546856 in //UE5/Release-5.0/... via CL 18546891
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18546909 by andrew davidson in ue5-release-engine-test branch]
2022-01-07 12:27:01 -05:00
aurel cordonnier
a6e741e007 Merge from Release-Engine-Staging @ 17915896 to Release-Engine-Test
This represents UE4/Main @17911760, Release-5.0 @17915875 and Dev-PerfTest @17914035

[CL 17918595 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-25 20:05:28 -04:00
aurel cordonnier
a12d56ff31 Merge from Release-Engine-Staging @ 17791557 to Release-Engine-Test
This represents UE4/Main @17774255, Release-5.0 @17791557 and Dev-PerfTest @17789485

[CL 17794212 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-12 21:21:22 -04:00