#include <include/flecs.h> FLECS_API void ecs_set_stages(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.
world- The world.
stages- The number of stages.