Updating after a some time on all frameCounts?

Is this code fine for every frame count? it doesntned to be super accurate

void updateInterval() {
  updatingIntervalCounter++;
  updateNow = false;
  if (updatingIntervalCounter > frameRate/8) {
    updatingIntervalCounter = 0;
    updateNow = true;
  }
}

Thank you guys :blush:

2 Likes