Unused material
When a MSF file contains material that are not used by any shapes, these material are still parsed and added to the list of material. Thus they are also compiled and their assets are uploaded to the GPU.
This can cause a huge loss of memory when using spectral mode or when unused materials are textured.
Even if this should be the user's task to ensure is scene file is clean, a safety check should be added.