From 5ecadc0dfe2550975b7eb6167fd10dc1c5f7eca4 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 22 Jul 2018 00:32:03 +0200 Subject: [PATCH] Deal with buggy GPU timers that go backwards. --- flow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.39.2