Map freeze on startup on Android Chrome & System WebView
bug :lady_beetle:auto-triaged
### mapbox-gl-js version
v3.21.0
### Browser and version
Android Chrome 146.0.7680.177 - Pixel 7 Pro (Android 16). The map is normally hosted in a Capacitor 8 app and uses Angular/zone.js.
### Expected behavior
Map starts up with the same performance it had on v3.20.0
### Actual behavior
After upgrading to 3.21.0, the map freezes on initial load on mobile. The same page loads in under 2 seconds on 3.20.0. This happens in both the device's Chrome browser and our Capacitor WebView.
I captured a Chrome DevTools performance trace on device. Three massive animation frames (8.5s, 11.8s, 5.1s) during map load. The dominant costs are two runs of these:
setupDepthForOcclusion → setTerrainUniformValues → set: ~16.5s (total)
upload: ~8.6s (total)
<img width="1134" height="156" alt="Image" src="https://github.com/user-attachments/assets/088c0def-f124-4f9f-887d-ca74c0d452ad" />
### Link to the demonstration
_No response_
### Steps to trigger the unexpected behavior
This seems to happen running a previously stable map component on Android Chrome as well as Android System WebView in a capacitor app.
I can share the specific map style privately to help debug. I've tested with 2 of our styles and had the same result.
### Relevant log output
```shell
Nothing came out in the logs
```
3 条评论