Browse Source

less noisy logs

feature/replace-renderer
Martin Dørum 3 years ago
parent
commit
a419e737fa
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      src/main.cc

+ 7
- 3
src/main.cc View File

@@ -213,9 +213,13 @@ int main(int argc, char **argv) {
} else {
int count = (int)ceil(dt / (1/30.0));
float delta = dt / (float)count;
info << "Delta time " << dt << "s. Running " << count
<< " updates in one frame, with a delta as if we had "
<< 1.0 / delta << " FPS.";

// Don't be too noisy with the occasional double update
if (count > 2) {
info << "Delta time " << dt << "s. Running " << count
<< " updates in one frame, with a delta as if we had "
<< 1.0 / delta << " FPS.";
}
for (int i = 0; i < count; ++i) {
ZoneScopedN("game update");
game.update(delta);

Loading…
Cancel
Save