Page 1 of 1

SubEntity::setMaterialName enhancement

Posted: Thu May 14, 2009 8:28 am
by bishopnator
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.

Re: SubEntity::setMaterialName enhancement

Posted: Sun May 17, 2009 3:37 pm
by sinbad
Ok, will add early-outs to all occurrences.