Commit Graph

1040 Commits

Author SHA1 Message Date
Zousar Shaker
35e6841198 INI changes for use of desired structured namespaces when using Zen as a DDC backend.
#rb dan.engelbrecht, devin.doucette
#preflight skip,NotTestedByPreflight
#robomerge EngineMerge

[CL 20629882 by Zousar Shaker in ue5-main branch]
2022-06-13 13:09:47 -04:00
paul chipchase
f67a284f2a Move the ini file settings for FVirtualizationManager from [Core.ContentVirtualization] to [Core.VirtualizationModule]
#rb Per.Larsson
#jira UE-156189
#rnx
#preflight 62a33c245a0ab464fb020897

- The main goal is to split the ini file option that selects the virtualization system to use (SystemName) from the options for our virtualization module.
- The old values should continue to be read and used, but if we detect that ini file values are still under [Core.ContentVirtualization] we will warn about it.

[CL 20594207 by paul chipchase in ue5-main branch]
2022-06-10 09:18:41 -04:00
robert manuszewski
e03973e3e1 Enabling 'AttemptToFindShortTypeNamesInMetaData' engine and editor startup tests.
#preflight 62a03f5700156747d5147814
#rb trivial
[FYI] Bob.Tellez

#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 20553346 via CL 20553350 via CL 20553351 via CL 20553376 via CL 20553380
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v954-20466795)

[CL 20553932 by robert manuszewski in ue5-main branch]
2022-06-08 06:00:12 -04:00
Josh Adams
50fd0a8994 - Enabled x86 and arm64 configs in Xcode by default for all targets
#fyi will.damon,rolando.caloca
#rb trivial
#preflight skip

[CL 20538156 by Josh Adams in ue5-main branch]
2022-06-07 10:49:19 -04:00
paul chipchase
56642153d2 Enable the package trailer system for the entire engine
#rb PJ.Kack
#rnx
#jira UE-154006
#preflight 62975956e809e387be1a8c7b

- This will change how we store editor bulkdata payloads in the package file and has been running on various branches for half a year so should be quite safe to turn on everywhere.

[CL 20467111 by paul chipchase in ue5-main branch]
2022-06-02 05:22:25 -04:00
robert manuszewski
d1443992e1 Deprecating ANY_PACKAGE.
This change consists of multiple changes:

Core:
- Deprecation of ANY_PACKAGE macro. Added ANY_PACKAGE_DEPRECATED macro which can still be used for backwards compatibility purposes (only used in CoreUObject)
- Deprecation of StaticFindObjectFast* functions that take bAnyPackage parameter
- Added UStruct::GetStructPathName function that returns FTopLevelAssetPath representing the path name (package + object FName, super quick compared to UObject::GetPathName) + wrapper UClass::GetClassPathName to make it look better when used with UClasses
- Added (Static)FindFirstObject* functions that find a first object given its Name (no Outer). These functions are used in places I consider valid to do global UObject (UClass) lookups like parsing command line parameters / checking for unique object names
- Added static UClass::TryFindType function which serves a similar purpose as FindFirstObject however it's going to throw a warning (with a callstack / maybe ensure in the future?) if short class name is provided. This function is used  in places that used to use short class names but now should have been converted to use path names to catch any potential regressions and or edge cases I missed.
- Added static UClass::TryConvertShortNameToPathName utility function
- Added static UClass::TryFixShortClassNameExportPath utility function
- Object text export paths will now also include class path (Texture2D'/Game/Textures/Grass.Grass' -> /Script/Engine.Texture2D'/Game/Textures/Grass.Grass')
- All places that manually generated object export paths for objects will now use FObjectPropertyBase::GetExportPath
- Added a new startup test that checks for short type names in UClass/FProperty MetaData values

AssetRegistry:
- Deprecated any member variables (FAssetData / FARFilter) or functions that use FNames to represent class names and replaced them with FTopLevelAssetPath
- Added new member variables and new function overloads that use FTopLevelAssetPath to represent class names
- This also applies to a few other modules' APIs to match AssetRegistry changes

