Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = []Option{ WithFramer(stats.CFramer(60*5, stats.FFramer(os.Stdout))), }
Functions ¶
This section is empty.
Types ¶
type Loop ¶
type Loop struct { MinTimePerFrame time.Duration // how long a frame is, frames might take longer than this Input input.Capturer // captures user inputs TL timeline.TL // records user inputs and other info on a timeline Model scrub.Scrubber // the simulation model, the things we are controlling/exposing // contains filtered or unexported fields }
Loop repeatedly advances state by recording events on a timeline and scrubbing ahead of those events.
Click to show internal directories.
Click to hide internal directories.