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

[MP] Fix variant serialization after variant size change. #64843

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Aug 24, 2022

The bit mask used for the type when compressing variants in the Multiplayer API became too small to represent all variant types.

This commit expand the mask, which means we no longer have an extra bit in the "meta" byte we use to store encoding information.

The extra bit was only used in case of booleans to store the value and
since booleans do not require extra encoding information we use those 2 bits to store the value instead.

Closes #64263 (superseded)
Closes #64231

The bit mask used for the type when compressing variants in the
Multiplayer API became too small to represent all variant types.

This commit expand the mask, which means we no longer have an extra bit
in the "meta" byte we use to store encoding information.

The extra bit was only used in case of booleans to store the value and
since booleans do not require extra encoding information we use those 2
bits to store the value instead.
@akien-mga akien-mga merged commit bb6d771 into godotengine:master Aug 24, 2022
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MultiplayerSynchronizer fatally crashes when attempting to sync a PackedStringArray
2 participants