Commit Graph

761 Commits

Author SHA1 Message Date
Joe Kirchoff
afe8737c64 Suppress warnings in Windows SDK headers that weren't wrapped with THIRD_PARTY_INCLUDES_START
#rnx
#rb trivial
#preflight 63780330170bc34a938304d7

[CL 23208584 by Joe Kirchoff in ue5-main branch]
2022-11-18 18:09:50 -05:00
arne schober
a0eba3cff5 Add logging if tpause support is enabled
[REVIEW] [at]arne.schober
#jira UE-169644,
#localization none
#tests boot test

[CL 23091000 by arne schober in ue5-main branch]
2022-11-10 19:57:16 -05:00
Matt Peters
40185c7e66 WindowsPlatformMemory: Change the behavior of FGenericPlatformMemoryStats::GetMemoryPressureStatus on Windows; it now uses QueryMemoryResourceNotification instead of the generic implementation.
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]
2022-11-10 17:17:20 -05:00
Andriy Tylychko
ac9fc68ce4 removed duplicated include
#rb trivial
#preflight trivial

[CL 23051528 by Andriy Tylychko in ue5-main branch]
2022-11-09 08:10:08 -05:00
wouter dek
d6306dede8 Fix static analyzer warnings for clipboard copy and float casts
#rb trivial
#preflight none

[CL 22994720 by wouter dek in ue5-main branch]
2022-11-04 16:40:38 -04:00
ionut matasaru
1f6320aaa7 Fixed compile error when CPUPROFILERTRACE_ENABLED is 0.
Also sorted include headers in the two affected files.

#rb Catalin.Dragoiu
#preflight 636512d8d308b70e664e6360

[CL 22987404 by ionut matasaru in ue5-main branch]
2022-11-04 11:11:28 -04:00
wouter dek
75b2823550 Make Windows dialog boxes resizable, auto-fit to screen, implement scrollbar, make text selectable, use proper layout with DPI scale.
#rb patrick.boutot
#preflight 636505c9dc30a4ce967a6c8d

[CL 22986296 by wouter dek in ue5-main branch]
2022-11-04 10:10:22 -04:00
Matt Peters
5a0e6eb482 Fix implicit conversion warnings in VirtualAllocPageStatus.cpp.
#rb None, trivial
#rnx
#preflight None, nottestedbypreflight

[CL 22951289 by Matt Peters in ue5-main branch]
2022-11-03 08:37:52 -04:00
arne schober
b9405145fc Fix Tpause feature on certain mainboards where WaitPKG is returning true even though some virtualization setting in the Bios can disable Tpause.
[CL 22937935 by arne schober in ue5-main branch]
2022-11-02 23:07:03 -04:00
christopher waters
6839d7b40d D3D12 Support logging improvements
- 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]
2022-11-02 23:03:55 -04:00
Matt Peters
15d6588790 LLM: Add missing pragma once.
#rb None, trivial
#rnx
#preflight None, trivial

[CL 22930979 by Matt Peters in ue5-main branch]
2022-11-02 19:10:01 -04:00
Matt Peters
8f033ecf7b LLM: Fix static analysis and compile warnings.
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]
2022-11-02 19:05:44 -04:00
Matt Peters
8b82c5d515 Mimalloc changes to support LLM:
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]
2022-11-02 16:38:07 -04:00
mihnea balta
5d9583c49b Fix driver version checks not working for Nvidia GPUs.
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]
2022-11-01 16:01:40 -04:00
derek ehrman
ea3e51504b Temporary workaround for _tpause instruction failure on certain CPU architectures that are expected to support while Intel continues to investigate internally.
[FYI] Arne.Schober, Beth.Reid, Miles.Kaech

[CL 22803447 by derek ehrman in ue5-main branch]
2022-10-26 23:15:59 -04:00
ionut matasaru
8524c5ccdf Further improved the cpu timing scopes for module loading (now using cpu timing events with name of module as metadata).
#jira UE-167110
#rb Nick.Darnell
#fyi Bob.Tellez
#preflight 634d57085f008d633fa4812b

[CL 22718251 by ionut matasaru in ue5-main branch]
2022-10-24 03:40:16 -04:00
sarah noonan
1a993b9ada *Remove per-frame caching of stats from FPlaformMemory::GetStats and move caching into helper function.
*Update common callers of FPlaformMemory::GetStats to use the helper.
[REVIEW] [at]matt.peters

[CL 22596606 by sarah noonan in ue5-main branch]
2022-10-18 07:22:43 -04:00
evgenii babinets
528585a552 Merging with resolved conflicts on behalf of sarah.noonan. Original CL description:
*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]
2022-10-14 21:13:08 -04:00
nick darnell
32367ac805 Modules - Better stats around loading the actual DLLs with modules. It's just nice to know what's going on in those blank spots when doing module loading.
[REVIEW] [at]Bob.Tellez

[CL 22450256 by nick darnell in ue5-main branch]
2022-10-11 00:39:02 -04:00
matt peters
9e410a542c Fix corelimit parsing; it was being ignored without physicalcorelimit.
#jira UE-166112
#rb Andriy.Tylychko
#rnx
#preflight 633d79e9b8777e804c1a59ba
#lockdown mark.lintott

[CL 22364004 by matt peters in ue5-main branch]
2022-10-05 17:39:29 -04:00
Matt Peters
0dbba8f4ad CookMultiprocess and PlatformMisc: Add experimental -PhysicalCoreLimit commandline argument to allow setting a limit on physical cores without losing information about the number of logical cores per physical core. Move parsing of -corelimit and -physicalcorelimit into a single function in PlatformMisc.
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]
2022-09-30 15:43:24 -04:00
devin doucette
a96c036ccd Fixed a missing #include in WindowsPlatformMisc.cpp
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]
2022-09-09 16:34:31 -04:00
james doverspike
c0865adebe Don't pass nullptr into ExceptionPointers in MiniDumpWriteDump
[CL 21660306 by james doverspike in ue5-main branch]
2022-08-29 02:22:34 -04:00
henrik karlsson
10e4ca7687 [UE]
* 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]
2022-08-23 12:55:48 -04:00
chris constantinescu
0d0ad8e4c8 Remove faulty global GBlockLocalPrint, cleanup unused VS config
All platforms preflight 62f67851b66d5d9313f240b6
#rb Devin.Doucette
#preflight 62f67866bd746abb99c0be54

[CL 21362093 by chris constantinescu in ue5-main branch]
2022-08-12 15:45:37 -04:00