Skip to content

Conversation

@esengine
Copy link
Owner

采用20位索引(1048576个实体槽位) + 12位世代(4096个版本)的设计。
32位EntityID = [12位世代][20位索引]

压缩ID用于ECS内部高频操作,全局ID用于跨系统通信和持久化

连接压缩EntityID与全局ID的双向映射系统

@esengine esengine self-assigned this Jul 18, 2025
@esengine esengine added enhancement New feature or request dont merge labels Jul 18, 2025
@esengine
Copy link
Owner Author

过于复杂暂时弃用,改为先优化IdentifierPool方案,更改为32位索引 + 32位世代

@esengine esengine closed this Jul 19, 2025
@esengine esengine deleted the develop_duraltrackid branch July 19, 2025 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dont merge enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants