SubEntity::setMaterialName enhancement
Posted: Thu May 14, 2009 8:28 am
If input material name is same as current mMaterialName, method should return immediately - getByName method is not very fast for runtime.
I am changing materials on entities per frame and this method slow donw my performance due to this call. I suppose that testing should be part of this method.
I am changing materials on entities per frame and this method slow donw my performance due to this call. I suppose that testing should be part of this method.