From 7d43aee78d07ea1ea3caebc9e2b7e55db7fc9118 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 14 Nov 2004 10:41:48 +0000 Subject: [PATCH] Made the use of the standard clock default instead of the RDTSC calls to avoid problems with variable CPU frequency such as found on laptops. --- src/osg/Timer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/osg/Timer.cpp b/src/osg/Timer.cpp index 6504be8de..affcc9b76 100644 --- a/src/osg/Timer.cpp +++ b/src/osg/Timer.cpp @@ -39,7 +39,8 @@ const Timer* Timer::instance() #include Timer::Timer() { - _useStandardClock = false; + //_useStandardClock = false; + _useStandardClock = true; if (_useStandardClock) { @@ -161,9 +162,9 @@ const Timer* Timer::instance() Timer::Timer() { #if defined(__ia64) || defined(__x86_64__) || defined(__powerpc) - _useStandardClock = true; + _useStandardClock = true; // set to true to avoid problems with variable CPU speeds #else - _useStandardClock = true; + _useStandardClock = true; // set to true to avoid problems with variable CPU speeds #endif if (_useStandardClock)