Android - Adreno - Model not responding initially for few seconds
- Dominant language
- C++
- Stars
- 20.5k
- Forks
- 2.3k
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 74
Description
When loading a glb model (~6.5K entites) there's an initial lag for ~10 seconds before the model responds to touch events. This happens only on Adreno GPUs, even on the recent top end device (tested on OnePlus Open / S23 Ultra / S23+).
Since the lag is closer to 10 seconds, users exit the screen thinking that app is not responding. Is there a workaround for this? Currently we set the zoom level to -1 which takes the camera closer to the model so frustum culling helps there - the lag is lesser but still long enough to think that app is frozen
**To Reproduce**
Steps to reproduce the behavior:
1. Load a larger model in any adreno device
2. Observe model is not responding for ~10 seconds
3. After the initial lag, model responds to touch events without a lag
**Screenshots**
Here is the recording of `sample-gltf-viewer` app running on S23,
https://drive.google.com/file/d/1JKu4lqXT_lMD2UpiTx3as6v2LmB3hXBM/view?usp=sharing
**Logs**
I see the panic log, but it appears on Mali devices too which don't have this initial lag issue,
```
in HandleBase::HandleId filament::backend::HandleAllocator<32, 64, 136>::allocateHandleSlow(size_t) [P0 = 32, P1 = 64, P2 = 136]:128
```
**Smartphone (please complete the following information):**
Samsung S23 FE / Android 15
**Additional context**
Tested on recent [commit](https://github.com/google/filament/commit/d4bb6b82df38c65a72d475c915367e352948c6c2)
Contributor guide
Assessment
This issue has not been assessed yet.