From dbd896b58d287140920808c424c6a2a372a2cf46 Mon Sep 17 00:00:00 2001 From: Joshua Scoggins Date: Wed, 20 Apr 2016 19:06:02 -0700 Subject: [PATCH] Use the platform independent version of ReadTSC - If I use the gnu inline version, the game runs way too fast on my cpu due to frequency scaling (I think). --- Sources/Engine/Base/Timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Engine/Base/Timer.cpp b/Sources/Engine/Base/Timer.cpp index db603b3..56ba1c5 100755 --- a/Sources/Engine/Base/Timer.cpp +++ b/Sources/Engine/Base/Timer.cpp @@ -29,7 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include // !!! FIXME: use SDL timer code instead and rdtsc never? -#if (USE_PORTABLE_C) +#if (USE_PORTABLE_C) || PLATFORM_UNIX #define USE_GETTIMEOFDAY 1 #endif