- scalar alpha = (t + timestep_ - next_update_) * inverse_timestep_;
- if (alpha < SCALAR(0.0)) log_error("UH OH!!!!! It's NEGATIVE", alpha);
- if (alpha > SCALAR(1.0)) log_error("UH OH!!!!! It's POSITIVE", alpha);
+ log_debug("draw", timer.expiration(), "/", t);
+
+ // XXX temporary
+ thread::main_runloop().run_once();
+
+ dispatch_update(timer, t);
+
+ scalar alpha = accum_ * inverse_timestep_;
+
+ alpha = cml::clamp(alpha, SCALAR(-1.0), SCALAR(2.0));
+ if (alpha < SCALAR(0.0)) log_warning("alpha:", alpha);
+ else if (alpha > SCALAR(1.0)) log_warning("alpha:", alpha);
+ else log_debug("alpha:", alpha);