Function set_stage_count

Synopsis

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

void set_stage_count(int32_t stages) const

Description

Configure world to have N stages. This initializes N stages, which allows applications to defer operations to multiple isolated defer queues. This is typically used for applications with multiple threads, where each thread gets its own queue, and commands are merged when threads are synchronized.

Note that set_threads() already creates the appropriate number of stages. The set_stage_count() operation is useful for applications that want to manage their own stages and/or threads.

Parameters

stages - The number of stages.

Source

Lines 298-300 in include/flecs/addons/cpp/world.hpp.

void set_stage_count(int32_t stages) const {
    ecs_set_stage_count(m_world, stages);
}