The memory bandwidth of texture data can be a potential bottleneck for your app's GPU performance. There are some counters in an AGI System Profile that can help diagnose texture memory bandwidth issues.
Qualcomm Adreno counters
On devices with Qualcomm Adreno GPUs, some notable counters include:
|Texture Memory Read BW (Bytes/Second)||Bandwidth of texture data read from external memory.|
|% Texture L1 Miss||L1 cache miss from fetching textures.|
|% Non-Base Level Textures||Percentage of texture fetches that are mipmaps.|
|% Anisotropic Filtered||Percentage of texels that are anisotropic filtered.|
ARM Mali counters
On devices with ARM Mali GPUs, some notable counters include:
|Texture read beats from external memory||Data beats read from external memory by the texture unit, averaged over the shader cores.|
|Texture read beats from L2 cache||Data beats read from the L2 cache by the texture unit, averaged over the shader cores.|
To calculate the overall bandwidth from average read beats, the counter value is multiplied by the bus width (typically 16 bytes) and by the total number of shader cores.
To measure the behavior of these counters, measure the average and peak bandwidth over the course of a single GPU frame, and then delineate with a contiguous block of GPU Utilization.
We recommend an average texture memory read bandwidth of no higher than 1 GBps, and a peak bandwidth no higher than 3 MBps. Texture L1 cache miss should also be no higher than 10%. Higher values for bandwidth or L1 cache may be indicators of deeper texture issues, including:
- Textures are too large: Large textures bloat your package size, and are more expensive and may reduce cache efficiency.
- Textures are uncompressed: All Android phones support some types of texture compression, whether it’s ETC1 or ASTC. Textures should be compressed to reduce package size and reduce texture bandwidth.
- Other: A variety of other texture concerns should be considered, including power-of-2 textures, mipmapping, anisotropic filtering, and more. Some of these may be observed from the System Profile as discussed below, whereas others may require deeper investigation.
For three-dimensional games with a free camera, texture assets should use mipmapping, such that objects at a distance from the camera will have reduced memory bandwidth, better texture cache efficiency, and better image quality. For devices using Qualcomm Adreno GPUs, % Non-Base Level Textures counters lower than 10% on average may indicate inadequate mipmapping.
Another consideration is the use of anisotropic filtering, which is described by the % Anisotropic Filtered counter for Qualcomm Adreno GPUs for the proportion of texels that are anisotropic filtered. While this may improve visual quality for some games, it can also be very expensive, and its use should be weighed against the GPU performance cost.
The best way to diagnose more specific problems is through taking a frame profile trace to analyze texture assets.