Function dim

Synopsis

#include <include/flecs/addons/cpp/world.hpp>

void dim(int32_t entity_count) const

Description

Preallocate memory for number of entities. This function preallocates memory for the entity index.

Parameters

entity_count - Number of entities to preallocate memory for.

Source

Lines 453-455 in include/flecs/addons/cpp/world.hpp.

void dim(int32_t entity_count) const {
    ecs_dim(m_world, entity_count);
}