Attempt to speed up things a little
parent
88d3d07d05
commit
d00f764e2a
|
|
@ -127,7 +127,11 @@ FSLSLBridge :: ~FSLSLBridge()
|
|||
|
||||
bool FSLSLBridge :: lslToViewer(std::string message, LLUUID fromID, LLUUID ownerID)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("UseLSLBridge"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if (!gSavedSettings.getBOOL("UseLSLBridge"))
|
||||
static LLCachedControl<bool> UseLSLBridge(gSavedSettings, "UseLSLBridge");
|
||||
if (!UseLSLBridge)
|
||||
// </FS:PP>
|
||||
return false;
|
||||
|
||||
lldebugs << message << llendl;
|
||||
|
|
@ -249,7 +253,11 @@ bool FSLSLBridge :: lslToViewer(std::string message, LLUUID fromID, LLUUID owner
|
|||
|
||||
bool FSLSLBridge :: viewerToLSL(std::string message, FSLSLBridgeRequestResponder *responder)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("UseLSLBridge"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if (!gSavedSettings.getBOOL("UseLSLBridge"))
|
||||
static LLCachedControl<bool> UseLSLBridge(gSavedSettings, "UseLSLBridge");
|
||||
if (!UseLSLBridge)
|
||||
// </FS:PP>
|
||||
return false;
|
||||
|
||||
if (responder == NULL)
|
||||
|
|
@ -284,10 +292,18 @@ bool FSLSLBridge :: updateBoolSettingValue(std::string msgVal, bool contentVal)
|
|||
//
|
||||
void FSLSLBridge :: recreateBridge()
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("UseLSLBridge"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if (!gSavedSettings.getBOOL("UseLSLBridge"))
|
||||
static LLCachedControl<bool> UseLSLBridge(gSavedSettings, "UseLSLBridge");
|
||||
if (!UseLSLBridge)
|
||||
// </FS:PP>
|
||||
return;
|
||||
|
||||
if (gSavedSettings.getBOOL("NoInventoryLibrary"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if (gSavedSettings.getBOOL("NoInventoryLibrary"))
|
||||
static LLCachedControl<bool> NoInventoryLibrary(gSavedSettings, "NoInventoryLibrary");
|
||||
if (NoInventoryLibrary)
|
||||
// </FS:PP>
|
||||
{
|
||||
llwarns << "Asked to create bridge, but we don't have a library. Aborting." << llendl;
|
||||
reportToNearbyChat(LLTrans::getString("fsbridge_no_library"));
|
||||
|
|
@ -320,10 +336,18 @@ void FSLSLBridge :: recreateBridge()
|
|||
|
||||
void FSLSLBridge :: initBridge()
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("UseLSLBridge"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if (!gSavedSettings.getBOOL("UseLSLBridge"))
|
||||
static LLCachedControl<bool> UseLSLBridge(gSavedSettings, "UseLSLBridge");
|
||||
if (!UseLSLBridge)
|
||||
// </FS:PP>
|
||||
return;
|
||||
|
||||
if (gSavedSettings.getBOOL("NoInventoryLibrary"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if (gSavedSettings.getBOOL("NoInventoryLibrary"))
|
||||
static LLCachedControl<bool> NoInventoryLibrary(gSavedSettings, "NoInventoryLibrary");
|
||||
if (NoInventoryLibrary)
|
||||
// </FS:PP>
|
||||
{
|
||||
llwarns << "Asked to create bridge, but we don't have a library. Aborting." << llendl;
|
||||
reportToNearbyChat(LLTrans::getString("fsbridge_no_library"));
|
||||
|
|
|
|||
|
|
@ -70,7 +70,12 @@ std::string FSMoneyTracker::appendTime()
|
|||
time_t utc_time;
|
||||
utc_time = time_corrected();
|
||||
std::string timeStr ="["+ LLTrans::getString("TimeHour")+"]:[" + LLTrans::getString("TimeMin")+"]";
|
||||
if (gSavedSettings.getBOOL("FSSecondsinChatTimestamps"))
|
||||
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if (gSavedSettings.getBOOL("FSSecondsinChatTimestamps"))
|
||||
static LLCachedControl<bool> FSSecondsinChatTimestamps(gSavedSettings, "FSSecondsinChatTimestamps");
|
||||
if (FSSecondsinChatTimestamps)
|
||||
// </FS:PP>
|
||||
{
|
||||
timeStr += ":[" + LLTrans::getString("TimeSec")+"]";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -216,13 +216,21 @@ F32 lggBeamMaps::setUpAndGetDuration()
|
|||
lggBeamData dot;
|
||||
|
||||
dot.p = LLVector3d(beamData["offset"]);
|
||||
dot.p *= (gSavedSettings.getF32("FSBeamShapeScale")*2.0f);
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// dot.p *= (gSavedSettings.getF32("FSBeamShapeScale")*2.0f);
|
||||
static LLCachedControl<F32> FSBeamShapeScale(gSavedSettings, "FSBeamShapeScale");
|
||||
dot.p *= (FSBeamShapeScale*2.0f);
|
||||
// </FS:PP>
|
||||
LLColor4 color = LLColor4(beamData["color"]);
|
||||
dot.c = LLColor4U(color);
|
||||
dots.push_back(dot);
|
||||
}
|
||||
|
||||
F32 maxBPerQS = gSavedSettings.getF32("FSMaxBeamsPerSecond") / 4.0f;
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// F32 maxBPerQS = gSavedSettings.getF32("FSMaxBeamsPerSecond") / 4.0f;
|
||||
static LLCachedControl<F32> FSMaxBeamsPerSecond(gSavedSettings, "FSMaxBeamsPerSecond");
|
||||
F32 maxBPerQS = FSMaxBeamsPerSecond / 4.0f;
|
||||
// </FS:PP>
|
||||
duration = llceil((F32)(myPicture.size()) / maxBPerQS) * 0.25f;
|
||||
llinfos << "reading it all now size is " << myPicture.size() << " and duration is " << duration << llendl;
|
||||
|
||||
|
|
@ -354,7 +362,11 @@ std::vector<std::string> lggBeamMaps::getColorsFileNames()
|
|||
}
|
||||
void lggBeamMaps::stopBeamChat()
|
||||
{
|
||||
if(gSavedSettings.getBOOL("FSParticleChat"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if(gSavedSettings.getBOOL("FSParticleChat"))
|
||||
static LLCachedControl<bool> FSParticleChat(gSavedSettings, "FSParticleChat");
|
||||
if(FSParticleChat)
|
||||
// </FS:PP>
|
||||
{
|
||||
if(sPartsNow != FALSE)
|
||||
{
|
||||
|
|
@ -376,7 +388,11 @@ void lggBeamMaps::stopBeamChat()
|
|||
}
|
||||
void lggBeamMaps::updateBeamChat(LLVector3d currentPos)
|
||||
{
|
||||
if(gSavedSettings.getBOOL("FSParticleChat"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if(gSavedSettings.getBOOL("FSParticleChat"))
|
||||
static LLCachedControl<bool> FSParticleChat(gSavedSettings, "FSParticleChat");
|
||||
if(FSParticleChat)
|
||||
// </FS:PP>
|
||||
{
|
||||
if(sPartsNow != TRUE)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -198,7 +198,11 @@ LLVector3 LLBreastMotion::calculateAcceleration_local(const LLVector3 &new_char_
|
|||
BOOL LLBreastMotion::onUpdate(F32 time, U8* joint_mask)
|
||||
{
|
||||
// Skip if disabled globally.
|
||||
if (!gSavedSettings.getBOOL("AvatarPhysics"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if (!gSavedSettings.getBOOL("AvatarPhysics"))
|
||||
static LLCachedControl<bool> AvatarPhysics(gSavedSettings, "AvatarPhysics");
|
||||
if (!AvatarPhysics)
|
||||
// </FS:PP>
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
|
@ -320,7 +324,11 @@ BOOL LLBreastMotion::onUpdate(F32 time, U8* joint_mask)
|
|||
mBreastVelocity_local_vec.clamp(-mBreastMaxVelocityParam*100.0, mBreastMaxVelocityParam*100.0);
|
||||
|
||||
// Temporary debugging setting to cause all avatars to move, for profiling purposes.
|
||||
if (gSavedSettings.getBOOL("AvatarPhysicsTest"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if (gSavedSettings.getBOOL("AvatarPhysicsTest"))
|
||||
static LLCachedControl<bool> AvatarPhysicsTest(gSavedSettings, "AvatarPhysicsTest");
|
||||
if (AvatarPhysicsTest)
|
||||
// </FS:PP>
|
||||
{
|
||||
mBreastVelocity_local_vec[0] = sin(mTimer.getElapsedTimeF32()*4.0)*5.0;
|
||||
mBreastVelocity_local_vec[1] = sin(mTimer.getElapsedTimeF32()*3.0)*5.0;
|
||||
|
|
|
|||
|
|
@ -746,7 +746,12 @@ void LLAvatarTracker::processChangeUserRights(LLMessageSystem* msg, void**)
|
|||
void LLAvatarTracker::processNotify(LLMessageSystem* msg, bool online)
|
||||
{
|
||||
S32 count = msg->getNumberOfBlocksFast(_PREHASH_AgentBlock);
|
||||
BOOL chat_notify = gSavedSettings.getBOOL("ChatOnlineNotification");
|
||||
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// BOOL chat_notify = gSavedSettings.getBOOL("ChatOnlineNotification");
|
||||
static LLCachedControl<bool> ChatOnlineNotification(gSavedSettings, "ChatOnlineNotification");
|
||||
BOOL chat_notify = ChatOnlineNotification;
|
||||
// </FS:PP>
|
||||
|
||||
lldebugs << "Received " << count << " online notifications **** " << llendl;
|
||||
if(count > 0)
|
||||
|
|
@ -783,7 +788,12 @@ void LLAvatarTracker::processNotify(LLMessageSystem* msg, bool online)
|
|||
gInventory.addChangedMask(LLInventoryObserver::CALLING_CARD, LLUUID::null);
|
||||
}
|
||||
//[FIX FIRE-3522 : SJ] Notify Online/Offline to Nearby Chat even if chat_notify isnt true
|
||||
if(chat_notify||LGGContactSets::getInstance()->notifyForFriend(agent_id)||gSavedSettings.getBOOL("OnlineOfflinetoNearbyChat"))
|
||||
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if(chat_notify||LGGContactSets::getInstance()->notifyForFriend(agent_id)||gSavedSettings.getBOOL("OnlineOfflinetoNearbyChat"))
|
||||
static LLCachedControl<bool> OnlineOfflinetoNearbyChat(gSavedSettings, "OnlineOfflinetoNearbyChat");
|
||||
if(chat_notify||LGGContactSets::getInstance()->notifyForFriend(agent_id)||OnlineOfflinetoNearbyChat)
|
||||
// </FS:PP>
|
||||
{
|
||||
// Look up the name of this agent for the notification
|
||||
LLAvatarNameCache::get(agent_id,
|
||||
|
|
@ -807,11 +817,19 @@ static void on_avatar_name_cache_notify(const LLUUID& agent_id,
|
|||
// Ansariel: No please! Take preference settings into account!
|
||||
LLSD args;
|
||||
|
||||
if ((gSavedSettings.getBOOL("NameTagShowUsernames")) && (gSavedSettings.getBOOL("UseDisplayNames")))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if ((gSavedSettings.getBOOL("NameTagShowUsernames")) && (gSavedSettings.getBOOL("UseDisplayNames")))
|
||||
static LLCachedControl<bool> NameTagShowUsernames(gSavedSettings, "NameTagShowUsernames");
|
||||
static LLCachedControl<bool> UseDisplayNames(gSavedSettings, "UseDisplayNames");
|
||||
if ((NameTagShowUsernames) && (UseDisplayNames))
|
||||
// </FS:PP>
|
||||
{
|
||||
args["NAME"] = av_name.getCompleteName();
|
||||
}
|
||||
else if (gSavedSettings.getBOOL("UseDisplayNames"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// else if (gSavedSettings.getBOOL("UseDisplayNames"))
|
||||
else if (UseDisplayNames)
|
||||
// </FS:PP>
|
||||
{
|
||||
args["NAME"] = av_name.mDisplayName;
|
||||
}
|
||||
|
|
@ -856,7 +874,13 @@ static void on_avatar_name_cache_notify(const LLUUID& agent_id,
|
|||
// online/offline times to be referenced in chat & logged.
|
||||
// [FIRE-3522 : SJ] Only show Online/Offline toast for groups which have enabled "Show notice for this set" and in the settingpage of CS is checked that the messages need to be in Toasts
|
||||
// or for groups which have enabled "Show notice for this set" and in the settingpage of CS is checked that the messages need to be in Nearby Chat
|
||||
if ((gSavedSettings.getBOOL("OnlineOfflinetoNearbyChat")) || (gSavedSettings.getBOOL("FSContactSetsNotificationNearbyChat") && LGGContactSets::getInstance()->notifyForFriend(agent_id)))
|
||||
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if ((gSavedSettings.getBOOL("OnlineOfflinetoNearbyChat")) || (gSavedSettings.getBOOL("FSContactSetsNotificationNearbyChat") && LGGContactSets::getInstance()->notifyForFriend(agent_id)))
|
||||
static LLCachedControl<bool> OnlineOfflinetoNearbyChat(gSavedSettings, "OnlineOfflinetoNearbyChat");
|
||||
static LLCachedControl<bool> FSContactSetsNotificationNearbyChat(gSavedSettings, "FSContactSetsNotificationNearbyChat");
|
||||
if ((OnlineOfflinetoNearbyChat) || (FSContactSetsNotificationNearbyChat && LGGContactSets::getInstance()->notifyForFriend(agent_id)))
|
||||
// </FS:PP>
|
||||
{
|
||||
static LLCachedControl<bool> history_only(gSavedSettings, "OnlineOfflinetoNearbyChatHistory"); // LO - Adding a setting to show online/offline notices only in chat history. Helps prevent your screen from being filled with online notices on login.
|
||||
LLChat chat;
|
||||
|
|
@ -1021,7 +1045,12 @@ bool LLCollectMappableBuddies::operator()(const LLUUID& buddy_id, LLRelationship
|
|||
{
|
||||
// <FS:Ansariel> Friend names on worldmap should respect display name settings
|
||||
//mMappable.insert(value);
|
||||
if (LLAvatarNameCache::useDisplayNames() && gSavedSettings.getBOOL("NameTagShowUsernames"))
|
||||
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if (LLAvatarNameCache::useDisplayNames() && gSavedSettings.getBOOL("NameTagShowUsernames"))
|
||||
static LLCachedControl<bool> NameTagShowUsernames(gSavedSettings, "NameTagShowUsernames");
|
||||
if (LLAvatarNameCache::useDisplayNames() && NameTagShowUsernames)
|
||||
// </FS:PP>
|
||||
{
|
||||
buddy_map_t::value_type value(av_name.getCompleteName(), buddy_id);
|
||||
mMappable.insert(value);
|
||||
|
|
|
|||
|
|
@ -100,11 +100,15 @@ void LLDrawPoolAlpha::renderDeferred(S32 pass)
|
|||
|
||||
S32 LLDrawPoolAlpha::getNumPostDeferredPasses()
|
||||
{
|
||||
static LLCachedControl<bool> RenderDepthOfField(gSavedSettings, "RenderDepthOfField"); // <FS:PP> Attempt to speed up things a little
|
||||
if (LLPipeline::sImpostorRender)
|
||||
{ //skip depth buffer filling pass when rendering impostors
|
||||
return 1;
|
||||
}
|
||||
else if (gSavedSettings.getBOOL("RenderDepthOfField"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// else if (gSavedSettings.getBOOL("RenderDepthOfField"))
|
||||
else if (RenderDepthOfField)
|
||||
// </FS:PP>
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -803,7 +803,11 @@ void LLDrawPoolBump::endBump(U32 pass)
|
|||
|
||||
S32 LLDrawPoolBump::getNumDeferredPasses()
|
||||
{
|
||||
if (gSavedSettings.getBOOL("RenderObjectBump"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if (gSavedSettings.getBOOL("RenderObjectBump"))
|
||||
static LLCachedControl<bool> RenderObjectBump(gSavedSettings, "RenderObjectBump");
|
||||
if (RenderObjectBump)
|
||||
// </FS:PP>
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
@ -1144,7 +1148,11 @@ void LLBumpImageList::generateNormalMapFromAlpha(LLImageRaw* src, LLImageRaw* nr
|
|||
|
||||
S32 src_cmp = src->getComponents();
|
||||
|
||||
F32 norm_scale = gSavedSettings.getF32("RenderNormalMapScale");
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// F32 norm_scale = gSavedSettings.getF32("RenderNormalMapScale");
|
||||
static LLCachedControl<F32> RenderNormalMapScale(gSavedSettings, "RenderNormalMapScale");
|
||||
F32 norm_scale = RenderNormalMapScale;
|
||||
// </FS:PP>
|
||||
|
||||
U32 idx = 0;
|
||||
//generate normal map from pseudo-heightfield
|
||||
|
|
@ -1373,7 +1381,11 @@ void LLBumpImageList::onSourceLoaded( BOOL success, LLViewerTexture *src_vi, LLI
|
|||
LLGLDisable blend(GL_BLEND);
|
||||
gGL.setColorMask(TRUE, TRUE);
|
||||
gNormalMapGenProgram.bind();
|
||||
gNormalMapGenProgram.uniform1f("norm_scale", gSavedSettings.getF32("RenderNormalMapScale"));
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// gNormalMapGenProgram.uniform1f("norm_scale", gSavedSettings.getF32("RenderNormalMapScale"));
|
||||
static LLCachedControl<F32> RenderNormalMapScale(gSavedSettings, "RenderNormalMapScale");
|
||||
gNormalMapGenProgram.uniform1f("norm_scale", RenderNormalMapScale);
|
||||
// </FS:PP>
|
||||
gNormalMapGenProgram.uniform1f("stepX", 1.f/bump->getWidth());
|
||||
gNormalMapGenProgram.uniform1f("stepY", 1.f/bump->getHeight());
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,11 @@ void LLDrawPoolGround::prerender()
|
|||
|
||||
void LLDrawPoolGround::render(S32 pass)
|
||||
{
|
||||
if (mDrawFace.empty() || !gSavedSettings.getBOOL("RenderGround"))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if (mDrawFace.empty() || !gSavedSettings.getBOOL("RenderGround"))
|
||||
static LLCachedControl<bool> RenderGround(gSavedSettings, "RenderGround");
|
||||
if (mDrawFace.empty() || !RenderGround)
|
||||
// </FS:PP>
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,8 +66,16 @@ LLDrawPoolTerrain::LLDrawPoolTerrain(LLViewerTexture *texturep) :
|
|||
U32 int_format = GL_ALPHA;
|
||||
|
||||
// Hack!
|
||||
sDetailScale = 1.f/gSavedSettings.getF32("RenderTerrainScale");
|
||||
sDetailMode = gSavedSettings.getS32("RenderTerrainDetail");
|
||||
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// sDetailScale = 1.f/gSavedSettings.getF32("RenderTerrainScale");
|
||||
// sDetailMode = gSavedSettings.getS32("RenderTerrainDetail");
|
||||
static LLCachedControl<F32> RenderTerrainScale(gSavedSettings, "RenderTerrainScale");
|
||||
static LLCachedControl<S32> RenderTerrainDetail(gSavedSettings, "RenderTerrainDetail");
|
||||
sDetailScale = 1.f/RenderTerrainScale;
|
||||
sDetailMode = RenderTerrainDetail;
|
||||
// </FS:PP>
|
||||
|
||||
mAlphaRampImagep = LLViewerTextureManager::getFetchedTextureFromFile("alpha_gradient.tga",
|
||||
TRUE, LLViewerTexture::BOOST_UI,
|
||||
LLViewerTexture::FETCHED_TEXTURE,
|
||||
|
|
|
|||
|
|
@ -174,9 +174,14 @@ void LLDrawPoolTree::endDeferredPass(S32 pass)
|
|||
void LLDrawPoolTree::beginShadowPass(S32 pass)
|
||||
{
|
||||
LLFastTimer t(FTM_SHADOW_TREE);
|
||||
|
||||
glPolygonOffset(gSavedSettings.getF32("RenderDeferredTreeShadowOffset"),
|
||||
gSavedSettings.getF32("RenderDeferredTreeShadowBias"));
|
||||
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// glPolygonOffset(gSavedSettings.getF32("RenderDeferredTreeShadowOffset"),
|
||||
// gSavedSettings.getF32("RenderDeferredTreeShadowBias"));
|
||||
static LLCachedControl<F32> RenderDeferredTreeShadowOffset(gSavedSettings, "RenderDeferredTreeShadowOffset");
|
||||
static LLCachedControl<F32> RenderDeferredTreeShadowBias(gSavedSettings, "RenderDeferredTreeShadowBias");
|
||||
glPolygonOffset(RenderDeferredTreeShadowOffset, RenderDeferredTreeShadowBias);
|
||||
// </FS:PP>
|
||||
|
||||
gDeferredTreeShadowProgram.bind();
|
||||
gDeferredTreeShadowProgram.setMinimumAlpha(0.5f);
|
||||
|
|
@ -190,9 +195,15 @@ void LLDrawPoolTree::renderShadow(S32 pass)
|
|||
void LLDrawPoolTree::endShadowPass(S32 pass)
|
||||
{
|
||||
LLFastTimer t(FTM_SHADOW_TREE);
|
||||
|
||||
glPolygonOffset(gSavedSettings.getF32("RenderDeferredSpotShadowOffset"),
|
||||
gSavedSettings.getF32("RenderDeferredSpotShadowBias"));
|
||||
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// glPolygonOffset(gSavedSettings.getF32("RenderDeferredSpotShadowOffset"),
|
||||
// gSavedSettings.getF32("RenderDeferredSpotShadowBias"));
|
||||
static LLCachedControl<F32> RenderDeferredSpotShadowOffset(gSavedSettings, "RenderDeferredSpotShadowOffset");
|
||||
static LLCachedControl<F32> RenderDeferredSpotShadowBias(gSavedSettings, "RenderDeferredSpotShadowBias");
|
||||
glPolygonOffset(RenderDeferredSpotShadowOffset, RenderDeferredSpotShadowBias);
|
||||
// </FS:PP>
|
||||
|
||||
gDeferredTreeShadowProgram.unbind();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2711,6 +2711,8 @@ BOOL LLViewerWindow::handleKey(KEY key, MASK mask)
|
|||
// Traverses up the hierarchy
|
||||
if( keyboard_focus )
|
||||
{
|
||||
static LLCachedControl<bool> ArrowKeysAlwaysMove(gSavedSettings, "ArrowKeysAlwaysMove"); // <FS:PP> Attempt to speed up things a little
|
||||
|
||||
// <FS:Zi> Remove floating chat bar
|
||||
// LLNearbyChatBar* nearby_chat = LLFloaterReg::findTypedInstance<LLNearbyChatBar>("chat_bar");
|
||||
|
||||
|
|
@ -2728,7 +2730,10 @@ BOOL LLViewerWindow::handleKey(KEY key, MASK mask)
|
|||
// || gSavedSettings.getBOOL("ArrowKeysAlwaysMove"))
|
||||
if(LLNearbyChat::instance().defaultChatBarHasFocus() &&
|
||||
(LLNearbyChat::instance().defaultChatBarIsIdle() ||
|
||||
gSavedSettings.getBOOL("ArrowKeysAlwaysMove")))
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// gSavedSettings.getBOOL("ArrowKeysAlwaysMove")))
|
||||
ArrowKeysAlwaysMove))
|
||||
// </FS:PP>
|
||||
// </FS:Zi>
|
||||
{
|
||||
// let Control-Up and Control-Down through for chat line history,
|
||||
|
|
@ -2783,7 +2788,12 @@ BOOL LLViewerWindow::handleKey(KEY key, MASK mask)
|
|||
// If "Pressing letter keys starts local chat" option is selected, we are not in mouselook,
|
||||
// no view has keyboard focus, this is a printable character key (and no modifier key is
|
||||
// pressed except shift), then give focus to nearby chat (STORM-560)
|
||||
if ( gSavedSettings.getS32("LetterKeysFocusChatBar") && !gAgentCamera.cameraMouselook() &&
|
||||
|
||||
// <FS:PP> Attempt to speed up things a little
|
||||
// if ( gSavedSettings.getS32("LetterKeysFocusChatBar") && !gAgentCamera.cameraMouselook() &&
|
||||
static LLCachedControl<S32> LetterKeysFocusChatBar(gSavedSettings, "LetterKeysFocusChatBar");
|
||||
if ( LetterKeysFocusChatBar && !gAgentCamera.cameraMouselook() &&
|
||||
// </FS:PP>
|
||||
!keyboard_focus && key < 0x80 && (mask == MASK_NONE || mask == MASK_SHIFT) )
|
||||
{
|
||||
// <FS:Zi> Remove floating chat bar
|
||||
|
|
|
|||
Loading…
Reference in New Issue