Register size #971
Replies: 1 comment 2 replies
-
Yeah, sure. A 32b identifier uses 20b for the entities and 12b for the version. You've a few possibilities here:
Out of curiosity, what are you working on for which 1M entities isn't enough? That's really a huge number after all. |
Beta Was this translation helpful? Give feedback.
-
Hi guys,
I'm testing this lib that requires a lot of entities. However the reason, eventually I'm getting an error saying that there are no more entities available....is there a way to set it bigger?
// I'm trying to create a vertex entity with:
auto vertex_entity = m_registry.create();
// I'm getting this assertion error:
entt.hpp:34758: auto entt::basic_registry<Entity, >::generate_identifier(std::size_t) [with Entity = entt::entity; Allocator = std::allocatorentt::entity; std::size_t = long unsigned int]: Assertion `pos < entity_traits::to_entity(null)' failed.
Thank you, guys.
Beta Was this translation helpful? Give feedback.
All reactions