You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple performance improvements that reduce the time it takes to optimize an avatar by a factor of around 2x.
Changes
Instead of doing a AssetDatabase.Refresh() to import the optimized shaders it now uses ImportAsset() inside a StartAssetEditing() and StopAssetEditing() block. This saves a tiny bit of time.
Replaced two heavily used regex with string and char operations. This saves a bit of time.
Moved most of the generated shader code into include files. This saves a lot of time when importing the shaders.
Strip [Drawer] attributes from the generated shader code. This saves a significant amount of time when assigning the shader to a material.
Bug Fixes
Fix that the optimizer would try to merge textures with different mip count.
Fix crash when the avatar has a component with a missing script on it.