Skip to content

When are entity identifiers reused? #1205

Answered by skypjack
JuanDiegoMontoya asked this question in Q&A
Discussion options

You must be logged in to vote

Identifiers have an entity part and a version part. The version is incremented when you destroy it. The entity remains stable instead.
This means that the identifiers appears again in your game when the version wraps to 0 again. The default version for a 32b identifier is 12b. As anything else in EnTT, the version part as well as the type used for identifiers can be customized if you like.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JuanDiegoMontoya
Comment options

Answer selected by JuanDiegoMontoya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discussion it sounds interesting, let's discuss it
2 participants