Function ecs_progress

Synopsis

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

FLECS_API bool ecs_progress(ecs_world_t *world, FLECS_FLOAT delta_time)

Description

Progress a world. This operation progresses the world by running all systems that are both enabled and periodic on their matching entities.

An application can pass a delta_time into the function, which is the time passed since the last frame. This value is passed to systems so they can update entity values proportional to the elapsed time since their last invocation.

When an application passes 0 to delta_time, ecs_progress will automatically measure the time passed since the last frame. If an application does not uses time management, it should pass a non-zero value for delta_time (1.0 is recommended). That way, no time will be wasted measuring the time.

Parameters

world - The world to progress.

delta_time - The time passed since the last frame.

Returns
false if ecs_quit has been called, true otherwise.

Mentioned in

Source

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