mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
Stop unnecessarily sending the TextureEntry in client avatar updates.
As far as I know, viewers don't use this mechanism to recieve new TextureEntry data for avatars. This is done via the AvatarAppearance packet instead. Tested this back to viewer 1.23. Replacing with Utils.EmptyBytes since converting the texture entry to bytes on each AvatarUpdate (or which there are many) is not cost-free.
This commit is contained in:
@@ -4895,8 +4895,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
update.Scale = new Vector3(0.45f, 0.6f, 1.9f);
|
||||
update.Text = Utils.EmptyBytes;
|
||||
update.TextColor = new byte[4];
|
||||
|
||||
// Don't send texture anim for avatars - this has no meaning for them.
|
||||
update.TextureAnim = Utils.EmptyBytes;
|
||||
update.TextureEntry = (data.Appearance.Texture != null) ? data.Appearance.Texture.GetBytes() : Utils.EmptyBytes;
|
||||
|
||||
// Don't send texture entry for avatars here - this is accomplished via the AvatarAppearance packet
|
||||
update.TextureEntry = Utils.EmptyBytes;
|
||||
// update.TextureEntry = (data.Appearance.Texture != null) ? data.Appearance.Texture.GetBytes() : Utils.EmptyBytes;
|
||||
|
||||
update.UpdateFlags = (uint)(
|
||||
PrimFlags.Physics | PrimFlags.ObjectModify | PrimFlags.ObjectCopy | PrimFlags.ObjectAnyOwner |
|
||||
PrimFlags.ObjectYouOwner | PrimFlags.ObjectMove | PrimFlags.InventoryEmpty | PrimFlags.ObjectTransfer |
|
||||
|
||||
Reference in New Issue
Block a user