From: Mark Slee Date: Fri, 7 Mar 2014 20:58:16 +0000 (-0800) Subject: Switch to threaded mode by default, run engine at 120FPS X-Git-Url: https://git.piment-noir.org/?p=SugarCubes.git;a=commitdiff_plain;h=b0f59128cef7f03aa69f2e922be012efef35c659 Switch to threaded mode by default, run engine at 120FPS --- diff --git a/Internals.pde b/Internals.pde index 5a74a37..31f8ffc 100644 --- a/Internals.pde +++ b/Internals.pde @@ -223,6 +223,9 @@ void setup() { println("Total setup: " + (millis() - startMillis) + "ms"); println("Hit the 'o' key to toggle live output"); + + lx.engine.framesPerSecond.setValue(120); + lx.engine.setThreaded(true); } public SCPattern getPattern() { @@ -359,7 +362,7 @@ void drawDiagnostics(long drawNanos, long simulationNanos, long uiNanos, long ga noStroke(); int xp = x; float hv = 0; - for (long val : new long[] {lx.timer.drawNanos, simulationNanos, uiNanos, gammaNanos, lx.timer.outputNanos }) { + for (long val : new long[] {lx.timer.drawNanos, simulationNanos, uiNanos, gammaNanos, lx.engine.timer.outputNanos }) { fill(lx.hsb(hv % 360, 100, 80)); rect(xp, y, val * ws, h-1); hv += 140; diff --git a/code/HeronLX.jar b/code/HeronLX.jar index 3b20d55..e1e432f 100755 Binary files a/code/HeronLX.jar and b/code/HeronLX.jar differ