Commit Graph

10204 Commits

Author SHA1 Message Date
Steve Robb
730a6503ec Temporary fix for IncludeTool warnings about inconsistent preprocessor state.
#rb trivial
#jira none
#preflight 623c67b4da56b5683a15d284

[CL 19494088 by Steve Robb in ue5-main branch]
2022-03-24 08:59:44 -04:00
charles bloom
3c55db59b6 Float16 Max constant and comments about clamp behavior change in Set
no change in existing behavior

#rb none
#preflight none

[CL 19493873 by charles bloom in ue5-main branch]
2022-03-24 08:44:31 -04:00
Steve Robb
51802de52f UE_ prefix added to math macros, with switches for turning on deprecation and removal for the old macros.
Fixes for all the macro use in Core.

#rb robert.manuszewski
#jira UE-140139
#preflight 623c54628900c14eecdea9c6

[CL 19493359 by Steve Robb in ue5-main branch]
2022-03-24 07:49:46 -04:00
fabian giesen
8a5308dc23 FArchiveState::CustomVer doc comment fix
The implementation returns -1 if the version tag is not found, not 0.

#rb danny.couture
#preflight 623bf802437e1bac26c112a2

[CL 19492200 by fabian giesen in ue5-main branch]
2022-03-24 01:03:37 -04:00
wes hunt
b14fc01621 Fix FGenericCrashContext::Initialize() to initialize the GameName to UE-ProjectName instead of UE5-GameName
#ROBOMERGE-AUTHOR: wes.hunt
#ROBOMERGE-SOURCE: CL 19472252 via CL 19472515 via CL 19472553 via CL 19488666 via CL 19488781
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v936-19480137)

[CL 19489780 by wes hunt in ue5-main branch]
2022-03-23 20:34:22 -04:00
richard malo
4103a6c827 - WorldPartition ActorDesc full support for actors referencing Data Layer Assets
- Fixed changelist validation on DataLayers using new WorldDataLayersActorDesc
#rb philippe.deseve, jeanfrancois.dube
#preflight 623b33e7db0f61c7926e7df8

#ROBOMERGE-AUTHOR: richard.malo
#ROBOMERGE-SOURCE: CL 19480678 via CL 19481445 via CL 19481573
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v936-19480137)

[CL 19484037 by richard malo in ue5-main branch]
2022-03-23 15:55:02 -04:00
Devin Doucette
4c8630b6d8 RWLock: Fixed assertions in TryReadLock and TryWriteLock
We want to return false for EAGAIN and EDEADLK because these are cases that the caller can reasonably handle. Other errors (EINVAL and EFAULT) are now ignored and return false as well, because they are unlikely when FRWLock is used correctly.

#preflight 623b416eec68595f3b95303f
#rb Martin.Sevigny, Zousar.Shaker
#rnx

[CL 19481208 by Devin Doucette in ue5-main branch]
2022-03-23 12:59:21 -04:00
Steve Robb
897dd170ab Replacement of DEPRECATED_MACRO with UE_DEPRECATED_MACRO.
#rb devin.doucette
#jira none
#preflight 623b225a7b69b01ec16118a7

[CL 19480377 by Steve Robb in ue5-main branch]
2022-03-23 12:07:25 -04:00
paul chipchase
97fbde0880 Expose the package submission checks we run when submitting changelists from within the editor so that other systems can specifically invoke it in addition to running it when ever a source control module callback is invoked.
#rb PJ.Kack
#rnx
#preflight 623ae40e7b69b01ec15da75c
#robomerge FNNC

- We need to expose the code that checks a set of packages for non virtualized payloads and virtualizes them so that the stand alone submission tool can access it.
- Currently I am adding this to the IVirtualizationSystem interface to avoid adding additional interface, but we might want to consider moving this some day as it is not a great fit with the rest of the interface.

[CL 19479757 by paul chipchase in ue5-main branch]
2022-03-23 11:14:47 -04:00
Devin Doucette
c8d64e3c97 Logging: Added and migrated to GLog->PanicFlush() for crash handling
#preflight 623a433a10251d53d5796835
#rb Zousar.Shaker

[CL 19478551 by Devin Doucette in ue5-main branch]
2022-03-23 09:39:18 -04:00
fabian giesen
f3e6375ba7 UnrealMathTest name conflict resolution.
#rb  none
#jira UE-146786
#preflight 623ad3de437e1bac26af49bf

[CL 19476965 by fabian giesen in ue5-main branch]
2022-03-23 04:18:37 -04:00
helen yang
527cf8a18d Revert unintended change to LLM tracker tags, move audio spatialization plugins tracking to use new tag with appropriate stat group
#jira nojira
#rb aaron.mcleran, phil.popp
#preflight 623a468cec68595f3b8d408c

#rnx
#robomerge FNNC

[CL 19473466 by helen yang in ue5-main branch]
2022-03-22 18:56:51 -04:00
Devin Doucette
16f363bde1 RWLock: Added TryReadLock and TryWriteLock
#preflight 623a2e3eca34ffd7bf707e3a
#rb Zousar.Shaker
#fyi Andriy.Tylychko, Johan.Torp

