Function ecs_dim


#include <include/flecs.h>

FLECS_API void ecs_dim(ecs_world_t *world, int32_t entity_count)


Dimension the world for a specified number of entities. This operation will preallocate memory in the world for the specified number of entities. Specifying a number lower than the current number of entities in the world will have no effect. Note that this function does not allocate memory for components (use ecs_dim_type for that).


world - The world.

entity_count - The number of entities to preallocate.

Mentioned in


Line 618 in include/flecs.h.