-
Hi again Filament team, I've got a handful of custom (GPU instanced) materials. They take ~10 seconds to compile on an iPhone 14 Pro Max: I've pre-compiled (
... but I suspect that As a workaround, I'm hoping to at least show some sort of progress bar to the user during those ~10 seconds of shader compilation. So my questions are:
Thanks as always! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Closing the loop on this (forgot about this one):
Hope this is helpful for posterity. |
Beta Was this translation helpful? Give feedback.
Closing the loop on this (forgot about this one):
Material::compile
was indeed enough to get a callback working to show a loading screen (I tried to make sure shader variants that I requested at runtime matched what I actually use; hopefully I'm not doing extra work)..metallib
.matc
(filamat
) is indeed targeting MSL, which still needs to get compiled on-device.Hope this is helpful for posterity.