Backport setUp{Quantum,Proportional}AnimationFrame() from gewgaws.