Skip to content

Commit 1ce43de

Browse files
committed
[remove] the animation for now.
1 parent 47a4fad commit 1ce43de

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

tools/triangles_demo/src/main.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,6 @@ impl Component for TrianglesComponent {
186186
}
187187

188188
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-
195189
match last_frame.as_millis() > 20 {
196190
true => {
197191
println!("[WARN] Last frame took {}ms", last_frame.as_millis());

0 commit comments

Comments
 (0)