Skip to content

Interactive debug playback #79

@mdales

Description

@mdales

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions