X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=_Internals.pde;h=728e34387ae8250151ab71cbae29e72f259ab950;hb=bae2197a9a134bd45f983cd81ceb635d646620e3;hp=47166220ca84ae722f3392f707575a2a42377e85;hpb=ef7118ad30ec90ed1a3e6d3f5d9fdb0a21a03fe9;p=SugarCubes.git diff --git a/_Internals.pde b/_Internals.pde index 4716622..728e343 100644 --- a/_Internals.pde +++ b/_Internals.pde @@ -299,16 +299,32 @@ void drawDiagnostics(long drawNanos, long simulationNanos, long uiNanos, long ga noFill(); stroke(#999999); rect(x, y, tw, h); + h = 5; noStroke(); for (long val : new long[] { lx.engine.timer.deckNanos, + lx.engine.timer.copyNanos, lx.engine.timer.fxNanos}) { float amt = val / (float) lx.timer.drawNanos; fill(lx.hsb(hv % 360, 100, 80)); rect(xp, y, amt * tw, h-1); hv += 140; xp += amt * tw; - } + } + + xp = x; + y += h; + hv = 120; + for (long val : new long[] { + lx.engine.getDeck(0).timer.runNanos, + lx.engine.getDeck(1).timer.runNanos, + lx.engine.getDeck(1).getFaderTransition().timer.blendNanos}) { + float amt = val / (float) lx.timer.drawNanos; + fill(lx.hsb(hv % 360, 100, 80)); + rect(xp, y, amt * tw, h-1); + hv += 140; + xp += amt * tw; + } } void drawSimulation(color[] simulationColors) {