Skip to content

Optimize attribute update syncing - #914

Merged
Dreeam-qwq merged 1 commit into
Winds-Studio:ver/26.2from
in-Piyush:name
Sep 8, 2026
Merged

Optimize attribute update syncing#914
Dreeam-qwq merged 1 commit into
Winds-Studio:ver/26.2from
in-Piyush:name

Conversation

@in-Piyush

Copy link
Copy Markdown
Contributor

Skip empty attribute update packets.

When a tracker is queued only because entity data is dirty, no attributes may need to be synced. Avoid creating and sending an empty ClientboundUpdateAttributesPacket in that case.

This keeps the entity data update path unchanged and only skips unnecessary attribute packet creation and sending.

Skip empty attribute update packets.

When a tracker is queued only because entity data is dirty, no attributes may need to be synced. Avoid creating and sending an empty ClientboundUpdateAttributesPacket in that case.

This keeps the entity data update path unchanged and only skips unnecessary attribute packet creation and sending.
@in-Piyush

Copy link
Copy Markdown
Contributor Author

@Dreeam-qwq can you merge this

@Dreeam-qwq Dreeam-qwq added the type: optimization Pull request for optimization label Sep 8, 2026
@Dreeam-qwq
Dreeam-qwq merged commit ad180e2 into Winds-Studio:ver/26.2 Sep 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: optimization Pull request for optimization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants