From: Steinar H. Gunderson Date: Sat, 21 Jul 2018 22:32:03 +0000 (+0200) Subject: Deal with buggy GPU timers that go backwards. X-Git-Tag: 1.8.0~76^2~203 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5ecadc0dfe2550975b7eb6167fd10dc1c5f7eca4;p=nageru Deal with buggy GPU timers that go backwards. --- diff --git a/flow.cpp b/flow.cpp index 05ddfcf..6decf73 100644 --- a/flow.cpp +++ b/flow.cpp @@ -913,7 +913,7 @@ void GPUTimers::print() for (int i = 0; i < timer.level * 2; ++i) { fprintf(stderr, " "); } - fprintf(stderr, "%-30s %4.1f ms\n", timer.name.c_str(), (time_end - time_start) / 1e6); + fprintf(stderr, "%-30s %4.1f ms\n", timer.name.c_str(), GLint64(time_end - time_start) / 1e6); } }