summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-09-16 21:45:48 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-09-16 21:45:48 -0600
commite86853db2ceb4e36e32482c88403bc1e3ee037eb (patch)
treef4754b7ab541ed660068487fd571b9daa5499ff3
parent5c7b84c682ea0f92f3f4389b0dbe758b8cadc6eb (diff)
fix to load neighboring regions faster.
-rwxr-xr-xindra/newview/llworld.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/indra/newview/llworld.cpp b/indra/newview/llworld.cpp
index 6a2653bc88..9009626a03 100755
--- a/indra/newview/llworld.cpp
+++ b/indra/newview/llworld.cpp
@@ -663,9 +663,6 @@ void LLWorld::updateVisibilities()
void LLWorld::updateRegions(F32 max_update_time)
{
- LLTimer update_timer;
- BOOL did_one = FALSE;
-
if(LLViewerCamera::getInstance()->isChanged())
{
LLViewerRegion::sLastCameraUpdated = LLViewerOctreeEntryData::getCurrentFrame() + 1;
@@ -676,15 +673,7 @@ void LLWorld::updateRegions(F32 max_update_time)
for (region_list_t::iterator iter = mRegionList.begin();
iter != mRegionList.end(); ++iter)
{
- LLViewerRegion* regionp = *iter;
- F32 max_time = max_update_time - update_timer.getElapsedTimeF32();
- if (did_one && max_time <= 0.f)
- break;
- max_time = llmin(max_time, max_update_time*.1f);
- if (regionp->idleUpdate(max_update_time))
- {
- did_one = TRUE;
- }
+ (*iter)->idleUpdate(max_update_time);
}
mNumOfActiveCachedObjects = 0;