Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/info packets #29

Merged
merged 3 commits into from
Sep 13, 2024
Merged

Fix/info packets #29

merged 3 commits into from
Sep 13, 2024

Conversation

Z-Kris
Copy link
Contributor

@Z-Kris Z-Kris commented Sep 13, 2024

Fixes potential issues where servers might deallocate and reallocate the same index player or worldentity info on the same game cycle. This would result in any players previously observing it not acknowledging that the entity underneath an avatar was completely swapped out, and could result in visual artefacting. This is typically only possible if servers do not use the round-robin index allocation system, but it is technically also possible to happen even with it, although in practice never should.

This fixes a potential issue where servers might end up deallocating
and reallocating the same index player info object on the same cycle.
While typically fine, if the previous player and the new player are
in the same rough area, any observers of them might think the player
shouldn't receive any updates. This could result in visual glitching.
This fixes a potential issue where servers might end up deallocating
and reallocating the same index worldentity info object on the same
cycle. Same concept as the commit above this for player info, and
the one from a few days ago for npc info.
@Z-Kris Z-Kris merged commit e4cdf6e into master Sep 13, 2024
3 checks passed
@Z-Kris Z-Kris deleted the fix/info-packets branch September 13, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant