Commit Graph

330 Commits

Author SHA1 Message Date
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
henrik karlsson
432c3ce257 Fixed non-unity/pch errors
#rb none
#jira none
#preflight skipped

[CL 22991080 by henrik karlsson in ue5-main branch]
2022-11-04 13:55:45 -04:00
Rafa Lecina
aabf447830 Update Facebook SDK on Android to 15.0.1
Included some fixes after testing login both with and without the Facebook app installed

#jira UE-162597
#review @Bertrand.Carre, @Chris.Varnsverry, @Chris.Babcock
#preflight 634e6e905f008d633ff59feb

[CL 22686247 by Rafa Lecina in ue5-main branch]
2022-10-21 04:51:39 -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
allan bentham
91dd133351 Fix nopch build fail
#rb none

[CL 22139925 by allan bentham in ue5-main branch]
2022-09-22 13:50:48 -04:00
allan bentham
6fc8f7f1b9 Put critical section around android manifest file access.
#rb chris.babcock, jack.porter

[CL 22110093 by allan bentham in ue5-main branch]
2022-09-21 07:32:10 -04:00
Andriy Tylychko
6b7a075ba7 FCoreDelegates cleanup: removed delegate macros
#preflight 632072f947741a7dbd03e2c1
#rb steve.robb

[CL 21981540 by Andriy Tylychko in ue5-main branch]
2022-09-13 09:08:26 -04:00
frederic brachfogel
7ddfe3c341 fix for Certain devices capped at lower FPS than supposed
[REVIEW] fourat.jellouli chris.babcock pete.sauerbrei


#ROBOMERGE-OWNER: frederic.brachfogel
#ROBOMERGE-AUTHOR: frederic.brachfogel
#ROBOMERGE-SOURCE: CL 21427202 via CL 21429126 via CL 21429286 via CL 21431383 via CL 21433736 via CL 21434075 via CL 21434129
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v981-21435820)

[CL 21436494 by frederic brachfogel in ue5-main branch]
2022-08-17 20:34:10 -04:00
bernard lambert
6a95e5db6d - Added functions to get and set allowed screen orientations through the PlatformMisc class.
- Implemented logic for setting allowed screen orientations on iOS.
- Added possibility to set allowed screen orientation to SCREEN_ORIENTATION_SENSOR  on Android so that the screen orientation can be unlocked to adjust itself according to the sensor.
- Exposed PortraitSensor, LandscapeSensor and FullSensor screen orientations in blueprint library.

#RB Chris.Babcock Adam.Kinge

#ROBOMERGE-AUTHOR: bernard.lambert
#ROBOMERGE-SOURCE: CL 21219114 via CL 21219129 via CL 21219137 via CL 21219139 via CL 21219150
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21224334 by bernard lambert in ue5-main branch]
2022-07-22 13:19:40 -04:00
nat parkinson
606862353e [Backout] - CL21196825
[FYI] bernard.lambert
Original CL Desc
-----------------------------------------------------------------
- Added functions to get and set allowed screen orientations through the PlatformMisc class.
- Implemented logic for setting allowed screen orientations on iOS.
- Added possibility to set allowed screen orientation to SCREEN_ORIENTATION_SENSOR  on Android so that the screen orientation can be unlocked to adjust itself according to the sensor.
- Exposed PortraitSensor, LandscapeSensor and FullSensor screen orientations in blueprint library.


#ROBOMERGE-AUTHOR: nat.parkinson
#ROBOMERGE-SOURCE: CL 21197038 via CL 21197050 via CL 21197054 via CL 21197064 via CL 21197075
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21197499 by nat parkinson in ue5-main branch]
2022-07-20 23:51:13 -04:00
bernard lambert
f595573ef0 - Added functions to get and set allowed screen orientations through the PlatformMisc class.
- Implemented logic for setting allowed screen orientations on iOS.
- Added possibility to set allowed screen orientation to SCREEN_ORIENTATION_SENSOR  on Android so that the screen orientation can be unlocked to adjust itself according to the sensor.
- Exposed PortraitSensor, LandscapeSensor and FullSensor screen orientations in blueprint library.


#ROBOMERGE-AUTHOR: bernard.lambert
#ROBOMERGE-SOURCE: CL 21196825 via CL 21196834 via CL 21196849 via CL 21196861 via CL 21196876
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21197495 by bernard lambert in ue5-main branch]
2022-07-20 23:51:04 -04:00
frederic brachfogel
1ed46c360a Implementation for FAndroidMisc::GetMaxRefreshRate
[REVIEW] francois.guimond fourat.jellouli allan.bentham


#ROBOMERGE-AUTHOR: frederic.brachfogel
#ROBOMERGE-SOURCE: CL 21165684 via CL 21166857 via CL 21172666 via CL 21174417 via CL 21180324
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21192306 by frederic brachfogel in ue5-main branch]
2022-07-20 18:28:06 -04:00
Wojciech Krywult
208cd6c891 Modular builds: Memory: Tweaked the system initialization to make it work with modular builds on some platforms.
On some consoles we load dynamic modules very early during the process initialization and rely on the allocators being ready. It happens even before we have the opportunity to call FPlatformMemory::Init() explicitly, so need to have it called on-demand from FMemory_GCreateMalloc_ThreadUnsafe.

