From 3f07bc498a2c5e67788854b82eaf14faf95ee11d Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Mon, 26 Jun 2023 18:18:50 +0100 Subject: [PATCH] Frame limit the lights --- src/render.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render.rs b/src/render.rs index e92693b..520ef85 100644 --- a/src/render.rs +++ b/src/render.rs @@ -343,7 +343,7 @@ impl Render { self.last = data.clone(); } - if time - self.last_update == 0 { + if time - self.last_update < 33 { println!("To Fast! Skiping"); return; }