Cooker: In MPCook Collect garbage based on the Operating System's MemoryPressure event, so that Standby memory does not cause spurious garbage collection.
In all cook modes, tweak the output during garbage collection to have less duplicate information.
In all cook modes, add a cooldown for GC when garbage collection is not impactful.
#rn Minor, Core
#rb Zousar.Shaker, Danny.Couture
#preflight 636d69761c14fe4505163289
[CL 23088442 by Matt Peters in ue5-main branch]
Also sorted include headers in the two affected files.
#rb Catalin.Dragoiu
#preflight 636512d8d308b70e664e6360
[CL 22987404 by ionut matasaru in ue5-main branch]
- Log out more DXGI Adapter information when enumerating adapters in D3D12RHI.
- Log out more SM6 relevant information when enumerating adapters in D3D12RHI.
- Log out driver versions when enumerating adapters in D3D12RHI. Had to silence all the log output from FPlatformMisc::GetGPUDriverInfo to make this usable.
- Adding more logging when D3D12 reports it's not supported.
- Adding more logging to WindowsDynamicRHI so it's easier to track what a system did and didn't support.
- Adding -ForceDisableSM6 command line flag to force D3D12RHI to think it doesn't support ERHIFeatureLevel::SM6.
- Adding -ForceZeroAdapters command line flag to simulate when D3D12RHI can't find any valid adapters.
#rb mihnea.balta
#preflight 6362a1c9522c8f7ab34253ed
[CL 22937800 by christopher waters in ue5-main branch]
IncludeTool warning: we can not create a duplicate definition of PLATFORM_USES_FIXED_GMalloc_CLASS because some platforms are setting it in headers rather than c++.
Change the c-language includes of LowLevelMemTrackerDefines to be predicated only on LLM_ENABLED_IN_CONFIG to avoid the need for the definition of PLATFORM_USES_FIXED_GMalloc_CLASS.
Fix implicit conversion warnings in VirtualAllocPageStatus.cpp.
#rb None, fixing build break
#rnx
#review Danny.Couture
#preflight 6362f378522c8f7ab35ccee0
[CL 22930788 by Matt Peters in ue5-main branch]
Define MI_USE_EXTERNAL_ALLOCATORS and override mimalloc's call to VirtualAlloc/VirtualFree to record the amount committed/decommitted to LLM.
#rb Danny.Couture
#rn LLM, Minor
#preflight 6362cb579160784fc327dbc3
[CL 22926014 by Matt Peters in ue5-main branch]
The new driver detection method (using the setup API) did not set the UserDriverVersion in the same way as the other methods, so the function which extracted the number used for comparison didn't work correctly.
Also removed a bogus cvar from BaseEngine.ini while we're at it (r.DetectAndWarnOfBadDrivers has been removed from the code years ago).
#jira UE-168877
#rnx
#lockdown Michal.Valient
#preflight https://horde.devtools.epicgames.com/job/6361413fce68f7cbb68dd599
#rb Chris.Waters
[CL 22890134 by mihnea balta in ue5-main branch]
*Make FPlatformMemory::GetStats cache memory stats per frame to prevent multiple costly platform calls per frame ( by default, has option to request non-cached values ).
*Update some calls to FPlatformMemory::GetStats to specifically request non-cached values.
[REVIEW] [at]evgenii.babinets [at]andrew.ladenberger
#preflight 634a04c0907f4749392d75d0
[CL 22545788 by evgenii babinets in ue5-main branch]
Change ShaderCompiler OnMachineResourcesChanged to allow specifying the number of logical cores and physicalcores rather than reading it from the (immutable-per-process) FPlatformMisc::NumberOfCores.
Change the CookDirector to use physicalcorelimit and OnMachineResourcesChanged.
#rb Andriy.Tylychko
#rnx
#preflight 63372233f76de2d4d5bb76b8
[CL 22279026 by Matt Peters in ue5-main branch]
Symbols from psapi.h are needed even when FORCE_ANSI_ALLOCATOR=1.
#jira UE-163289
#preflight 631b8614ec45fbf3d783b4de
#rb none
#rnx
[CL 21927559 by devin doucette in ue5-main branch]
* Added TrackedActivity scopes for I/O. This tracking is enabled in non-shipping builds and make it possible to see I/O in windows console. Code is hidden behind define UE_ENABLE_TRACKED_IO
#rb Devin.Doucette
#preflight 6303d5da5a5d4e4624ea0d66
[CL 21511662 by henrik karlsson in ue5-main branch]
All platforms preflight 62f67851b66d5d9313f240b6
#rb Devin.Doucette
#preflight 62f67866bd746abb99c0be54
[CL 21362093 by chris constantinescu in ue5-main branch]