HDR PNG lightmaps crashes the app on iPhone/Safari/Chrome

Hi guys!

Applying an HDR PNG as a lightmap crashes the app on latest iOS iPhone/Safari/Chrome.

The last shader loaded in the Web Inspector/Graphics tabs is #define SHADER_NAME fragment:rgbdDecode. This shader or some code using this shader causes the crash - I think so.

PG available via DM.

Any clues guys?

Thanks a lot!

cc @sebavan

1 Like

PG sent to @sebavan

Contains copyrighted stuff…

1 Like

@roland this can not work on IOS as you have about 700Mb of texture usage alone and I think it is the limit available in Safari.

You need to use smaller/compressed assets in this case.

1 Like

The models has instanced meshes and I set the AO texture on the source mesh. In this case the app crashes.

If I change all my meshes to be regular meshes (no instances) and set the AO on each of them (on the materials obviously) the app doesn’t crash. I’ll dig more deeply into the issue why does this solve the issue (it should work with the instances too). For now I mark this as a solution.

Thanks @sebavan !

@sebavan

Here is a simple PG, 20+ boxes, a few textures, shouldn’t this work? It kills Safari on iPhone12. Works on iPhone 15 Pro.

Chrome is affected as well. I’ve just upgraded to iOS 17.6.1

Seems, that iOS can’t handle so many http requests at once. If I chain the loading of the next texture after the previous was loaded and so on the PG works and loads all textures without an issue.

1 Like