Filamat VS Matc #4118
-
Hi, I'd like to know if there is a serious gain using a matc generated .filamat comparing to doing it at runtime on the device with Filamat for small materials like this:
Since Sceneform already has a good number of matc generated files, I'd like not to increase the Filament version upgrade time with more .mat to .filamat by just having to update the Filamat-Lite dependency version. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
That said, why is running |
Beta Was this translation helpful? Give feedback.
-
That makes the update checks quick. Thanks |
Beta Was this translation helpful? Give feedback.
matc
is just a command line wrapper aroundfilamat
. However,filamat-lite
has two major limitations: it can only target GLSL (this means it cannot be used with Vulkan or Metal backends), and does not perform any optimizations. Not having optimizations is probably ok but they are greatly helpful for compatibility as they simplify the generated shader.That said, why is running
matc
an issue? You only need to recompile material files when we change the material version, which happens rarely nowadays (I think we did once or twice at most in the last 12 months or so).