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

Derive macro for hashing types to support net desync detection #381

Open
MaxCWhitehead opened this issue Apr 12, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@MaxCWhitehead
Copy link
Collaborator

Goal is a derive macro to allow hashing components / resources. One of the challenges is floats + glam types like vec / quat don't support implementing std::hash::Hash - but we need some support for this.

Properties can be opted out of being included in hash, but otherwise all properties are required to support by default. Then World can hash all supporting components / resources and use hash with ggrs desync detection.

I have decent amount of progress on this WIP - but I successfully resolved current desync issues so far without it, and don't need full solution in this moment. Will wrap this up once got other things out of the way.

Some discussion + context on implementation details from discord here

@MaxCWhitehead MaxCWhitehead added the enhancement New feature or request label Apr 12, 2024
@MaxCWhitehead MaxCWhitehead self-assigned this Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant