To help debug effects/demos, it'd be nice to have a way to at least pause things and step frames, and for functional effects also step forward and backward in time.
- Pause - effectively stops tick being called, leaving just the last frame on display
- Step - calls tick once more and keeps things otherwise paused
For functional effects, where the entire logic is defined by t alone and has no other side-effects, you can also step backwards, where you decrement rather than increment the counter before calling tick.
It'd be fun to do this by having an overlay of play/pause/step buttons on the screen that can be clicked, as well as having some key presses. I imagine we'd use a function key to engage this mode.
To help debug effects/demos, it'd be nice to have a way to at least pause things and step frames, and for functional effects also step forward and backward in time.
For functional effects, where the entire logic is defined by t alone and has no other side-effects, you can also step backwards, where you decrement rather than increment the counter before calling tick.
It'd be fun to do this by having an overlay of play/pause/step buttons on the screen that can be clicked, as well as having some key presses. I imagine we'd use a function key to engage this mode.