Converted frequently occuring setting lookups to LLCachedControl
Added LLObjectList::getAvatar(LLUUID) for type-safe and quicker lookup Added F32 overload to LLSD because using F64 needlessly is silly. (And its lack of F32 overload caused issues with LLCachedControl<F32>)
This commit is contained in:
@@ -655,8 +655,10 @@ void LLWorld::updateParticles()
|
||||
|
||||
void LLWorld::updateClouds(const F32 dt)
|
||||
{
|
||||
if (gSavedSettings.getBOOL("FreezeTime") ||
|
||||
!gSavedSettings.getBOOL("SkyUseClassicClouds"))
|
||||
static LLCachedControl<bool> freeze_time("FreezeTime",false);
|
||||
static LLCachedControl<bool> sky_use_classic_clouds("SkyUseClassicClouds",false);
|
||||
if (freeze_time ||
|
||||
!sky_use_classic_clouds)
|
||||
{
|
||||
// don't move clouds in snapshot mode
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user