WorldWindAndroid icon indicating copy to clipboard operation
WorldWindAndroid copied to clipboard

Enormous graphical memory allocation when drawing surface shapes on Mali GPU

Open EMaksymenko opened this issue 1 year ago • 3 comments

Description

Enormous graphical memory allocation when drawing surface shapes on Mali GPU. Each frame GPU allocates new memory for resulting texture and it generated 2GB of VRAM during 5 sec.

Steps to Reproduce

Issue can be easily reproduced on any example with surface shapes on textures.

Expected behavior: It should free allocated graphical memory on GPU friver level

Actual behavior: It creates a copy of texture on each frame and generates 1Gb VRAM leak per second.

Reproduces how often: Always

Operating System and Version

Android 11 - Android 13

Additional Information

This issue happened only on Mali GPU photo_2023-08-06_13-50-10

EMaksymenko avatar Aug 06 '23 10:08 EMaksymenko

Please give details about hardware (device/model) and software version (kernel, Android OS versions) Could be related to the same Mali bug described here? https://community.arm.com/support-forums/f/graphics-gaming-and-vr-forum/5469/glteximage2d-memory-leak

nicolasvila avatar Aug 07 '23 13:08 nicolasvila

Galaxy Tab Active3 Mali G72 M18 Android 11 Galaxy A53 Mali G63

EMaksymenko avatar Aug 07 '23 13:08 EMaksymenko

This issue is somehow related with the driver. Below are the hardware info from Galaxy Tab Active3 on Android 13 and Galaxy Note 9 Android 10.

First one has an issue, but second one is not.

I have created topic on ARM forum, but I think some workaround should be done on engine level.

signal-2023-08-08-08-07-11-929 Screenshot_20230807-193311_CPU-Z

EMaksymenko avatar Aug 08 '23 07:08 EMaksymenko