== UUID.Zero is slow

This commit is contained in:
UbitUmarov
2022-01-08 23:35:56 +00:00
parent cb98fb309c
commit 357f20eb14
73 changed files with 251 additions and 260 deletions

View File

@@ -104,7 +104,7 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
// Swap empty terrain textureIDs with default IDs
for(int i = 0; i < textureIDs.Length; i++)
{
if(textureIDs[i] == UUID.Zero)
if(textureIDs[i].IsZero())
textureIDs[i] = DEFAULT_TERRAIN_DETAIL[i];
}

View File

@@ -687,7 +687,7 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
int color;
Color4 ctmp = Color4.White;
if (face.TextureID == UUID.Zero)
if (face.TextureID.IsZero())
return warp_Color.White;
if (!m_colors.TryGetValue(face.TextureID, out color))
@@ -788,7 +788,7 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
private warp_Texture GetTexture(UUID id, SceneObjectPart sop)
{
warp_Texture ret = null;
if (id == UUID.Zero)
if (id.IsZero())
return ret;
if (m_warpTextures.TryGetValue(id, out ret))
return ret;