Commit Graph

1088 Commits

Author SHA1 Message Date
Devin Doucette
3e06559dcf IoDispatcher: Always initialize IoDispatcher
Only return true from FIoDispatcher::IsInitialized() when the script objects chunk exists to keep its behavior consistent. Later, this function will be deprecated in favor of a function on IAsyncPackageLoader.

#rb Zousar.Shaker
#fyi CarlMagnus.Nordin
#preflight 614541e1bf494a0001bd76bc

[CL 17570905 by Devin Doucette in ue5-main branch]
2021-09-20 10:59:45 -04:00
axel riffard
4fb17b2389 Display the trust popup on iOS and tvOS when using an untrusted device
#jira UE-114776
#rb jack.porter
#preflight 61444c5f4778fa00018cccb7

[CL 17549185 by axel riffard in ue5-main branch]
2021-09-17 04:56:41 -04:00
PJ Kack
0d53e5084b Delete obsolete and unused CookedIterativeFile module
#rb per.larsson
#rnx
#preflight 6142fe35568b3a000112c145

[CL 17535748 by PJ Kack in ue5-main branch]
2021-09-16 05:25:42 -04:00
aurel cordonnier
e3f7878676 Merge from Release-Engine-Test @ 17462327 to UE5/Main
This represents UE4/Main @17430120 and Dev-PerfTest @17437669