Updated FXXXPlatformMemory::Init on all supported platforms to handle multiple Init() calls gracefully. We do this to free our common code from having to explicitly check if the system has been initialized.

#rb jeff.newquist
#preflight 62a9ebf8634e82e5d1e849de
#rnx

[CL 20983808 by Wojciech Krywult in ue5-main branch]
2022-07-07 10:28:55 -04:00
dmytro vovk
be655d6f1d Improve CPU thermal sensor detection on Android
#rb Allan.Bentham

#ROBOMERGE-AUTHOR: dmytro.vovk
#ROBOMERGE-SOURCE: CL 20964831 via CL 20964835 via CL 20964843
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 20965540 by dmytro vovk in ue5-main branch]
2022-07-06 09:05:34 -04:00
allan bentham
cf0df27912 Android - Hang detector can be toggled via configrules.
Android hang detector is disabled if no configrule exists.
#rb
[REVIEW]

#ROBOMERGE-AUTHOR: allan.bentham
#ROBOMERGE-SOURCE: CL 20915970 via CL 20916880 via CL 20916899 via CL 20916905 via CL 20916914
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v971-20777995)

[CL 20919462 by allan bentham in ue5-main branch]
2022-07-01 15:31:15 -04:00
Wei Liu
06c9a5c84e 1. Remove all flip-y completely and only flip y at the end on androidl GL with a native window api, no need to handle flip-y on high level.
2. Supports CustomDepth in translucency pass on mobile LDR.

#jira none

#rb Dmitriy.Dyomin
#preflight 62be9894d94b57687c68aed1

[CL 20911586 by Wei Liu in ue5-main branch]
2022-07-01 03:38:17 -04:00
allan bentham
4587dbb514 Android compatibility: add an allowlist of cvars which can be set via configrules variables.
#rb chris.babcock
#preflight 62bdc8981c0b7587971edcb4

#ROBOMERGE-AUTHOR: allan.bentham
#ROBOMERGE-SOURCE: CL 20898577 via CL 20899041 via CL 20899526 via CL 20899823
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v971-20777995)

[CL 20901792 by allan bentham in ue5-main branch]
2022-06-30 15:44:52 -04:00
dmytro vovk
a883231dd7 Fixed compilation for Android
#rb trivial

#ROBOMERGE-AUTHOR: dmytro.vovk
#ROBOMERGE-SOURCE: CL 20795800 via CL 20796301
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v971-20777995)

[CL 20798139 by dmytro vovk in ue5-main branch]
2022-06-23 14:10:08 -04:00
steve robb
28609e6f3c Removal of TEXT used in static_asserts (redundant in ANSI/wide modes, broken in UTF-8 mode).
#rb james.hopkin
#jira UE-132142
#preflight 62a87ef40b7bda795a7dfff0

#ROBOMERGE-OWNER: steve.robb
#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 20647361 via CL 20647632 via CL 20647654
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v955-20579017)

[CL 20650895 by steve robb in ue5-main branch]
2022-06-14 12:11:45 -04:00
dmytro vovk
c17efd5dbe Refactored all threads callstack capturing on Android with an aim to reduce timeouts
#rb Allan.Bentham

#ROBOMERGE-AUTHOR: dmytro.vovk
#ROBOMERGE-SOURCE: CL 20553950 via CL 20553965 via CL 20553973 via CL 20553986 via CL 20553992
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v954-20466795)

[CL 20559500 by dmytro vovk in ue5-main branch]
2022-06-08 13:18:19 -04:00
william ewen
83fea46609 Andriod: Enabling Logging in PGO builds
#rb Allan.Bentham

#ROBOMERGE-AUTHOR: william.ewen
#ROBOMERGE-SOURCE: CL 20351243 via CL 20351256 via CL 20351482 via CL 20351584
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20353631 by william ewen in ue5-main branch]
2022-05-24 15:20:19 -04:00
allan bentham
b2000e5922 Added optional ANDROID_USE_NICE_VALUE_THREADPRIORITY define for FRunnableThreadAndroid::SetThreadPriority.
default off.
Enabling it sets the thread's priority via nice values.
Enabling ANDROID_USE_NICE_VALUE_THREADPRIORITY also sets Android pool threads to use all cores.
#rb chris.babcock,dmytro.vovk
#preflight 6246d6cc637925b5d3db3c54

#ROBOMERGE-AUTHOR: allan.bentham
#ROBOMERGE-SOURCE: CL 19586571 via CL 19586632 via CL 19586649 via CL 19586654
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v938-19570697)

[CL 19586926 by allan bentham in ue5-main branch]
2022-04-01 08:42:08 -04:00
Devin Doucette
292008ea35 Logging: Replaced GLog->PanicFlush() with GLog->Panic()
Panic allows only one thread to become the panic thread. In panic mode, logs are only sent to panic-safe output devices. Each call to Panic flushes buffered logs to panic-safe output devices, and flushes panic-safe output devices.

#jira UE-147152
#preflight 62424814292f228e09d8a612
#rb Zousar.Shaker
#fyi Brandon.Schaefer

[CL 19545093 by Devin Doucette in ue5-main branch]
2022-03-29 13:31:48 -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