Skip to content

Fixes PID Collisions#476

Merged
PsyCommando merged 1 commit intoPersistentSS13:devfrom
NataKilar:fixes-collisions
Dec 7, 2023
Merged

Fixes PID Collisions#476
PsyCommando merged 1 commit intoPersistentSS13:devfrom
NataKilar:fixes-collisions

Conversation

@NataKilar
Copy link
Collaborator

Description of changes

Fixes PID collisions by adding two additional bytes to PIDs, moving our 50% collision chance from 70,000 items to 19,000,000. Makes the PERSISTENT_ID define generate the IDs directly, since using the uniqueness repository adds a miniscule amount of overhead for no real reason.

In the future, I'm open to simplifying the ID further

@PsyCommando PsyCommando added 🪲 bug Something isn't working 💾 serialization A bug or feature linked to serialization/deserialization labels Dec 7, 2023
@PsyCommando PsyCommando added this to the Outreach Map Pre-Release milestone Dec 7, 2023
Copy link
Collaborator

@PsyCommando PsyCommando left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems simple enough.

@PsyCommando PsyCommando merged commit 7caeb30 into PersistentSS13:dev Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🪲 bug Something isn't working 💾 serialization A bug or feature linked to serialization/deserialization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants