repositories
/
SugarCubes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First cut at an Open Pixel Control server
[SugarCubes.git]
/
Internals.pde
diff --git
a/Internals.pde
b/Internals.pde
index 5a74a3742bc9a8a453521776bd9407f9741e4b32..31f8ffcb4b90c27c750f3c59ff5efed0350b00f2 100644
(file)
--- 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");
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() {
}
public SCPattern getPattern() {
@@
-359,7
+362,7
@@
void drawDiagnostics(long drawNanos, long simulationNanos, long uiNanos, long ga
noStroke();
int xp = x;
float hv = 0;
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;
fill(lx.hsb(hv % 360, 100, 80));
rect(xp, y, val * ws, h-1);
hv += 140;