[CL 17463546 by aurel cordonnier in ue5-main branch]
2021-09-08 16:42:26 -04:00
geoff evans
f29dce2cf3 FApp::HasFocus() API to unify checking focus state
This is a defensive change to more uniformly gate conditions of various pathways that want to "nice" CPU consumption when the application is not the foreground application (doesn't "Have Focus"). In benchmarking scenarios we don't want a focus-grabbing application to cause change in behavior while taking performance measurements. This could be in local workstation benchmarking where other foreground apps will naturally come to the front or in data center build where antics that might otherwise be completely unknowable could impact benchmark measurements.

This change was formulated after finding some "nice" CPU conditionals that were instrumented, but not all of them are. This change aims to prevent having to instrument, profile, and mitigate each condition separately.

#rnx
#jira none
#rb francis.hurteau, brandon.schaefer
#preflight 611ec9248ff55400018d5018

[CL 17463345 by geoff evans in ue5-main branch]
2021-09-08 16:29:44 -04:00
nuno leiria
c495df3116 Set the project name at an earlier point.
This fixes blueprint projects not booting on platforms that set LLM_AUTO_ENABLE=1.

This was the sequence of events that led to the problem:
FLowLevelMemTracker::Get().ProcessCommandLine(CmdLine) triggers a call to FGenericPlatformMisc::ProjectDir() too early, before FPaths::IsProjectFilePathSet(). ProjectDir() ends up as ../../../engine/ instead of e.g. ../../../tp_firstperson/. This only happens for blueprint projects because code projects set GInternalProjectName and ProjectDir() follows a different path if FApp::HasProjectName().
In contrast, platforms that set LLM_AUTO_ENABLE=0 early out from the FLowLevelMemTracker function call so they don't trigger the problem.

This leads to ../../../*engine*/Content/Paks/ being created, instead of e.g ../../../*tp_firstperson*/Content/Paks/, making the engine believe there are no paks and fall back to reading from a normal file.

#jira UE-122150
#rb josh.adams

[CL 17316912 by nuno leiria in ue5-main branch]
2021-08-26 09:25:39 -04:00
Rolando Caloca
d64b146cb2 UE5 - Remove platform
#rb Steve.Smith
#fyi Jules.Blok, Ryan.Durand, Ben.Marsh

[CL 17295935 by Rolando Caloca in ue5-main branch]
2021-08-24 19:27:11 -04:00
zach bethel
af155e6475 Fixed CSV profiler build break.
#rb none

[CL 17183320 by zach bethel in ue5-main branch]
2021-08-16 18:09:53 -04:00
zach bethel
a989d54450 Adding new CSV stat to record unaccounted render thread time outside of the scene render function.
#rb ben.woodhouse

[CL 17182521 by zach bethel in ue5-main branch]
2021-08-16 17:31:23 -04:00
Andriy Tylychko
2a295eb685 deprecated FTicker and family and replaced by thread-safe FTSTicker
#jira UE-120090
#rb francis.hurteau

[CL 17176325 by Andriy Tylychko in ue5-main branch]
2021-08-16 11:05:18 -04:00
mihnea balta
ce9537493d Fix typo which broke the iOS build.
#jira none
#rnx
#rb trivial

[CL 17132003 by mihnea balta in ue5-main branch]
2021-08-11 03:53:01 -04:00
mihnea balta
3612d0737d Fixing lots of places which created USTRUCTs with operator new and passed them to FMessageEndpoint::Publish or Send, wich crashes when ASAN is used.
The messaging system destroys these objects with FMemory::Free, which has different alignment logic than operator new when ASAN is used, resulting in a crash.

#jira none
#rnx
#rb Jerome.Delattre, Matt.Peters

[CL 17116813 by mihnea balta in ue5-main branch]
2021-08-10 10:56:07 -04:00
Devin Doucette
87792e1b5e DDC: Split the new API from the old API
The new API uses exported functions and cannot be included with the old API without compile errors in existing code that has an include-only dependency on DDC.

#rb Zousar.Shaker
#rnx
#preflight 610c01e3aeb05700011dc5ab

[CL 17071263 by Devin Doucette in ue5-main branch]
2021-08-05 13:11:50 -04:00
aurel cordonnier
dc856801cd Merge from Release-Engine-Test @ 17059716 to UE5/Main
This represents UE4/Main @ 17030256 and Dev-PerfTest @ 17029914

[CL 17060422 by aurel cordonnier in ue5-main branch]
2021-08-04 17:46:20 -04:00
charles bloom
3732a07b17 OodleDataCompression fixing namespace convention
#rb none

[CL 16912164 by charles bloom in ue5-main branch]
2021-07-21 14:04:15 -04:00
Dan Phillips
1228da8dd9 Bug fix for crash on exit, IODispatcher needs to be shutdown after the shadercodelibrary
#review-16898532
#jira none

[CL 16900219 by Dan Phillips in ue5-main branch]
2021-07-20 15:07:58 -04:00
charles bloom
7906036da8 OodleDataCompression in Core
All games now use Engine Oodle for runtime decompression
Oodle in Engine can load an older Oodle DLL for encoding packages to keep making the same binary data

#rb dan.thompson,devin.doucette

[CL 16879404 by charles bloom in ue5-main branch]
2021-07-18 13:26:14 -04:00
Dmitriy Dyomin
32beb82ee0 Fixed case where editor starting in a mobile preview will crash failing to find auto-generated shaders
#fyi arciel.rekman

[CL 16846764 by Dmitriy Dyomin in ue5-main branch]
2021-07-14 03:06:31 -04:00
paul chipchase
a31538ddee Make sure that the FVirtualizationManager is created on the game thread as some of it's dependancies now require being created on the game thread.
- This will be cleaned up further when FVirtualizationManager is moved into the Virtualization module and we do a pass on the initialization.

#rb Per.Larsson
#rnx
#preflight 60d57e67925f1400012be5af

[CL 16783910 by paul chipchase in ue5-main branch]
2021-06-25 11:47:08 -04:00
Matt Peters
07a0af0f5b BulkDataRegistry
Updating FVirtualizedUntypedBulkData and textures to use the BulkDataRegistry.
BulkDataRegistry: Add get/put accessors for the cached BulkDataList of packages.
EditorDomain: Move ClassDigests into a global variable that can be shared with BulkDataRegistry.
EditorDomain: Improve performance of GetFileSize by fetching metadata only.
Tickable Cook Objects, for systems used by the cooker that need to be ticked.
Implementation of the the BulkDataRegistry that uses the DDC cache for persistent storage of the BulkDataList.

#rb Devin.Doucette, Paul.Chipchase, Zousar.Shaker

[CL 16768772 by Matt Peters in ue5-main branch]
2021-06-24 00:50:53 -04:00
aurel cordonnier
d17d20ca36 Merge from Release-Engine-Test @ 16758890 to UE5/Main
This represents UE4/Main @ 16738161 and Dev-PerfTest @ 16737719 (and Release-17.00 @ 16658211)

[CL 16763350 by aurel cordonnier in ue5-main branch]
2021-06-23 17:51:32 -04:00
Per Larsson
c3b3499a99 Remove dependency to CookOnTheFly module from CoreUObject and Launch when compiling programs
#rb Paul.Chipchase

[CL 16725292 by Per Larsson in ue5-main branch]
2021-06-21 02:42:49 -04:00
Matt Hoffman
afdbbebef0 Matinee: Misc cleanup (code comment changes, etc.)
#jira UE-105313
#rb Trivial
#preflight 60cb86666092ba00014e413d

[CL 16708963 by Matt Hoffman in ue5-main branch]
2021-06-17 14:56:54 -04:00
Martin Ridgers
673f7bace4 Reinstate auto-connect for the editor proper. This was previously disabled if the editor was being run as it would interfer with plugins that would create their own store and enable tracing to it.
#rb jb
#rnx

[CL 16704124 by Martin Ridgers in ue5-main branch]
2021-06-17 09:54:58 -04:00
Zousar Shaker
cf116088ae Integrating //UE5/Dev-Cooker @ 16678003 to //UE5/Main (Zousar.Shaker-YEG-0943-Quaternary)
Non-DevIteration_ShooterGame

[CL 16678907 by Zousar Shaker in ue5-main branch]
2021-06-15 16:36:57 -04:00