Everything else:
- Updated code that used ANY_PACKAGE (depending on the use case) to use FindObject(nullptr, PathToObject), UClass::TryFindType (used when path name is expected, warns if it's a short name) or FindFirstObject (usually for finding types based on user input but there's been a few legitimate use cases not related to user input)
- Updated code that used AssetRegistry API to use FTopLevelAssetPaths and USomeClass::StaticClass()->GetClassPathName() instead of GetFName()
- Updated meta data and hardcoded FindObject(ANY_PACKAGE, "EEnumNameOrClassName") calls to use path names

#jira UE-99463
#rb many.people
[FYI] Marcus.Wassmer
#preflight 629248ec2256738f75de9b32

#codereviewnumbers 20320742, 20320791, 20320799, 20320756, 20320809, 20320830, 20320840, 20320846, 20320851, 20320863, 20320780, 20320765, 20320876, 20320786

#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 20430220 via CL 20433854 via CL 20435474 via CL 20435484
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20448496 by robert manuszewski in ue5-main branch]
2022-06-01 03:46:59 -04:00
Josh Adams
b2a8d5e3bb - FIxed TargetArchitecture string parsing
#preflight 6294c26a380652524ed75c31

[CL 20430466 by Josh Adams in ue5-main branch]
2022-05-30 09:17:09 -04:00
robert manuszewski
43d504502b Adding automated startup tests to check if class / struct / enum / property metadata contains values with short type names which will help with ANY_PACKAGE removal
(disabled until all ANY_PACKAGE removal changes are in)

#jira UE-99463
#rb Steve.Robb
#preflight 62921cafdb0a62f25c07b693

#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 20407210 via CL 20407235 via CL 20407352 via CL 20407427
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20409051 by robert manuszewski in ue5-main branch]
2022-05-28 12:18:53 -04:00
Josh Adams
d2ca7efb2f - Allow editor to build for M1, but not enabled by default. See:
BaseGame.ini:
  [/Script/MacTargetPlatform.MacTargetSettings]
  TargetArchitecture=Universal
  EditorTargetArchitecture=Universal

#rb will.damon
#jira UE-145032,UE-153529
#preflight 62914a156d1aaeda580cbc6b

[CL 20400585 by Josh Adams in ue5-main branch]
2022-05-27 18:34:49 -04:00
Brandon Schaefer
bb7d99dfe0 Enable RayTracing by default for Vualkn RHI
*Only inline ray tracing use cases are currently supported, as in Vulkan RHI on Windows

Fix Linux not loading raytracing extensions if they were enabled

#jira none
#rb yuriy.odonnell
#preflight 628fd3f98c077c0d662371e2

[CL 20384119 by Brandon Schaefer in ue5-main branch]
2022-05-26 15:49:28 -04:00
lauren barnes
53488dc718 Updating CrashReportClient style to only use images from certain folders, and moving developer tool style setup to individual style classes.
#jira UE-152623
#rb Josh.Adams, Patrick.Boutot, Patrick.Laflamme, Louise.Rasmussen
#preflight 628d6c5faf7a2e956b8de990

#ROBOMERGE-OWNER: lauren.barnes
#ROBOMERGE-AUTHOR: lauren.barnes
#ROBOMERGE-SOURCE: CL 20366551 via CL 20368551 via CL 20369147 via CL 20369164
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20370889 by lauren barnes in ue5-main branch]
2022-05-25 16:27:45 -04:00
dan engelbrecht
e4e1ba5527 Allow configuration for separate namespace for structured data
#preflight 628e494382597362d1f8050d
#preflight 628e70d72c7cb2d10d71c033

[CL 20369511 by dan engelbrecht in ue5-main branch]
2022-05-25 14:55:57 -04:00
christopher waters
8d8c05f497 Reworking shader platform settings on Windows to be per-RHI. This removes the ill-fated "min/max feature level" configs that were just causing confusion.
On Windows, "TargetedRHIs" is now split into "D3D11TargetedShaderFormats", "D3D12TargetedShaderFormats" and "VulkanTargetedShaderFormats". "TargetedRHIs" is still parsed for backwards compatibility.
Using this, projects can now be more easily configured for D3D12-only or even Vulkan-only.
Updated FShaderFormatsPropertyDetails to use FName instead of FString for shader platforms. Also added a filtering method for mixed RHI platforms like Windows.

#jira none
#rb mihnea.balta, josh.adams
#preflight 6287cbf46c7692ac8cc8805f

