]> git.sesse.net Git - nageru/commit
Stretch the ease length to get back into the right cadence.
authorSteinar H. Gunderson <steinar+nageru@gunderson.no>
Mon, 16 Mar 2020 22:00:50 +0000 (23:00 +0100)
committerSteinar H. Gunderson <steinar+nageru@gunderson.no>
Mon, 16 Mar 2020 22:03:15 +0000 (23:03 +0100)
commitffee7085424918edf4b340ca120ece4ddca639ef
tree992894057db487512bc24b5676b81c1b9a844b33
parent331e427e3d4cfc129b15f183dcfefe7f182a4e06
Stretch the ease length to get back into the right cadence.

Unless the speed change is very small, we can stretch the ease a bit
(from the default 200 ms into anything in the [0,2] second range)
such that we conveniently hit an original frame. This means that if
we go into a speed such as 100% or 200%, we've got a very high
likelyhood of going into a locked cadence, with the associated
quality and performance benefits.
futatabi/player.cpp