HWCPipe icon indicating copy to clipboard operation
HWCPipe copied to clipboard

Android graphics mem drops when HWCPipe is enabled

Open Hy9996 opened this issue 1 year ago • 3 comments

Hi there, we are using HwcPipe analyzing GPU performance of our game, and we found that on the MTK 9200 chip, a sudden GPU memory drop occurs after calling start_sampling(). This issue was not observed on other platforms, including the MTK 9300.

image

Our device: Vivo X90

Hy9996 avatar Feb 21 '24 08:02 Hy9996

What tool is this measured with? The Android Studio memory profiler?

We don't have a good explanation for why this happens - the context used for counter sampling is completely separate to the main application rendering context, so the shouldn't be any direct effect. The counter context itself obviously allocates a bit more memory for the counter buffers, but it should be minor.

solidpixel avatar Mar 05 '24 13:03 solidpixel

Yes, the picture posted above is from Android Studio, we also tried to collect the memory data directly from the java api("summary.graphics" in Debug.MemoryInfo), but shows the same result.

Hy9996 avatar Mar 07 '24 07:03 Hy9996

Thanks for confirming - I'll see if the GPU driver team have any ideas that can explain this one.

solidpixel avatar Mar 07 '24 09:03 solidpixel

Closing - old issue, we could not explain or reproduce on our devices.

solidpixel avatar Jun 12 '24 10:06 solidpixel