Commit Graph

116 Commits

Author SHA1 Message Date
yevgen abramov
a059db3e0d Remove ASIS outdated functionality
#jira UE-218151
#rb Chris.Babcock
#rnx

[CL 34448883 by yevgen abramov in ue5-main branch]
2024-06-17 21:00:57 -04:00
anderson ramos
ac973491b6 Enabling DynamicResolution on Android devices.
Fixing GPUTime reports using Swappy.
Setting the GPU time Fence value through a CVar, defaulted to 200ms.

[REVIEW] [at]Peter.Sauerbrei, [at]sebastian.werema, [at]Allan.Bentham, [at]denys.mentiei, [at]Chris.Babcock
#rb denys.mentiei, Dmitriy.Dyomin, Peter.Sauerbrei

[CL 34235232 by anderson ramos in ue5-main branch]
2024-06-10 09:40:29 -04:00
allan bentham
4f3bb67e87 Android window: Fix incorrect DPI adjustment on low DPI screens.
#rb Jack.Porter

[CL 34233963 by allan bentham in ue5-main branch]
2024-06-10 08:41:04 -04:00
jibb smart
2cbdf382a2 Motion input (gyro, accelerometer) with supported controllers and mobile platforms now use the same axes and units by default.
#jira UE-138975

In the past, we've been inconsistent with motion-related input on controllers and mobile platforms -- they've used different coordinate spaces and different units. This means users (us included) have had to manually convert accelerometer and gyro input for each platform on a per-game basis.

In 2022 we added the *.UnifyMotionSpace CVars, which let us get motion input in Unreal's coordinate space (left-handed, z-up, etc) when set to 1, or a similar but right-handed space when set to 2. Setting to non-zero also unifies the units across platforms, giving angular velocity in radians per second and acceleration in g-units.

For a better out-of-the-box experience, this change makes all of the *.UnifyMotionSpace CVars set to 1 by default.

[FYI] ben.hoffman
#tests PIE

[CL 33622860 by jibb smart in ue5-main branch]
2024-05-14 02:10:39 -04:00
ahmed siddique
24f42996ab Fix: for portraid mode stretching issue on some devices. and ASIS cleanup
#android
#jira UE-210348, UE-207291
#rb ahmed.siddique

[CL 32458983 by ahmed siddique in ue5-main branch]
2024-03-22 22:50:42 -04:00
ahmed siddique
3c41fc2ddc [Backout] - CL32410244
[FYI] ahmed.siddique
Original CL Desc
-----------------------------------------------------------------
New: Cleanup and simplify GameActivity.java.template changes to be less intrusive and support ASIS.
BugFix: Cleanup Android engine source logic to have minimal impact when not using ASIS.

#ushell-cherrypick of 32146848 by ahmed.siddique
#rb Chris.Babcock
#jira UE-210348, FORT-720545

[CL 32441502 by ahmed siddique in ue5-main branch]
2024-03-22 14:02:54 -04:00
ahmed siddique
b443cdcd68 New: Cleanup and simplify GameActivity.java.template changes to be less intrusive and support ASIS.
BugFix: Cleanup Android engine source logic to have minimal impact when not using ASIS.

#ushell-cherrypick of 32146848 by ahmed.siddique
#rb Chris.Babcock
#jira UE-210348, FORT-720545

[CL 32413941 by ahmed siddique in ue5-main branch]
2024-03-21 16:29:33 -04:00
ahmed siddique
ce849d8628 fix the EMDoneTrigger timeout failure in SuspendApp_EventThread()
fix issue introduced recently regarding swapping W/H in portrait mode.
#android
#rb Chris.Babcock
#jira UE-207291

[CL 31600524 by ahmed siddique in ue5-main branch]
2024-02-17 10:16:02 -05:00
ahmed siddique
9ea9e09275 Manual CherryPick from UEMain, Restore how app_cmd_init and restore is handled (remove ASIS STANDALONE ifdefs that are no longer needed)
#android
#rb chris.babcock, rafa.lecina

[CL 31458917 by ahmed siddique in ue5-main branch]
2024-02-13 21:41:13 -05:00
ahmed siddique
42dbc35bb1 Restore how app_cmd_init and restore is handled (remove ASIS STANDALONE ifdefs that are no longer needed)
#android
#jira UE-205628

[CL 31372278 by ahmed siddique in ue5-main branch]
2024-02-11 05:29:50 -05:00
ahmed siddique
79fccbac98 Refactoring onCreate for GameActivity and switching nativemain to use AndroidMain, also updating ASISStub to properly handle activity change and theme change.
Also added gradle build files for ASISStub to make it easier to use the sample android app to test Android Single Instance
Also fixes for Jira: UE-205628
Jira UEHMI-316
#android
#rb Chris.Babcock, matthew.sorrels
#jira UE-205628

[CL 31101181 by ahmed siddique in ue5-main branch]
2024-02-01 16:04:43 -05:00
ahmed siddique
2af857e2c1 Android SingleInstanceService fixes for crash and activity switching.Also updated ASISStub and output ASISProject
#rb Chris.Babcock, matthew.sorrels
#android

