diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 38985d3..8aea221 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -1085,9 +1085,7 @@ bool LLAppViewer::mainLoop() | |||
1085 | } | 1085 | } |
1086 | 1086 | ||
1087 | 1087 | ||
1088 | const F64 min_frame_time = 0.0; //(.0333 - .0010); // max video frame rate = 30 fps | 1088 | const F64 max_idle_time = run_multiple_threads ? 0.0 : llmin(.005*10.0*gFrameIntervalSeconds, 0.005); // 50ms/second, no more than 5ms/frame |
1089 | const F64 min_idle_time = 0.0; //(.0010); // min idle time = 1 ms | ||
1090 | const F64 max_idle_time = run_multiple_threads ? min_idle_time : llmin(.005*10.0*gFrameTimeSeconds, 0.005); // 5 ms a second | ||
1091 | idleTimer.reset(); | 1089 | idleTimer.reset(); |
1092 | while(1) | 1090 | while(1) |
1093 | { | 1091 | { |
@@ -1103,11 +1101,8 @@ bool LLAppViewer::mainLoop() | |||
1103 | ms_sleep(llmin(io_pending/100,100)); // give the vfs some time to catch up | 1101 | ms_sleep(llmin(io_pending/100,100)); // give the vfs some time to catch up |
1104 | } | 1102 | } |
1105 | 1103 | ||
1106 | F64 frame_time = frameTimer.getElapsedTimeF64(); | ||
1107 | F64 idle_time = idleTimer.getElapsedTimeF64(); | 1104 | F64 idle_time = idleTimer.getElapsedTimeF64(); |
1108 | if (frame_time >= min_frame_time && | 1105 | if (!work_pending || idle_time >= max_idle_time) |
1109 | idle_time >= min_idle_time && | ||
1110 | (!work_pending || idle_time >= max_idle_time)) | ||
1111 | { | 1106 | { |
1112 | break; | 1107 | break; |
1113 | } | 1108 | } |