Fix timer-quantization jitters

This commit is contained in:
Danny McGee
2024-01-18 19:59:53 -05:00
parent 0202242666
commit b3182b7933
+2 -4
View File
@@ -97,11 +97,9 @@ pub fn animate_bvh(
if anim.timer.just_finished() {
anim.frame = (anim.frame + 1) % bvh_len;
anim.timer.reset();
0.
} else {
anim.timer.percent()
}
anim.timer.percent()
} else {
0.
};