"For Await" Chip
A "For Await" chip is much like the "For" chip but that it waits until it moves onto the next index.
This chip has a "Run" execution to start the function and a reset to reset it.
When the "Loop" execution is fired into the circuit graph its connected to it will wait until it receives an execution from the "Continue" port before firing again with the new index..
The "In Loop" boolean value specifies if its currently in a loop. In the case the chip is fired while its waiting on an execution the chip will reset and start again with the given values in "From" and "To".
Whether or not the chip will send a done execution if the "To" value is changed during operation is up to the devs but it would make intuitive sense to just save the input values when it's started.
This chips use case would be to save CPU heat in the case of processing large lists or operations. Since we can execute the next loop whenever we choose we can delay it by a specified time to prevent a CPU error.
While the "For Each" works on the same principles not all game mechanics need to be computed on the same frame, so this chip works just fine to solve for that.
Below is an example of the chip as a circuit board.
Please sign in to leave a comment.
Comments
0 comments