From fc308334d4317249106f5e3ee47f06bb9e9f5240 Mon Sep 17 00:00:00 2001 From: Stephen Date: Tue, 27 Aug 2024 17:58:15 +0200 Subject: [PATCH] Logs --- modules/renderer/cue.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/renderer/cue.js b/modules/renderer/cue.js index a663188..6bd5dea 100644 --- a/modules/renderer/cue.js +++ b/modules/renderer/cue.js @@ -47,11 +47,11 @@ function render(t) { ); if (t1 - t0 > 0.016666667) { - log('render took longer than a frame (16.67ms) ' + ((t1 - t0) * 1000).toPrecision(3) + 'ms', '', - 'frame t=' + (t / 1000).toFixed(3) + 's' - + ' t0=' + t0.toFixed(3) + ',' - + ' t1=' + t0.toFixed(3), - '', + log('render', (t / 1000).toFixed(3) + 's', + 'took longer than a frame', + ' t0 ' + t0.toFixed(3) + ',' + + ' t1 ' + t0.toFixed(3) + ',' + + ' ' + ((t1 - t0) * 1000).toPrecision(3) + 'ms', '#ba4029'); } }