From: Tomas Wenström Date: Mon, 8 May 2017 19:43:33 +0000 (+0200) Subject: Sleep 20 ms each frame in the ambient mode X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=2e308eba19d2ecdc077fbd3b2952425422a5a665;p=kaka%2Fcakelight.git Sleep 20 ms each frame in the ambient mode --- diff --git a/src/kaka/cakelight/AmbientMode.java b/src/kaka/cakelight/AmbientMode.java index 0b41b4c..ae223f1 100644 --- a/src/kaka/cakelight/AmbientMode.java +++ b/src/kaka/cakelight/AmbientMode.java @@ -35,7 +35,7 @@ public class AmbientMode extends Mode { // TODO split into DynamicAmbient and St updateFrame(frame, System.currentTimeMillis() - start, index); updateWithFrame(frame); index = (index + 1) % config.leds.getCount(); - Thread.sleep(0); + Thread.sleep(20); } } catch (InterruptedException e) { }