I have app with modal which contains canvas(Three.js scene) with 6572 geometries into scene.
My app worked on desktop browsers.
But when i’m trying to test app in mobile and when i open modal with canvas my page is stops near 5-10 seconds and reloads with black content.
Checked devices
Iphone 13 safari 15.5
Iphone 13 safari 16.1
Iphone 6s safari 12.
Xiaomi mi11 lite (android v11, Chrome 104.0.5112.97)
Mobile browsers enforce quite strict limits on memory - so any memory leak or huge amounts of geometries / textures will inevitably lead to just crashing the browser - thus forcing it to reload.
you can also test the amount of vram available in a given browser with navigator.deviceMemory, it’s an experimental feature which isn’t yet supported by firefox, from reading a bit on this mobile browsers seem to be limited to 4gb wheras desktop browsers are limited to 8gb see this test, there are a lot of resources online to check how a process is allocated to vram memory on execution…
Take caution with this - merging geometries into a single, giant geometry prevents frustum culling, which can lead to significant performance drops - especially on mobile. Instancing you mentioned earlier is usually a better way of solving draw-calls.