X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=Internals.pde;h=31f8ffcb4b90c27c750f3c59ff5efed0350b00f2;hb=b0f59128cef7f03aa69f2e922be012efef35c659;hp=b593f3ef07b9c4aa7db088430348d3da9c653ae7;hpb=7d60f6f6ea82fd5c9794524ce11d40e7d6c00bf7;p=SugarCubes.git diff --git a/Internals.pde b/Internals.pde index b593f3e..31f8ffc 100644 --- a/Internals.pde +++ b/Internals.pde @@ -134,7 +134,6 @@ void setup() { size(VIEWPORT_WIDTH, VIEWPORT_HEIGHT, OPENGL); frameRate(targetFramerate); noSmooth(); - // hint(ENABLE_OPENGL_4X_SMOOTH); // no discernable improvement? logTime("Created viewport"); // Create the model @@ -224,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() { @@ -360,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;