diff options
| -rw-r--r-- | indra/newview/llappviewer.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 7580100977..e1e26372df 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -1544,7 +1544,15 @@ bool LLAppViewer::doFrame()              if(fpsLimitSleepFor)              { +#if LL_WINDOWS +                U64 time1 = 0, time2 = 0; +                QueryPerformanceCounter((LARGE_INTEGER *)&time1); +                do { +                    QueryPerformanceCounter((LARGE_INTEGER *)&time2); +                } while ((time2-time1) < fpsLimitSleepFor); +#else                  usleep(fpsLimitSleepFor); +#endif              }              // yield some time to the os based on command line option  | 