[CL 20300786 by christopher waters in ue5-main branch]
2022-05-20 15:09:09 -04:00
Marc Audy
367ab52e96 Refactor component instance data cache to be able to store actor or component instance data
#rb Jordan.Hoffman, Justin.Hare
#preflight 628556eae1558beddd9dcb9a

[CL 20268354 by Marc Audy in ue5-main branch]
2022-05-18 16:58:46 -04:00
paul chipchase
f85fad88ff It is now possible to disable virtualization for all payloads owned by a specific asset type by adding the name of the asset to [Core.ContentVirtualization]DisabledAsset string array in the engine ini file.
#rb Per.Larsson
#rnx
#jira UE-151377
#preflight 628364050039ea57a52d6989

### Virtualization
- [Core.ContentVirtualization] in the engine ini file now supports an array called 'DisabledAsset' which can be used to name asset types that should not virtualize their payloads.
-- By default (in BaseEngine.ini) we have disabled the StaticMesh asset as we know it will crash if a payload is missing and the SoundWave asset as it still is pending testing.
- This new way to disable virtualization is data driven. The older hard coded method has not been removed but will likely be reworked in a future submit.
- Now when an editor bulkdata is adding it's payload to the package trailer builder during package save it will poll the virtualization system with a call to the new method ::IsDisabledForObject by passing in it's owner.
-- If the owner is valid and was present in the 'DisabledAsset' array then the method will return true and the EPayloadFlags::DisableVirtualization flag will be applied.

### Package Trailer
- The pre-existing functionality of enum EPayloadFilter has been moved to a new enum EPayloadStorageType as will only filter payloads based on their storage type.
- EPayloadFilter has been modified to filter payloads based on functionality although at the moment the only thing it can filter for is to return payloads that can be virtualized, it is left for future expansion.
- EPayloadFlags has been reduced to a uint16 with the remaining 2bytes being turned into a new member EPayloadFilterReason.
- This new member allows us to record the exact reason why a payload is excluded from virtualization. If it is zero then the payload can virtualize, otherwise it will contain one or more reasons as to why it is being excluded. For this reason the enum is a bitfield.
- Added overloads of ::GetPayloads and ::GetNumPayloads that take EPayloadFilter rather than a EPayloadStorageType
- Added wrappers around all AccessMode types for FLookupTableEntry.
- FPackageTrailerBuilder has been extended to take a EPayloadFilterReason so that the caller can already provide a reason why the payload cannot be virtualized.
-- As a future peace of work this will probably be changed and we will ask the caller to pass in the owner UObject pointer instead and then we will process the filtering when building the package trailer to a) keep all of the filtering code in one place b) keep the filtering consistent

### PackageSubmissionChecks
- The virtualization process in  will now request the payloads that can be virtualized from the package trailer, which respects the new payload flag, rather than requesting all locally stored payloads.

### UObjects
- There is no need for the SoundWave or MeshDescription classes to opt out of virtualization on construction. This will be done when the package is saved and is now data driven rather than being hardcoded.

### DumpPackagePayloadInfo
- The command has been updated to also display the filter reasons applied to each payload

[CL 20240971 by paul chipchase in ue5-main branch]
2022-05-17 07:54:28 -04:00
Lauren Barnes
6248f8d412 Replacing legacy EditorStyle calls with AppStyle
#preflight 6272a74d2f6d177be3c6fdda
#rb Matt.Kuhlenschmidt

#ROBOMERGE-OWNER: Lauren.Barnes
#ROBOMERGE-AUTHOR: lauren.barnes
#ROBOMERGE-SOURCE: CL 20057269 via CL 20070159 via CL 20072035 via CL 20072203
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)
#ROBOMERGE-CONFLICT from-shelf

[CL 20105363 by Lauren Barnes in ue5-main branch]
2022-05-09 13:12:28 -04:00
tim doerries
691425e0f6 Fix for typo in URectLightComponent::SetSourceTexture() and URectLightComponent::SetSourceWidth()
#jira UE-150437
#rb kevin.ortegren
#rnx
#preflight 62729aece95a8b960ebac04e

