Skip to content

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

@MaxCWhitehead

Description

@MaxCWhitehead

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions