Crate bevy_fixed_update_task

Source

Structs§

BackgroundFixedUpdatePlugin
FixedMain
Schedule running PreWriteBack, WriteBack and PostWriteBack only if it received its data from the WorkTask present in the single Entity containing it.
HandleTask
Schedule handling a single task.
PostWriteBack
Called after the propagation of the task result to the ECS.
PreWriteBack
Executes before the task result is propagated to the ECS.
SpawnTask
Spawn a new background task.
SubstepCount
Amount of times we simulate the task each fixed frame. Typically used to have a more accurate simulation, by having a smaller timestep, Or catch back with the rendering time, by having a bigger substep count.
TaskResult
The result of a task to be handled.
TaskResultRaw
The result of a task to be handled.
TaskResults
The result of a task to be handled.
TaskToRenderTime
Difference between tasks and rendering time
TaskWorker
Struct to be able to configure what the task should do.
Timestep
Time simulated by the task each fixed frame.
WorkTask
The task inside this component is polled before FixedMain.
WriteBack
Propagates the task result to the ECS.

Enums§

FixedMainLoop

Traits§

TaskWorkerTrait

Functions§

extract
finish_task_and_store_result
This system queries for WorkTask component. It polls the task, if it has finished, it removes the WorkTask component from the entity, and adds a TaskResult component.
spawn_task
This system spawns a WorkTask is none are ongoing. The task simulate computationally intensive work that potentially spans multiple frames/ticks.