From 8b9ff4487bdc4becef270197f86c6f0bbfd324d1 Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Tue, 19 Jun 2018 12:04:35 -0700 Subject: Adding some timers for tracking --- indra/newview/llvosky.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'indra/newview') diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp index c73b5041c0..52b5b1a3a2 100644 --- a/indra/newview/llvosky.cpp +++ b/indra/newview/llvosky.cpp @@ -53,6 +53,9 @@ #include "llsettingssky.h" #include "llenvironment.h" +#include "lltrace.h" +#include "llfasttimer.h" + #undef min #undef max @@ -74,6 +77,9 @@ static const LLVector2 TEX11 = LLVector2(1.f, 1.f); static const F32 LIGHT_DIRECTION_THRESHOLD = (F32) cosf(DEG_TO_RAD * 1.f); static const F32 COLOR_CHANGE_THRESHOLD = 0.01f; +static LLTrace::BlockTimerStatHandle FTM_VOSKY_UPDATETIMER("VOSky Update Timer Tick"); +static LLTrace::BlockTimerStatHandle FTM_VOSKY_UPDATEFORCED("VOSky Update Forced"); + /*************************************** SkyTex ***************************************/ @@ -609,7 +615,7 @@ bool LLVOSky::updateSky() if (mUpdateTimer.getElapsedTimeF32() > 0.025f) { - mUpdateTimer.reset(); + mUpdateTimer.reset(); const S32 frame = next_frame; mForceUpdate = mForceUpdate || (total_no_tiles == frame); @@ -641,6 +647,8 @@ bool LLVOSky::updateSky() if (mForceUpdate) { + LL_RECORD_BLOCK_TIME(FTM_VOSKY_UPDATEFORCED) + LLSkyTex::stepCurrent(); if (!direction.isExactlyZero()) -- cgit v1.2.3