X-Git-Url: https://git.piment-noir.org/?p=SugarCubes.git;a=blobdiff_plain;f=Internals.pde;h=31f8ffcb4b90c27c750f3c59ff5efed0350b00f2;hp=5a74a3742bc9a8a453521776bd9407f9741e4b32;hb=b0f59128cef7f03aa69f2e922be012efef35c659;hpb=0298d25686389fb2c9229edc3a21194978d66269 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;