!= UUID.Zero is slow

This commit is contained in:
UbitUmarov
2022-01-09 02:28:51 +00:00
parent 7e0fc95c3a
commit da928d6099
78 changed files with 254 additions and 263 deletions

View File

@@ -219,9 +219,9 @@ namespace OpenSim.Region.DataSnapshot.Providers
if (textures != null)
{
if (textures.DefaultTexture != null &&
textures.DefaultTexture.TextureID != UUID.Zero &&
textures.DefaultTexture.TextureID != m_DefaultImage &&
textures.DefaultTexture.TextureID != m_BlankImage &&
!textures.DefaultTexture.TextureID.IsZero() &&
textures.DefaultTexture.TextureID.NotEqual(m_DefaultImage) &&
textures.DefaultTexture.TextureID.NotEqual(m_BlankImage) &&
textures.DefaultTexture.RGBA.A < 50f)
{
counts[textures.DefaultTexture.TextureID] = 8;