Function ecs_defer_begin

Synopsis

#include <include/flecs.h>

FLECS_API bool ecs_defer_begin(ecs_world_t *world)

Description

Defer operations until end of frame. When this operation is invoked while iterating, operations inbetween the defer_begin and defer_end operations are executed at the end of the frame.

This operation is thread safe.

Parameters

world - The world.

Returns
true if world changed from non-deferred mode to deferred mode.

Mentioned in

Source

Line 2729 in include/flecs.h.