소스 검색

less noisy logs

feature/replace-renderer
Martin Dørum 3 년 전
부모
커밋
a419e737fa
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 7
    3
      src/main.cc

+ 7
- 3
src/main.cc 파일 보기

@@ -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…
취소
저장