WorldWindAndroid
WorldWindAndroid copied to clipboard
Enormous graphical memory allocation when drawing surface shapes on Mali GPU
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
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
Galaxy Tab Active3 Mali G72 M18 Android 11 Galaxy A53 Mali G63
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.