SH-4080 WIP interesting: random crash on Mac
added controls for curtain delaymeow-7.2.2
parent
f26f0330aa
commit
43f063fe2c
|
|
@ -19,7 +19,7 @@
|
|||
<string>
|
||||
Time before automatically setting AFK (away from keyboard) mode (seconds, 0=never).
|
||||
Valid values are: 0, 120, 300, 600, 1800
|
||||
</string>
|
||||
</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
|
|
@ -14117,5 +14117,27 @@
|
|||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>TeleportArrivalDelay</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Time to wait before displaying world during teleport (seconds)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>2</real>
|
||||
</map>
|
||||
<key>TeleportLocalDelay</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Delay to prevent teleports after starting an in-sim teleport. (seconds)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>1</real>
|
||||
</map>
|
||||
</map>
|
||||
</llsd>
|
||||
|
|
|
|||
|
|
@ -85,9 +85,6 @@ extern bool gShiftFrame;
|
|||
LLPointer<LLViewerTexture> gDisconnectedImagep = NULL;
|
||||
|
||||
// used to toggle renderer back on after teleport
|
||||
const F32 TELEPORT_RENDER_DELAY = 20.f; // Max time a teleport is allowed to take before we raise the curtain
|
||||
const F32 TELEPORT_ARRIVAL_DELAY = 2.f; // Time to preload the world before raising the curtain after we've actually already arrived.
|
||||
const F32 TELEPORT_LOCAL_DELAY = 1.0f; // Delay to prevent teleports after starting an in-sim teleport.
|
||||
BOOL gTeleportDisplay = FALSE;
|
||||
LLFrameTimer gTeleportDisplayTimer;
|
||||
LLFrameTimer gTeleportArrivalTimer;
|
||||
|
|
@ -373,7 +370,8 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
|
|||
{
|
||||
LLFastTimer t(FTM_TELEPORT_DISPLAY);
|
||||
LLAppViewer::instance()->pingMainloopTimeout("Display:Teleport");
|
||||
const F32 TELEPORT_ARRIVAL_DELAY = 2.f; // Time to preload the world before raising the curtain after we've actually already arrived.
|
||||
static LLCachedControl<F32> teleport_arrival_delay(gSavedSettings, "TeleportArrivalDelay");
|
||||
static LLCachedControl<F32> teleport_local_delay(gSavedSettings, "TeleportLocalDelay");
|
||||
|
||||
S32 attach_count = 0;
|
||||
if (isAgentAvatarValid())
|
||||
|
|
@ -441,7 +439,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
|
|||
case LLAgent::TELEPORT_ARRIVING:
|
||||
// Make the user wait while content "pre-caches"
|
||||
{
|
||||
F32 arrival_fraction = (gTeleportArrivalTimer.getElapsedTimeF32() / TELEPORT_ARRIVAL_DELAY);
|
||||
F32 arrival_fraction = (gTeleportArrivalTimer.getElapsedTimeF32() / teleport_arrival_delay());
|
||||
if( arrival_fraction > 1.f )
|
||||
{
|
||||
arrival_fraction = 1.f;
|
||||
|
|
@ -458,7 +456,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
|
|||
// Short delay when teleporting in the same sim (progress screen active but not shown - did not
|
||||
// fall-through from TELEPORT_START)
|
||||
{
|
||||
if( gTeleportDisplayTimer.getElapsedTimeF32() > TELEPORT_LOCAL_DELAY )
|
||||
if( gTeleportDisplayTimer.getElapsedTimeF32() > teleport_local_delay() )
|
||||
{
|
||||
//LLFirstUse::useTeleport();
|
||||
gAgent.setTeleportState( LLAgent::TELEPORT_NONE );
|
||||
|
|
|
|||
|
|
@ -331,7 +331,7 @@ LLviewerOctreeGroup::~LLviewerOctreeGroup()
|
|||
{
|
||||
LLViewerRegion::sCurRegionp->clearVisibleGroup(this);
|
||||
}
|
||||
llassert(LLViewerRegion::sCurRegionp->hasVisibleGroup(this) == false);
|
||||
llassert(!LLViewerRegion::sCurRegionp || LLViewerRegion::sCurRegionp->hasVisibleGroup(this) == false);
|
||||
}
|
||||
|
||||
LLviewerOctreeGroup::LLviewerOctreeGroup(OctreeNode* node) :
|
||||
|
|
|
|||
Loading…
Reference in New Issue