]> www.dolda2000.com Git - kaka/cakelight.git/commitdiff
Sleep 20 ms each frame in the ambient mode
authorTomas Wenström <tomas.wenstrom@gmail.com>
Mon, 8 May 2017 19:43:33 +0000 (21:43 +0200)
committerTomas Wenström <tomas.wenstrom@gmail.com>
Mon, 8 May 2017 19:43:33 +0000 (21:43 +0200)
src/kaka/cakelight/AmbientMode.java

index 0b41b4c731058ac4ee5e157cb9bc3d69e84aa0e1..ae223f1ac44c3c5ce86220e8113baa41e9250b3f 100644 (file)
@@ -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) {
                 }