�'s Ramblings

Smarter Console Logging in Synesthesia

2023-10-05T01:33:49

Console logging 60 times per second isn\’t really useful to humans, use this function to only log to the javascript console once per second:

var logtime = 0;
function update() {
  logtime++;
  if (logtime > 60) {
    logtime = 0;
    console.log(something);
  }
  ...
ufffd.com