[CL 20043050 by tim doerries in ue5-main branch]
2022-05-04 12:05:55 -04:00
Devin Doucette
8dcdcbe09f DDC: Improved file system cache store maintenance
- Added deletion of empty directories.
- Applied the rate limit to directory scans.
- Reduced the default scan rate by a factor of 10.

#preflight 626c3a8b0f5f22f922511514
#rb Zousar.Shaker

[CL 19984889 by Devin Doucette in ue5-main branch]
2022-04-29 16:18:09 -04:00
paul chipchase
39df9e9755 The debug option for validating payloads after pushing them to storage is now a commandline & console option rather than a config file option.
#rb Per.Larsson
#rnx
#jira UE-148223
#preflight 6267c4e2853fdb6fddb20be3

- Remove the Core.ContentVirtualizationDebugOptions section from the ini files entirely.
- Remove the ::ApplyDebugSettingsFromConfigFiles method as we no longer load any debug values from the config files.

[CL 19923780 by paul chipchase in ue5-main branch]
2022-04-26 13:20:05 -04:00
Zousar Shaker
43d60acdf7 Rename Zen DDC graph nodes to avoid using the "Local" node name. Also removed one debug graph that isn't used.
#rb none
#rnx
#preflight skip,NotTestedByPreflight
#fyi devin.doucette, danny.couture

[CL 19911133 by Zousar Shaker in ue5-main branch]
2022-04-25 18:57:22 -04:00
paul chipchase
d9c1990291 The debug setting to run virtualization in single threaded mode is now access from the commandline via '-VA-SingleThreaded' or the console via 'VA.SingleThreaded' and no longer by the config file system.
#rb Per.Larsson
#jira UE-148223
#rnx
#preflight 62666fc90634d0904cca8756

- It was probably a bad idea to have debug settings like this applied from the config file as it would be fairly easy for people to accidently forget about them or submit them.
- The single threaded command can now be set via the commandline on start up using the '-VA-XXX' synctax that the system has started to adopt.
- Additionally it has been exposed as a console command so that it can be toggles on and off at runtime.
- Removed 'ForceSingleThreaded' from BaseEngine.ini and removed the parsing code for this from FVirtualizationManager::ApplyDebugSettingsFromConfigFiles.
- Removed 'FailPayloadPullOperations' from BaseEngine.ini, it hasn't been a valid setting for a while.
- Changed ConsoleCommands to ConsoleObjects and use it to store the base class IConsoleObject instead so it can contain console variables
- When pushing payloads we now only take the singlethreaded lock after checking if we have any backends/are enabled.

[CL 19900622 by paul chipchase in ue5-main branch]
2022-04-25 08:14:36 -04:00
Helge Mathee
1475be6205 RigVM: Change inheritance order - make UnitNode inherit from TemplateNode
Also implement a way to register external / auxiliary templates to the registry + unit test

#rb sara.schvartzman
#jira na
#preflight https://horde.devtools.epicgames.com/job/625847a0946114248dbaa7d9

[CL 19806894 by Helge Mathee in ue5-main branch]
2022-04-19 08:39:16 -04:00
douglasjose
a76d51fe56 PR #9092 - fix spelling of "continuous" in the Blueprint node "AI > Tasks > Move To Location or Actor" (and elsewhere). Thank you for the submission, douglasjose!
https://github.com/EpicGames/UnrealEngine/pull/9092


#jira UE-149320
#preflight 625da0d0b21bb49791c4a531
#rb lauren.barnes
#fyi martin.sevigny

[CL 19790872 by douglasjose in ue5-main branch]
2022-04-18 14:30:53 -04:00
dave jones2
0bbbdd9b30 UE-145287 - Deprecate Make Literal Double node
Instead of having two float-related literal nodes, we should only have one. The single-precision variant needs to be deprecated in favor of the double-precision one.

#rb benjamin.fox
#preflight 6255f7ee9741b87f66b6b069
#jira UE-145287

[CL 19757056 by dave jones2 in ue5-main branch]
2022-04-14 10:59:58 -04:00
dave jones2
654ce91c0e Build fix for Lyra: forgot a property redirect for a renamed parameter, which was caused by CL 19726070.
Additionally, added a missing 5.1 section for redirects.

#rb trivial
#jira none
#preflight none

[CL 19728645 by dave jones2 in ue5-main branch]
2022-04-12 16:43:05 -04:00