From 1e34b22a82fdba417ad51fe95072644365750b43 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 20 Sep 2020 19:47:00 +0200 Subject: [PATCH] There's no QPC on non-windows systems. --- client/TracyProfiler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index e251ce11..e73bf4e2 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -227,7 +227,11 @@ static int64_t SetupHwTimer() const char* noCheck = getenv( "TRACY_NO_INVARIANT_CHECK" ); if( !noCheck || noCheck[0] != '1' ) { +#if defined _WIN32 || defined __CYGWIN__ InitFailure( "CPU doesn't support invariant TSC.\nDefine TRACY_NO_INVARIANT_CHECK=1 to ignore this error, *if you know what you are doing*.\nAlternatively you may rebuild the application with the TRACY_TIMER_QPC define to use lower resolution timer." ); +#else + InitFailure( "CPU doesn't support invariant TSC.\nDefine TRACY_NO_INVARIANT_CHECK=1 to ignore this error, *if you know what you are doing*." ); +#endif } } #endif