Function ecs_set_stages

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_set_stages(ecs_world_t *world, int32_t stages)

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 the ecs_set_threads function already creates the appropriate number of stages. The set_stages() operation is useful for applications that want to manage their own stages and/or threads.

Parameters

world - The world.

stages - The number of stages.

Source

Line 3202 in include/flecs.h.