Structs§
- Background
Fixed Update Plugin - Fixed
Main - Schedule running
PreWriteBack
,WriteBack
andPostWriteBack
only if it received its data from theWorkTask
present in the single Entity containing it. - Handle
Task - Schedule handling a single task.
- Post
Write Back - Called after the propagation of the task result to the ECS.
- PreWrite
Back - Executes before the task result is propagated to the ECS.
- Spawn
Task - Spawn a new background task.
- Substep
Count - 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.
- Task
Result - The result of a task to be handled.
- Task
Result Raw - The result of a task to be handled.
- Task
Results - The result of a task to be handled.
- Task
ToRender Time - Difference between tasks and rendering time
- Task
Worker - Struct to be able to configure what the task should do.
- Timestep
- Time simulated by the task each fixed frame.
- Work
Task - The task inside this component is polled before
FixedMain
. - Write
Back - Propagates the task result to the ECS.
Enums§
Traits§
Functions§
- extract
- finish_
task_ and_ store_ result - This system queries for
WorkTask
component. It polls the task, if it has finished, it removes theWorkTask
component from the entity, and adds aTaskResult
component. - spawn_
task - This system spawns a
WorkTask
is none are ongoing. The task simulate computationally intensive work that potentially spans multiple frames/ticks.