[CL 31009144 by ahmed siddique in ue5-main branch]
2024-01-30 11:45:19 -05:00
ahmed siddique
d70352cd9b Android SingleInstance Service
Tested on Android with Lyra and also preflight checks.

#android
#rb chris.babcock

[CL 30244258 by ahmed siddique in ue5-main branch]
2023-12-11 13:59:52 -05:00
wei liu
ef3db73069 Fix the Safezone updated incorrectly issue, the SafeFrameChangeEvent needs to be triggered after the orientation changed.
Fix the Gyro broken issue.


#rb Allan.Bentham, Chris.Babcock

[CL 27434423 by wei liu in ue5-main branch]
2023-08-28 22:30:51 -04:00
nicolas potvin
1aeafcc15d Fix for [Mobile] [Luna Controller] The left and right triggers are not functional
-> Added a name check for Luna controllers, to enable using the threshold to consider pulling triggers as "button presses".
   -> Added controller info to GameActivity

[REVIEW] [at]Mathieu.Roy [at]Ghislain.Theriault [at]Bernard.Lambert [at]Chris.Babcock

#rnx

[CL 26771341 by nicolas potvin in ue5-main branch]
2023-08-02 10:21:05 -04:00
allan bentham
dbe9022ae5 Add alternative method to determine the native screen DPI when calculating the scale factor required to achieve the requested Android.WindowDPI.
#rb chris.babcock
[REVIEW]

[CL 26746178 by allan bentham in ue5-main branch]
2023-08-01 13:49:32 -04:00
wei liu
b9cd7267df Fix the screen resolution (on mobile) stretched issue when casted to a larger screen with a USBC to HDMI cable.
#b Chris.Babcock, Allan.Bentham

[CL 26602466 by wei liu in ue5-main branch]
2023-07-26 06:46:11 -04:00
maxime zobenbueler
af38cac466 Changed how configrules safezones values are evaluated and applied.
#tests Tested on the following affected devices Pixel 3 XL, Nokia 8, OnePlus 7, OnePlus 8T, Samsung S8+, Samsung S10


[REVIEW] [at]Fourat.Jellouli [at]Nicolas.Potvin
#rb Allan.Bentham Michel.Champoux
#rnx

[CL 26024170 by maxime zobenbueler in ue5-main branch]
2023-06-15 16:10:55 -04:00
wei liu
c53c069cf8 Tentative fix for android safe zone.
#rb Chris.Babcock
#preflight 64547812d02ea5289fa6a8a3

[CL 25349049 by wei liu in ue5-main branch]
2023-05-05 01:47:29 -04:00
christopher fiala
57129aa917 Fix packaged Quest loading hang due to recent changes in FAndroidWindow::GetScreenRect and the OpenXR depth swapchain view rect initialization.
The FAndroidWindow::GetScreenRect change left us with a (0,0) resolution when using Quest, so the HMD wouldn't even try to render.
The depth swapchain changes cause the depth swapchain ViewRect to be uninitialized, resulting in an XR_ERROR_SWAPCHAIN_RECT_INVALID error.

#jira UE-181076
#rb robert.srinivasiah
#preflight 6430871cdf6c5c78fc2bb08d

[CL 24970602 by christopher fiala in ue5-main branch]
2023-04-07 17:25:37 -04:00
jack porter
6fc650c101 Update Swappy to the latest from https://android.googlesource.com/platform/frameworks/opt/gamesdk, modified to always use the Java DisplayManager and refresh rate selection
Enable Swappy on Android by default
Fixed: Swappy VK initialization which was missing a WindowHandle
Remove old GoogleGameSDK files that are no longer needed
Removed Java version of MemAdvisor
#rb Dmitriy.Dyomin
#jira UE-181102
#preflight 64302326285518071799c243

[CL 24965637 by jack porter in ue5-main branch]
2023-04-07 12:06:20 -04:00
allan bentham
af7e41dca5 Fix assert when Android 3d scene DPI is clamped by Android.3DSceneMinDPI.
- set secondary screen percent cvar from GT only.
#rb none
#preflight 6421d793c42c7fd1cb9708ec

[CL 24811082 by allan bentham in ue5-main branch]
2023-03-27 18:31:08 -04:00
allan bentham
2128af84cf Fix downstream cis
#rb none

[CL 24672190 by allan bentham in ue5-main branch]
2023-03-16 11:48:25 -04:00
allan bentham
e9c3559bf2 Fix downstream cis
#rb none

[CL 24672114 by allan bentham in ue5-main branch]
2023-03-16 11:45:30 -04:00
allan bentham
c0e8a0cb55 Android DPI window resolution selection cvars
- Android.WindowDPI, set a DPI to achieve when calculating the app's screen resolution.
 - Android.3DSceneMaxDesiredPixelCount, set a target pixel count for the 3D scene color resolution.
 - Android.3DSceneMinDPI, set a forced minimum DPI for the 3D scene color resolution, useful to ensure a minimum resolution quality on low DPI devices.
#rb Chris.babcock

[CL 24671989 by allan bentham in ue5-main branch]
2023-03-16 11:41:14 -04:00