better exponential accumulation

This commit is contained in:
Joe Ardent 2022-10-23 19:44:33 -07:00
parent 7a8097d035
commit 4383b703f1

View file

@ -127,7 +127,7 @@ impl Timer {
} }
self.done = self.done =
(1.0 - (remaining.as_millis() as f32) / (self.duration.as_millis() as f32)).powf(3.1); (1.0 - (remaining.as_millis() as f32) / (self.duration.as_millis() as f32)).powf(4.1);
let (sender, rx) = channel(); let (sender, rx) = channel();
{ {