summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-06-25 15:14:32 -0700
committerGraham Linden <graham@lindenlab.com>2019-06-25 15:14:32 -0700
commit9eeb4c9750dd4ac3052f6ee84d1ce305b3c9cf70 (patch)
tree63251cdda54e8ece45caf898a4d4f4ea203f60c9 /indra
parentd7e5d8d11bfbbaf6e01e32cdf45eb6f5dc78fce6 (diff)
SL-10625
Make intel throttle the CPU with sleeps in all cases and fix calc of microsec frame time.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llappviewer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 500efa24c4..5b2e5fff0b 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -1477,8 +1477,10 @@ bool LLAppViewer::doFrame()
pingMainloopTimeout("Main:Display");
gGLActive = TRUE;
+ display();
+
static U64 last_call = 0;
- if (!gTeleportDisplay)
+ if (!gTeleportDisplay || gGLManager.mIsIntel) // SL-10625...throttle early, throttle often with Intel
{
// Frame/draw throttling
U64 elapsed_time = LLTimer::getTotalTime() - last_call;
@@ -1492,8 +1494,6 @@ bool LLAppViewer::doFrame()
}
last_call = LLTimer::getTotalTime();
- display();
-
pingMainloopTimeout("Main:Snapshot");
LLFloaterSnapshot::update(); // take snapshots
LLFloaterOutfitSnapshot::update();
@@ -5390,7 +5390,7 @@ bool LLAppViewer::onChangeFrameLimit(LLSD const & evt)
{
if (evt.asInteger() > 0)
{
- mMinMicroSecPerFrame = 1000000 / evt.asInteger();
+ mMinMicroSecPerFrame = (U64)(1000000.0f / F32(evt.asInteger()));
}
else
{