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() {
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;