Skip to content

Commit

Permalink
Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
stephband committed Aug 27, 2024
1 parent cc53c3d commit fc30833
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/renderer/cue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
Expand Down

0 comments on commit fc30833

Please sign in to comment.