diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/newview/llworld.cpp | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llworld.cpp | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/linden/indra/newview/llworld.cpp b/linden/indra/newview/llworld.cpp index 8c95260..27d7513 100644 --- a/linden/indra/newview/llworld.cpp +++ b/linden/indra/newview/llworld.cpp | |||
@@ -83,22 +83,25 @@ const F32 LLWorld::mWidthInMeters = mWidth * mScale; | |||
83 | // | 83 | // |
84 | 84 | ||
85 | // allocate the stack | 85 | // allocate the stack |
86 | LLWorld::LLWorld() | 86 | LLWorld::LLWorld() : |
87 | mLandFarClip(DEFAULT_FAR_PLANE), | ||
88 | mLastPacketsIn(0), | ||
89 | mLastPacketsOut(0), | ||
90 | mLastPacketsLost(0), | ||
91 | mMinRegionX(0), | ||
92 | mMaxRegionX(0), | ||
93 | mMinRegionY(0), | ||
94 | mMaxRegionY(0), | ||
95 | mSpaceTimeUSec(0) | ||
87 | { | 96 | { |
88 | mSpaceTimeUSec = 0; | 97 | for (S32 i = 0; i < 8; i++) |
89 | mLastPacketsIn = 0; | ||
90 | mLastPacketsOut = 0; | ||
91 | mLastPacketsLost = 0; | ||
92 | mLandFarClip = DEFAULT_FAR_PLANE; | ||
93 | |||
94 | if (gNoRender) | ||
95 | { | 98 | { |
96 | return; | 99 | mEdgeWaterObjects[i] = NULL; |
97 | } | 100 | } |
98 | 101 | ||
99 | for (S32 i = 0; i < 8; i++) | 102 | if (gNoRender) |
100 | { | 103 | { |
101 | mEdgeWaterObjects[i] = NULL; | 104 | return; |
102 | } | 105 | } |
103 | 106 | ||
104 | LLPointer<LLImageRaw> raw = new LLImageRaw(1,1,4); | 107 | LLPointer<LLImageRaw> raw = new LLImageRaw(1,1,4); |
@@ -1112,6 +1115,10 @@ void process_region_handshake(LLMessageSystem* msg, void** user_data) | |||
1112 | 1115 | ||
1113 | void send_agent_pause() | 1116 | void send_agent_pause() |
1114 | { | 1117 | { |
1118 | // *NOTE:Mani Pausing the mainloop timeout. Otherwise a long modal event may cause | ||
1119 | // the thread monitor to timeout. | ||
1120 | LLAppViewer::instance()->stopMainloopTimeout(); | ||
1121 | |||
1115 | // Note: used to check for LLWorld initialization before it became a singleton. | 1122 | // Note: used to check for LLWorld initialization before it became a singleton. |
1116 | // Rather than just remove this check I'm changing it to assure that the message | 1123 | // Rather than just remove this check I'm changing it to assure that the message |
1117 | // system has been initialized. -MG | 1124 | // system has been initialized. -MG |
@@ -1167,6 +1174,8 @@ void send_agent_resume() | |||
1167 | 1174 | ||
1168 | // Reset the FPS counter to avoid an invalid fps | 1175 | // Reset the FPS counter to avoid an invalid fps |
1169 | LLViewerStats::getInstance()->mFPSStat.start(); | 1176 | LLViewerStats::getInstance()->mFPSStat.start(); |
1177 | |||
1178 | LLAppViewer::instance()->startMainloopTimeout(); | ||
1170 | } | 1179 | } |
1171 | 1180 | ||
1172 | 1181 | ||