We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47a4fad commit 1ce43deCopy full SHA for 1ce43de
1 file changed
tools/triangles_demo/src/main.rs
@@ -186,12 +186,6 @@ impl Component for TrianglesComponent {
186
}
187
188
fn on_update(&mut self, last_frame: &std::time::Duration) {
189
- match self.animation_scalar {
190
- 0.0..=0.5 => self.animation_scalar += last_frame.as_secs_f32(),
191
- 0.5..=1.0 => self.animation_scalar -= last_frame.as_secs_f32(),
192
- _ => self.animation_scalar = 0.0,
193
- }
194
-
195
match last_frame.as_millis() > 20 {
196
true => {
197
println!("[WARN] Last frame took {}ms", last_frame.as_millis());
0 commit comments