There's no need for this to be in pyglet's event loop; it can be
layered on top of the provided clock.schedule_interval(). I'd
envisage something like::
runloop = FixedRunloop(update, step=1/60., max_step=0.2)
# FixedRunloop schedules its internal update method on
# clock; calls update only at fixed intervals.
def on_draw():
# Get interpolation/extrapolation fraction.
p = runloop.get_step_fraction()
While some applications require a fixed timestep, others only desire
it (e.g., simple integration), and others have no need for it (e.g.,
path controlled animation). Most applications would not want to deal
with the complexity of drawing a scene interpolated between two
states.
Alex.