Function ecs_set_threads


#include <include/flecs/addons/pipeline.h>

FLECS_API void ecs_set_threads(ecs_world_t *world, int32_t threads)


Set number of worker threads. Setting this value to a value higher than 1 will start as many threads and will cause systems to evenly distribute matched entities across threads. The operation may be called multiple times to reconfigure the number of threads used, but never while running a system / pipeline.

Mentioned in


Line 178 in include/flecs/addons/pipeline.h.