summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2012-04-03 16:02:03 -0600
committerXiaohong Bao <bao@lindenlab.com>2012-04-03 16:02:03 -0600
commit625e76c1e429657009c9521ee958e9c2535a2f07 (patch)
tree9a849a30f39f3b1bf7582c58ae8bf92b4b1db375
parent5b5173bf7dc053173cb6466d43f07662944fa360 (diff)
For SH-3072: do not pause texture fetching when FPS is low.
-rw-r--r--indra/newview/llappviewer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index bea8303d69..971b096a15 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -1339,13 +1339,11 @@ bool LLAppViewer::mainLoop()
ms_sleep(500);
}
- static const F64 FRAME_SLOW_THRESHOLD = 0.5; //2 frames per seconds
const F64 max_idle_time = llmin(.005*10.0*gFrameTimeSeconds, 0.005); // 5 ms a second
idleTimer.reset();
- bool is_slow = (frameTimer.getElapsedTimeF64() > FRAME_SLOW_THRESHOLD) ;
S32 total_work_pending = 0;
S32 total_io_pending = 0;
- while(!is_slow)//do not unpause threads if the frame rates are very low.
+ while(1)
{
S32 work_pending = 0;
S32 io_pending = 0;