Function ecs_set_stage_count


#include <include/flecs.h>

FLECS_API void ecs_set_stage_count(ecs_world_t *world, int32_t stages)


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 the ecs_set_threads function 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.


world - The world.

stages - The number of stages.


Line 4326 in include/flecs.h.