The UMP consent popup has terrible performance on Android due to hardware acceleration being disabled
See original GitHub issue- Unity version: 2022.3.3f1
- Google Mobile Ads Unity plugin version: 8.3.0
- Platform: Android
- Platform OS version: Android 12
- Any specific devices issue occurs on: All, but particularly slow on a Samsung S21
- Mediation ad networks used, and their versions: None
Unity forces android:hardwareAccelerated
to be set to false
on the main player activity, causing the UMP popup to be extremely slow on some devices, as bad as 1-2 FPS on a Samsung S21, after scrolling for a few seconds. Likely because the UMP SDK uses a WebView to display the popup, which has notoriously bad performance without hardware acceleration.
Setting hardware acceleration to true
(with a post-process script) makes the consent popup smooth and fixes the problem. But this is a very bad workaround as setting it to true
can cause huge performance drops in-game.
Proposed solution by Unity is to display the WebView in a separate activity that is hardware accelerated. Is this something you can implement? As, currently, it makes the UMP SDK for Unity unusable on some devices.
Issue Analytics
- State:
- Created 2 months ago
- Reactions:4
- Comments:5 (2 by maintainers)
@vavakadopano The issue was fixed in the latest AdMob release for Android, but as stated here (#2853), the Unity release will be somewhere in this quarter.
Fix included with 8.5
Please reopen if you run into this issue.