Function ecs_dim

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_dim(ecs_world_t *world, int32_t entity_count)

Description

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.

Parameters

world - The world.

entity_count - The number of entities to preallocate.

Source

Line 1059 in include/flecs.h.