Function ecs_run_post_frame

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_run_post_frame(ecs_world_t *world, ecs_fini_action_t action, void *ctx)

Description

Register action to be executed once after frame. Post frame actions are typically used for calling operations that cannot be invoked during iteration, such as changing the number of threads.

Parameters

world - The world.

action - The function to execute.

ctx - Userdata to pass to the function

Source

Line 982 in include/flecs.h.