move material class system to flag, every frame too much string compare is not that good