[CL 19472194 by Devin Doucette in ue5-main branch]
2022-03-22 16:57:51 -04:00
Devin Doucette
41770b2232 Logging: Temporary workaround for a hang during crash handling
#preflight 623a26138900c14eecc31da4
#rb Brandon.Schaefer
#rnx

[CL 19471266 by Devin Doucette in ue5-main branch]
2022-03-22 16:01:49 -04:00
Catalin Dragoiu
642b61b238 Fix compile error in TraceScreenshot.cpp
#rb trivial
#preflight 623a051810251d53d5742e5b

[CL 19469125 by Catalin Dragoiu in ue5-main branch]
2022-03-22 13:55:52 -04:00
zach bethel
50274e3050 Converted FIntPoint / FIntVector / FIntRect to a template type and added unsigned variants.
#rb luke.thatcher, andrew.davidson, steve.robb
#preflight 6239e9d204769ab49354a30f

[CL 19468937 by zach bethel in ue5-main branch]
2022-03-22 13:40:58 -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
Catalin Dragoiu
e0475b1694 Screenshot tracing initial implementation
#rb Ionut.Matasaru Johan.Berg
#preflight 6239f65abc1cf2803864a90c

[CL 19467957 by Catalin Dragoiu in ue5-main branch]
2022-03-22 12:35:42 -04:00
richard malo
3f5f80fb21 Fixed bad serialization of FDataLayerInstanceDesc
#rb jeanfrancois.dube
#preflight 6239deab8900c14eecbe0277

#ROBOMERGE-AUTHOR: richard.malo
#ROBOMERGE-SOURCE: CL 19466647 via CL 19466706
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v935-19464907)

[CL 19467262 by richard malo in ue5-main branch]
2022-03-22 11:42:54 -04:00
Brandon Schaefer
831a330e1d Partially revert 19458254: don't use profiling scopes in GetStats(), as it's used in static initialization during LLM profiling.
#jira none
#rb brandon.schaefer
#preflight none

#ushell-cherrypick of 19466664 by ilya.loshchinin

[CL 19466749 by Brandon Schaefer in ue5-main branch]
2022-03-22 11:08:54 -04:00
LouisPhilippe Seguin
b5a43d8c0a Forking
* SupportsMultithreadingPostFork() will not assert if the cmdline hasn't been set when called.
* Instead it will be return true/false based on the DEFAULT define and hope the cmdline override won't break anything later.

#jira none
#rb Brandon.Schaeffer
#preflight 6239e17c1302f69e9a80458d

[CL 19466646 by LouisPhilippe Seguin in ue5-main branch]
2022-03-22 11:01:11 -04:00
Per Larsson
593ae48c68 IoBuffer - additional constructors from memory view
#rb Paul.Chipchase
#rnx
#jira none
#preflight none

[CL 19465971 by Per Larsson in ue5-main branch]
2022-03-22 09:48:39 -04:00
Devin Doucette
f2d14682f1 ValueOrError: Added specializations for void value and error types
Migrated tests to Catch.

#preflight 6234a6fded772061b62816c2
#rb Steve.Robb

[CL 19465703 by Devin Doucette in ue5-main branch]
2022-03-22 09:25:41 -04:00
ilya loshchinin
2b47728502 Added trace profiler scopes to UnixPlatformMemory GetStats and GetExtendedStats, to trace the effect of system calls on other threads.
#rb LouisPhilippe.Seguin

#ROBOMERGE-AUTHOR: ilya.loshchinin
#ROBOMERGE-SOURCE: CL 19458254 via CL 19461422 via CL 19462830 via CL 19462892
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v933-19451510)

[CL 19463651 by ilya loshchinin in ue5-main branch]
2022-03-22 00:15:10 -04:00
fabian giesen
490f937e80 Change FMath::Min/Max to fix two potholes with the current definitions
1. On custom types, they require overloads for operator <= and >= respectively; it's more idiomatic in C++ code for ordering predicates to rely solely on <
2. The current definition results in highly suboptimal code generation for floating-point types on x86 when compiling in IEEE compliant mode: https://godbolt.org/z/3zsYKaasc

In short, x86 min/max instructions are equivalent to "(a < b) ? a : b" and "(a > b) ? a : b", respectively. In the specific case where a=+0, b=-0 (IEEE signed zeros), then in comparisons +0 == -0, so we have both (a >= b) and (a <= b), but neither (a > b) nor (b < a). As a result, the original expressions for FMath::{Min,Max} return a (+0), while the changed expressions returns b (-0) in this particular case. (The a=-0, b=+0 case is analogous.)

Most code in UE currently compiles with /fp:fast or -ffast-math, which makes the compiler not respect signed zero behavior; see behavior with -fno-signed-zeros in the Compiler Explorer link. Because so much gets compiled with fast math semantics, behavior in this case was not reliable anyway. We might as well pick the definition that is efficient on x86 even without fast math.

#rb devin.doucette
#preflight 6239248304769ab4934cd0ea

[CL 19462511 by fabian giesen in ue5-main branch]
2022-03-21 21:36:48 -04:00