Remove LLMemType and related files
This commit is contained in:
@@ -318,7 +318,6 @@ set(viewer_SOURCE_FILES
|
||||
llmarketplacenotifications.cpp
|
||||
llmediactrl.cpp
|
||||
llmediaremotectrl.cpp
|
||||
llmemoryview.cpp
|
||||
llmenucommands.cpp
|
||||
llmenuoptionpathfindingrebakenavmesh.cpp
|
||||
llmeshrepository.cpp
|
||||
@@ -821,7 +820,6 @@ set(viewer_HEADER_FILES
|
||||
llmarketplacenotifications.h
|
||||
llmediactrl.h
|
||||
llmediaremotectrl.h
|
||||
llmemoryview.h
|
||||
llmenuoptionpathfindingrebakenavmesh.h
|
||||
llmenucommands.h
|
||||
llmeshrepository.h
|
||||
|
||||
@@ -1096,7 +1096,6 @@ static LLFastTimer::DeclareTimer FTM_STATEMACHINE("State Machine");
|
||||
|
||||
bool LLAppViewer::mainLoop()
|
||||
{
|
||||
LLMemType mt1(LLMemType::MTYPE_MAIN);
|
||||
mMainloopTimeout = new LLWatchdogTimeout();
|
||||
// *FIX:Mani - Make this a setting, once new settings exist in this branch.
|
||||
|
||||
@@ -1216,7 +1215,6 @@ bool LLAppViewer::mainLoop()
|
||||
&& !gViewerWindow->getShowProgress()
|
||||
&& !gFocusMgr.focusLocked())
|
||||
{
|
||||
LLMemType mjk(LLMemType::MTYPE_JOY_KEY);
|
||||
joystick->scanJoystick();
|
||||
gKeyboard->scanKeyboard();
|
||||
if(isCrouch)
|
||||
@@ -1236,7 +1234,6 @@ bool LLAppViewer::mainLoop()
|
||||
|
||||
if (gAres != NULL && gAres->isInitialized())
|
||||
{
|
||||
LLMemType mt_ip(LLMemType::MTYPE_IDLE_PUMP);
|
||||
pingMainloopTimeout("Main:ServicePump");
|
||||
LLFastTimer t4(FTM_PUMP);
|
||||
{
|
||||
@@ -1285,7 +1282,6 @@ bool LLAppViewer::mainLoop()
|
||||
|
||||
// Sleep and run background threads
|
||||
{
|
||||
LLMemType mt_sleep(LLMemType::MTYPE_SLEEP);
|
||||
LLFastTimer t2(FTM_SLEEP);
|
||||
static const LLCachedControl<bool> run_multiple_threads("RunMultipleThreads",false);
|
||||
static const LLCachedControl<S32> yield_time("YieldTime", -1);
|
||||
@@ -3823,7 +3819,6 @@ static LLFastTimer::DeclareTimer FTM_VLMANAGER("VL Manager");
|
||||
///////////////////////////////////////////////////////
|
||||
void LLAppViewer::idle()
|
||||
{
|
||||
LLMemType mt_idle(LLMemType::MTYPE_IDLE);
|
||||
pingMainloopTimeout("Main:Idle");
|
||||
|
||||
// Update frame timers
|
||||
@@ -4446,7 +4441,6 @@ static LLFastTimer::DeclareTimer FTM_DYNAMIC_THROTTLE("Dynamic Throttle");
|
||||
static LLFastTimer::DeclareTimer FTM_CHECK_REGION_CIRCUIT("Check Region Circuit");
|
||||
void LLAppViewer::idleNetwork()
|
||||
{
|
||||
LLMemType mt_in(LLMemType::MTYPE_IDLE_NETWORK);
|
||||
pingMainloopTimeout("idleNetwork");
|
||||
|
||||
gObjectList.mNumNewObjects = 0;
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
#include "llcommandlineparser.h"
|
||||
|
||||
#include "lldiriterator.h"
|
||||
#include "llmemtype.h"
|
||||
#include "llurldispatcher.h" // SLURL from other app instance
|
||||
#include "llviewernetwork.h"
|
||||
#include "llviewercontrol.h"
|
||||
@@ -102,8 +101,6 @@ int main( int argc, char **argv )
|
||||
Debug(debug::init());
|
||||
Debug(libcw_do.on());
|
||||
|
||||
LLMemType mt1(LLMemType::MTYPE_STARTUP);
|
||||
|
||||
#if LL_SOLARIS && defined(__sparc)
|
||||
asm ("ta\t6"); // NOTE: Make sure memory alignment is enforced on SPARC
|
||||
#endif
|
||||
|
||||
@@ -39,8 +39,6 @@
|
||||
#include "llappviewermacosx.h"
|
||||
#include "llcommandlineparser.h"
|
||||
|
||||
#include "llmemtype.h"
|
||||
|
||||
#include "lldiriterator.h"
|
||||
#include "llviewernetwork.h"
|
||||
#include "llviewercontrol.h"
|
||||
@@ -74,8 +72,6 @@ namespace
|
||||
|
||||
int main( int argc, char **argv )
|
||||
{
|
||||
LLMemType mt1(LLMemType::MTYPE_STARTUP);
|
||||
|
||||
#if LL_SOLARIS && defined(__sparc)
|
||||
asm ("ta\t6"); // NOTE: Make sure memory alignment is enforced on SPARC
|
||||
#endif
|
||||
|
||||
@@ -40,8 +40,6 @@
|
||||
|
||||
#include "llappviewerwin32.h"
|
||||
|
||||
#include "llmemtype.h"
|
||||
|
||||
#include "llwindowwin32.cpp" // *FIX: for setting gIconResource.
|
||||
#include "res/resource.h" // *FIX: for setting gIconResource.
|
||||
|
||||
@@ -159,8 +157,6 @@ int APIENTRY WINMAIN(HINSTANCE hInstance,
|
||||
LPSTR lpCmdLine,
|
||||
int nCmdShow)
|
||||
{
|
||||
LLMemType mt1(LLMemType::MTYPE_STARTUP);
|
||||
|
||||
const S32 MAX_HEAPS = 255;
|
||||
DWORD heap_enable_lfh_error[MAX_HEAPS];
|
||||
S32 num_heaps = 0;
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
// library includes
|
||||
#include "llframestatview.h"
|
||||
#include "llfasttimerview.h"
|
||||
#include "llmemoryview.h"
|
||||
#include "llconsole.h"
|
||||
#include "lltextureview.h"
|
||||
#include "llresmgr.h"
|
||||
@@ -84,13 +83,6 @@ LLDebugView::LLDebugView(const std::string& name, const LLRect &rect)
|
||||
mFastTimerView->setVisible(FALSE); // start invisible
|
||||
addChild(mFastTimerView);
|
||||
|
||||
r.set(25, rect.getHeight() - 50, rect.getWidth()/2, rect.getHeight() - 450);
|
||||
mMemoryView = new LLMemoryView("memory", r);
|
||||
mMemoryView->setFollowsTop();
|
||||
mMemoryView->setFollowsLeft();
|
||||
mMemoryView->setVisible(FALSE); // start invisible
|
||||
addChild(mMemoryView);
|
||||
|
||||
r.set(150, rect.getHeight() - 50, 870, 100);
|
||||
gTextureView = new LLTextureView("gTextureView", r);
|
||||
gTextureView->setRect(r);
|
||||
|
||||
@@ -762,8 +762,6 @@ void LLDrawable::updateDistance(LLCamera& camera, bool force_update)
|
||||
|
||||
void LLDrawable::updateTexture()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_DRAWABLE);
|
||||
|
||||
if (isDead())
|
||||
{
|
||||
llwarns << "Dead drawable updating texture!" << llendl;
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
#include "llvector4a.h"
|
||||
#include "llquaternion.h"
|
||||
#include "xform.h"
|
||||
#include "llmemtype.h"
|
||||
#include "lldarray.h"
|
||||
#include "llviewerobject.h"
|
||||
#include "llrect.h"
|
||||
|
||||
@@ -265,8 +265,6 @@ void LLFace::setPool(LLFacePool* pool)
|
||||
|
||||
void LLFace::setPool(LLFacePool* new_pool, LLViewerTexture *texturep)
|
||||
{
|
||||
LLMemType mt1(LLMemType::MTYPE_DRAWABLE);
|
||||
|
||||
if (!new_pool)
|
||||
{
|
||||
llerrs << "Setting pool to null!" << llendl;
|
||||
@@ -442,8 +440,6 @@ U16 LLFace::getGeometryAvatar(
|
||||
LLStrider<F32> &vertex_weights,
|
||||
LLStrider<LLVector4> &clothing_weights)
|
||||
{
|
||||
LLMemType mt1(LLMemType::MTYPE_DRAWABLE);
|
||||
|
||||
if (mVertexBuffer.notNull())
|
||||
{
|
||||
mVertexBuffer->getVertexStrider (vertices, mGeomIndex, mGeomCount);
|
||||
@@ -459,8 +455,6 @@ U16 LLFace::getGeometryAvatar(
|
||||
U16 LLFace::getGeometry(LLStrider<LLVector3> &vertices, LLStrider<LLVector3> &normals,
|
||||
LLStrider<LLVector2> &tex_coords, LLStrider<U16> &indicesp)
|
||||
{
|
||||
LLMemType mt1(LLMemType::MTYPE_DRAWABLE);
|
||||
|
||||
if (mVertexBuffer.notNull())
|
||||
{
|
||||
mVertexBuffer->getVertexStrider(vertices, mGeomIndex, mGeomCount);
|
||||
@@ -776,8 +770,6 @@ bool less_than_max_mag(const LLVector4a& vec)
|
||||
BOOL LLFace::genVolumeBBoxes(const LLVolume &volume, S32 f,
|
||||
const LLMatrix4& mat_vert_in, const LLMatrix3& mat_normal_in, BOOL global_volume)
|
||||
{
|
||||
LLMemType mt1(LLMemType::MTYPE_DRAWABLE);
|
||||
|
||||
//get bounding box
|
||||
if (mDrawablep->isState(LLDrawable::REBUILD_VOLUME | LLDrawable::REBUILD_POSITION | LLDrawable::REBUILD_RIGGED))
|
||||
{
|
||||
|
||||
@@ -378,8 +378,6 @@ void LLFloaterBulkPermission::handleInventory(LLViewerObject* viewer_obj, LLInv
|
||||
|
||||
void LLFloaterBulkPermission::updateInventory(LLViewerObject* object, LLViewerInventoryItem* item, U8 key, bool is_new)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
|
||||
// This slices the object into what we're concerned about on the viewer.
|
||||
// The simulator will take the permissions and transfer ownership.
|
||||
LLPointer<LLViewerInventoryItem> task_item =
|
||||
|
||||
@@ -1,346 +0,0 @@
|
||||
/**
|
||||
* @file llmemoryview.cpp
|
||||
* @brief LLMemoryView class implementation
|
||||
*
|
||||
* $LicenseInfo:firstyear=2001&license=viewergpl$
|
||||
*
|
||||
* Copyright (c) 2001-2009, Linden Research, Inc.
|
||||
*
|
||||
* Second Life Viewer Source Code
|
||||
* The source code in this file ("Source Code") is provided by Linden Lab
|
||||
* to you under the terms of the GNU General Public License, version 2.0
|
||||
* ("GPL"), unless you have obtained a separate licensing agreement
|
||||
* ("Other License"), formally executed by you and Linden Lab. Terms of
|
||||
* the GPL can be found in doc/GPL-license.txt in this distribution, or
|
||||
* online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
|
||||
*
|
||||
* There are special exceptions to the terms and conditions of the GPL as
|
||||
* it is applied to this Source Code. View the full text of the exception
|
||||
* in the file doc/FLOSS-exception.txt in this software distribution, or
|
||||
* online at
|
||||
* http://secondlifegrid.net/programs/open_source/licensing/flossexception
|
||||
*
|
||||
* By copying, modifying or distributing this software, you acknowledge
|
||||
* that you have read and understood your obligations described above,
|
||||
* and agree to abide by those obligations.
|
||||
*
|
||||
* ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
|
||||
* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
|
||||
* COMPLETENESS OR PERFORMANCE.
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#include "llviewerprecompiledheaders.h"
|
||||
|
||||
#include "llmemoryview.h"
|
||||
|
||||
#include "llappviewer.h"
|
||||
#include "llallocator_heap_profile.h"
|
||||
#include "llgl.h" // LLGLSUIDefault
|
||||
#include "llviewerwindow.h"
|
||||
#include "llviewercontrol.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
|
||||
#include "llmemory.h"
|
||||
|
||||
|
||||
|
||||
LLMemoryView::LLMemoryView(const std::string& name, const LLRect& rect)
|
||||
: LLView(name, rect, TRUE),
|
||||
mPaused(FALSE),
|
||||
//mDelay(120),
|
||||
mAlloc(NULL)
|
||||
{
|
||||
setVisible(FALSE);
|
||||
}
|
||||
|
||||
LLMemoryView::~LLMemoryView()
|
||||
{
|
||||
}
|
||||
|
||||
BOOL LLMemoryView::handleMouseDown(S32 x, S32 y, MASK mask)
|
||||
{
|
||||
if (mask & MASK_SHIFT)
|
||||
{
|
||||
}
|
||||
else if (mask & MASK_CONTROL)
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
mPaused = !mPaused;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL LLMemoryView::handleMouseUp(S32 x, S32 y, MASK mask)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
BOOL LLMemoryView::handleHover(S32 x, S32 y, MASK mask)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void LLMemoryView::refreshProfile()
|
||||
{
|
||||
/*
|
||||
LLAllocator & alloc = LLAppViewer::instance()->getAllocator();
|
||||
if(alloc.isProfiling()) {
|
||||
std::string profile_text = alloc.getRawProfile();
|
||||
|
||||
boost::algorithm::split(mLines, profile_text, boost::bind(std::equal_to<llwchar>(), '\n', _1));
|
||||
} else {
|
||||
mLines.clear();
|
||||
}
|
||||
*/
|
||||
if (mAlloc == NULL) {
|
||||
mAlloc = &LLAppViewer::instance()->getAllocator();
|
||||
}
|
||||
|
||||
mLines.clear();
|
||||
|
||||
#if MEM_TRACK_MEM
|
||||
if(mAlloc->isProfiling())
|
||||
{
|
||||
const LLAllocatorHeapProfile &prof = mAlloc->getProfile();
|
||||
for(size_t i = 0; i < prof.mLines.size(); ++i)
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "Unfreed Mem: " << (prof.mLines[i].mLiveSize >> 20) << " M Trace: ";
|
||||
for(size_t k = 0; k < prof.mLines[i].mTrace.size(); ++k)
|
||||
{
|
||||
ss << LLMemType::getNameFromID(prof.mLines[i].mTrace[k]) << " ";
|
||||
}
|
||||
mLines.push_back(utf8string_to_wstring(ss.str()));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void LLMemoryView::draw()
|
||||
{
|
||||
const S32 UPDATE_INTERVAL = 60;
|
||||
const S32 MARGIN_AMT = 10;
|
||||
static S32 curUpdate = UPDATE_INTERVAL;
|
||||
static const LLCachedControl<LLColor4> console_background(gColors,"ConsoleBackground");
|
||||
static LLColor4 s_console_color = console_background;
|
||||
|
||||
// setup update interval
|
||||
if (curUpdate >= UPDATE_INTERVAL)
|
||||
{
|
||||
refreshProfile();
|
||||
curUpdate = 0;
|
||||
}
|
||||
curUpdate++;
|
||||
|
||||
// setup window properly
|
||||
S32 height = (S32) (gViewerWindow->getWindowRectScaled().getHeight()*0.75f);
|
||||
S32 width = (S32) (gViewerWindow->getWindowRectScaled().getWidth() * 0.9f);
|
||||
setRect(LLRect().setLeftTopAndSize(getRect().mLeft, getRect().mTop, width, height));
|
||||
|
||||
// setup window color
|
||||
static const LLCachedControl<F32> console_background_opacity("ConsoleBackgroundOpacity");
|
||||
F32 console_opacity = llclamp(console_background_opacity.get(), 0.f, 1.f);
|
||||
LLColor4 color = s_console_color;
|
||||
color.mV[VALPHA] *= console_opacity;
|
||||
|
||||
LLGLSUIDefault gls_ui;
|
||||
gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
|
||||
gl_rect_2d(0, height, width, 0, color);
|
||||
|
||||
LLFontGL * font = LLFontGL::getFontSansSerifSmall();
|
||||
|
||||
// draw remaining lines
|
||||
F32 y_pos = 0.f;
|
||||
F32 y_off = 0.f;
|
||||
|
||||
F32 line_height = font->getLineHeight();
|
||||
S32 target_width = width - 2 * MARGIN_AMT;
|
||||
|
||||
// cut off lines on bottom
|
||||
U32 max_lines = U32((height - 2 * line_height) / line_height);
|
||||
y_pos = height - MARGIN_AMT - line_height;
|
||||
y_off = 0.f;
|
||||
|
||||
#if !MEM_TRACK_MEM
|
||||
std::vector<LLWString>::const_iterator end = mLines.end();
|
||||
if(mLines.size() > max_lines) {
|
||||
end = mLines.begin() + max_lines;
|
||||
}
|
||||
for (std::vector<LLWString>::const_iterator i = mLines.begin(); i != end; ++i)
|
||||
{
|
||||
font->render(*i, 0, MARGIN_AMT, y_pos - y_off,
|
||||
LLColor4::white,
|
||||
LLFontGL::LEFT,
|
||||
LLFontGL::BASELINE,
|
||||
LLFontGL::NORMAL,
|
||||
LLFontGL::DROP_SHADOW,
|
||||
S32_MAX,
|
||||
target_width
|
||||
);
|
||||
y_off += line_height;
|
||||
}
|
||||
|
||||
#else
|
||||
LLMemTracker::getInstance()->preDraw(mPaused) ;
|
||||
|
||||
{
|
||||
F32 x_pos = MARGIN_AMT ;
|
||||
U32 lines = 0 ;
|
||||
const char* str = LLMemTracker::getInstance()->getNextLine() ;
|
||||
while(str != NULL)
|
||||
{
|
||||
lines++ ;
|
||||
font->renderUTF8(str, 0, x_pos, y_pos - y_off,
|
||||
LLColor4::white,
|
||||
LLFontGL::LEFT,
|
||||
LLFontGL::BASELINE,
|
||||
LLFontGL::NORMAL,
|
||||
LLFontGL::DROP_SHADOW,
|
||||
S32_MAX,
|
||||
target_width,
|
||||
NULL, FALSE);
|
||||
|
||||
str = LLMemTracker::getInstance()->getNextLine() ;
|
||||
y_off += line_height;
|
||||
|
||||
if(lines >= max_lines)
|
||||
{
|
||||
lines = 0 ;
|
||||
x_pos += 512.f ;
|
||||
if(x_pos + 512.f > target_width)
|
||||
{
|
||||
break ;
|
||||
}
|
||||
|
||||
y_pos = height - MARGIN_AMT - line_height;
|
||||
y_off = 0.f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LLMemTracker::getInstance()->postDraw() ;
|
||||
#endif
|
||||
|
||||
#if MEM_TRACK_TYPE
|
||||
|
||||
S32 left, top, right, bottom;
|
||||
S32 x, y;
|
||||
|
||||
S32 margin = 10;
|
||||
S32 texth = (S32)LLFontGL::getFontMonospace()->getLineHeight();
|
||||
|
||||
S32 xleft = margin;
|
||||
S32 ytop = height - margin;
|
||||
S32 labelwidth = 0;
|
||||
S32 maxmaxbytes = 1;
|
||||
|
||||
// Make sure all timers are accounted for
|
||||
// Set 'MT_OTHER' to unaccounted ticks last frame
|
||||
{
|
||||
S32 display_memtypes[LLMemType::MTYPE_NUM_TYPES];
|
||||
for (S32 i=0; i < LLMemType::MTYPE_NUM_TYPES; i++)
|
||||
{
|
||||
display_memtypes[i] = 0;
|
||||
}
|
||||
for (S32 i=0; i < MTV_DISPLAY_NUM; i++)
|
||||
{
|
||||
S32 tidx = mtv_display_table[i].memtype;
|
||||
display_memtypes[tidx]++;
|
||||
}
|
||||
LLMemType::sMemCount[LLMemType::MTYPE_OTHER] = 0;
|
||||
LLMemType::sMaxMemCount[LLMemType::MTYPE_OTHER] = 0;
|
||||
for (S32 tidx = 0; tidx < LLMemType::MTYPE_NUM_TYPES; tidx++)
|
||||
{
|
||||
if (display_memtypes[tidx] == 0)
|
||||
{
|
||||
LLMemType::sMemCount[LLMemType::MTYPE_OTHER] += LLMemType::sMemCount[tidx];
|
||||
LLMemType::sMaxMemCount[LLMemType::MTYPE_OTHER] += LLMemType::sMaxMemCount[tidx];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Labels
|
||||
{
|
||||
y = ytop;
|
||||
S32 peak = 0;
|
||||
for (S32 i=0; i<MTV_DISPLAY_NUM; i++)
|
||||
{
|
||||
x = xleft;
|
||||
|
||||
int tidx = mtv_display_table[i].memtype;
|
||||
S32 bytes = LLMemType::sMemCount[tidx];
|
||||
S32 maxbytes = LLMemType::sMaxMemCount[tidx];
|
||||
maxmaxbytes = llmax(maxbytes, maxmaxbytes);
|
||||
peak += maxbytes;
|
||||
S32 mbytes = bytes >> 20;
|
||||
|
||||
tdesc = llformat("%s [%4d MB] in %06d NEWS",mtv_display_table[i].desc,mbytes, LLMemType::sNewCount[tidx]);
|
||||
LLFontGL::getFontMonospace()->renderUTF8(tdesc, 0, x, y, LLColor4::white, LLFontGL::LEFT, LLFontGL::TOP);
|
||||
|
||||
y -= (texth + 2);
|
||||
|
||||
S32 textw = LLFontGL::getFontMonospace()->getWidth(tdesc);
|
||||
if (textw > labelwidth)
|
||||
labelwidth = textw;
|
||||
}
|
||||
|
||||
S32 num_avatars = 0;
|
||||
S32 num_motions = 0;
|
||||
S32 num_loading_motions = 0;
|
||||
S32 num_loaded_motions = 0;
|
||||
S32 num_active_motions = 0;
|
||||
S32 num_deprecated_motions = 0;
|
||||
for (std::vector<LLCharacter*>::iterator iter = LLCharacter::sInstances.begin();
|
||||
iter != LLCharacter::sInstances.end(); ++iter)
|
||||
{
|
||||
num_avatars++;
|
||||
(*iter)->getMotionController().incMotionCounts(num_motions, num_loading_motions, num_loaded_motions, num_active_motions, num_deprecated_motions);
|
||||
}
|
||||
|
||||
x = xleft;
|
||||
tdesc = llformat("Total Bytes: %d MB Overhead: %d KB Avs %d Motions:%d Loading:%d Loaded:%d Active:%d Dep:%d",
|
||||
LLMemType::sTotalMem >> 20, LLMemType::sOverheadMem >> 10,
|
||||
num_avatars, num_motions, num_loading_motions, num_loaded_motions, num_active_motions, num_deprecated_motions);
|
||||
LLFontGL::getFontMonospace()->renderUTF8(tdesc, 0, x, y, LLColor4::white, LLFontGL::LEFT, LLFontGL::TOP);
|
||||
}
|
||||
|
||||
// Bars
|
||||
y = ytop;
|
||||
labelwidth += 8;
|
||||
S32 barw = width - labelwidth - xleft - margin;
|
||||
for (S32 i=0; i<MTV_DISPLAY_NUM; i++)
|
||||
{
|
||||
x = xleft + labelwidth;
|
||||
|
||||
int tidx = mtv_display_table[i].memtype;
|
||||
S32 bytes = LLMemType::sMemCount[tidx];
|
||||
F32 frac = (F32)bytes / (F32)maxmaxbytes;
|
||||
S32 w = (S32)(frac * (F32)barw);
|
||||
left = x; right = x + w;
|
||||
top = y; bottom = y - texth;
|
||||
gl_rect_2d(left, top, right, bottom, *mtv_display_table[i].color);
|
||||
|
||||
S32 maxbytes = LLMemType::sMaxMemCount[tidx];
|
||||
F32 frac2 = (F32)maxbytes / (F32)maxmaxbytes;
|
||||
S32 w2 = (S32)(frac2 * (F32)barw);
|
||||
left = x + w + 1; right = x + w2;
|
||||
top = y; bottom = y - texth;
|
||||
LLColor4 tcolor = *mtv_display_table[i].color;
|
||||
tcolor.setAlpha(.5f);
|
||||
gl_rect_2d(left, top, right, bottom, tcolor);
|
||||
|
||||
y -= (texth + 2);
|
||||
}
|
||||
|
||||
dumpData();
|
||||
|
||||
#endif
|
||||
|
||||
LLView::draw();
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
/**
|
||||
* @file llmemoryview.h
|
||||
* @brief LLMemoryView class definition
|
||||
*
|
||||
* $LicenseInfo:firstyear=2001&license=viewergpl$
|
||||
*
|
||||
* Copyright (c) 2001-2009, Linden Research, Inc.
|
||||
*
|
||||
* Second Life Viewer Source Code
|
||||
* The source code in this file ("Source Code") is provided by Linden Lab
|
||||
* to you under the terms of the GNU General Public License, version 2.0
|
||||
* ("GPL"), unless you have obtained a separate licensing agreement
|
||||
* ("Other License"), formally executed by you and Linden Lab. Terms of
|
||||
* the GPL can be found in doc/GPL-license.txt in this distribution, or
|
||||
* online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
|
||||
*
|
||||
* There are special exceptions to the terms and conditions of the GPL as
|
||||
* it is applied to this Source Code. View the full text of the exception
|
||||
* in the file doc/FLOSS-exception.txt in this software distribution, or
|
||||
* online at
|
||||
* http://secondlifegrid.net/programs/open_source/licensing/flossexception
|
||||
*
|
||||
* By copying, modifying or distributing this software, you acknowledge
|
||||
* that you have read and understood your obligations described above,
|
||||
* and agree to abide by those obligations.
|
||||
*
|
||||
* ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
|
||||
* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
|
||||
* COMPLETENESS OR PERFORMANCE.
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#ifndef LL_LLMEMORYVIEW_H
|
||||
#define LL_LLMEMORYVIEW_H
|
||||
|
||||
#include "llview.h"
|
||||
|
||||
class LLAllocator;
|
||||
|
||||
class LLMemoryView : public LLView
|
||||
{
|
||||
public:
|
||||
LLMemoryView(const std::string& name, const LLRect& rect);
|
||||
virtual ~LLMemoryView();
|
||||
|
||||
virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
|
||||
virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask);
|
||||
virtual BOOL handleHover(S32 x, S32 y, MASK mask);
|
||||
virtual void draw();
|
||||
|
||||
void refreshProfile();
|
||||
|
||||
private:
|
||||
std::vector<LLWString> mLines;
|
||||
LLAllocator* mAlloc;
|
||||
BOOL mPaused ;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -115,7 +115,6 @@ LLInventoryView::LLInventoryView(const std::string& name,
|
||||
|
||||
void LLInventoryView::init(LLInventoryModel* inventory)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_INVENTORY_VIEW_INIT);
|
||||
// Callbacks
|
||||
init_inventory_actions(this);
|
||||
|
||||
@@ -879,7 +878,6 @@ void LLInventoryView::setFilterTextFromFilter()
|
||||
|
||||
void LLInventoryView::toggleFindOptions()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_INVENTORY_VIEW_TOGGLE);
|
||||
LLFloater *floater = getFinder();
|
||||
if (!floater)
|
||||
{
|
||||
@@ -1011,7 +1009,6 @@ void LLFloaterInventoryFinder::updateElementsFromFilter()
|
||||
|
||||
void LLFloaterInventoryFinder::draw()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_INVENTORY_DRAW);
|
||||
U32 filter = 0xffffffff;
|
||||
BOOL filtered_by_all_types = TRUE;
|
||||
|
||||
|
||||
@@ -383,7 +383,6 @@ LLSpatialGroup::~LLSpatialGroup()
|
||||
}
|
||||
}
|
||||
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
clearDrawMap();
|
||||
}
|
||||
|
||||
@@ -499,8 +498,6 @@ void LLSpatialGroup::validateDrawMap()
|
||||
|
||||
BOOL LLSpatialGroup::updateInGroup(LLDrawable *drawablep, BOOL immediate)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
drawablep->updateSpatialExtents();
|
||||
|
||||
OctreeNode* parent = mOctreeNode->getOctParent();
|
||||
@@ -522,7 +519,6 @@ BOOL LLSpatialGroup::updateInGroup(LLDrawable *drawablep, BOOL immediate)
|
||||
|
||||
BOOL LLSpatialGroup::addObject(LLDrawable *drawablep, BOOL add_all, BOOL from_octree)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
if (!from_octree)
|
||||
{
|
||||
mOctreeNode->insert(drawablep);
|
||||
@@ -548,7 +544,6 @@ BOOL LLSpatialGroup::addObject(LLDrawable *drawablep, BOOL add_all, BOOL from_oc
|
||||
|
||||
void LLSpatialGroup::rebuildGeom()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
if (!isDead())
|
||||
{
|
||||
mSpatialPartition->rebuildGeom(this);
|
||||
@@ -759,7 +754,6 @@ LLSpatialGroup* LLSpatialGroup::getParent()
|
||||
|
||||
BOOL LLSpatialGroup::removeObject(LLDrawable *drawablep, BOOL from_octree)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
unbound();
|
||||
if (mOctreeNode && !from_octree)
|
||||
{
|
||||
@@ -796,7 +790,6 @@ BOOL LLSpatialGroup::removeObject(LLDrawable *drawablep, BOOL from_octree)
|
||||
|
||||
void LLSpatialGroup::shift(const LLVector4a &offset)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
LLVector4a t = mOctreeNode->getCenter();
|
||||
t.add(offset);
|
||||
mOctreeNode->setCenter(t);
|
||||
@@ -853,8 +846,6 @@ void LLSpatialGroup::setState(eSpatialState state)
|
||||
|
||||
void LLSpatialGroup::setState(eSpatialState state, S32 mode)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
llassert(state <= LLSpatialGroup::STATE_MASK);
|
||||
|
||||
if (mode > STATE_MODE_SINGLE)
|
||||
@@ -911,8 +902,6 @@ void LLSpatialGroup::clearState(eSpatialState state, S32 mode)
|
||||
{
|
||||
llassert(state <= LLSpatialGroup::STATE_MASK);
|
||||
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
if (mode > STATE_MODE_SINGLE)
|
||||
{
|
||||
if (mode == STATE_MODE_DIFF)
|
||||
@@ -969,8 +958,6 @@ public:
|
||||
|
||||
void LLSpatialGroup::setOcclusionState(eOcclusionState state, S32 mode)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
if (mode > STATE_MODE_SINGLE)
|
||||
{
|
||||
if (mode == STATE_MODE_DIFF)
|
||||
@@ -1035,8 +1022,6 @@ public:
|
||||
|
||||
void LLSpatialGroup::clearOcclusionState(eOcclusionState state, S32 mode)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
if (mode > STATE_MODE_SINGLE)
|
||||
{
|
||||
if (mode == STATE_MODE_DIFF)
|
||||
@@ -1084,7 +1069,6 @@ LLSpatialGroup::LLSpatialGroup(OctreeNode* node, LLSpatialPartition* part) :
|
||||
ll_assert_aligned(this,16);
|
||||
|
||||
sNodeCount++;
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
mViewAngle.splat(0.f);
|
||||
mLastUpdateViewAngle.splat(-1.f);
|
||||
@@ -1271,7 +1255,6 @@ BOOL LLSpatialGroup::changeLOD()
|
||||
|
||||
void LLSpatialGroup::handleInsertion(const TreeNode* node, LLDrawable* drawablep)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
addObject(drawablep, FALSE, TRUE);
|
||||
unbound();
|
||||
setState(OBJECT_DIRTY);
|
||||
@@ -1279,14 +1262,12 @@ void LLSpatialGroup::handleInsertion(const TreeNode* node, LLDrawable* drawablep
|
||||
|
||||
void LLSpatialGroup::handleRemoval(const TreeNode* node, LLDrawable* drawable)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
removeObject(drawable, TRUE);
|
||||
setState(OBJECT_DIRTY);
|
||||
}
|
||||
|
||||
void LLSpatialGroup::handleDestruction(const TreeNode* node)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
setState(DEAD);
|
||||
|
||||
{OctreeGuard guard(mOctreeNode);
|
||||
@@ -1330,7 +1311,6 @@ void LLSpatialGroup::handleStateChange(const TreeNode* node)
|
||||
|
||||
void LLSpatialGroup::handleChildAddition(const OctreeNode* parent, OctreeNode* child)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
if (child->getListenerCount() == 0)
|
||||
{
|
||||
new LLSpatialGroup(child, mSpatialPartition);
|
||||
@@ -1681,7 +1661,6 @@ void LLSpatialGroup::doOcclusion(LLCamera* camera)
|
||||
LLSpatialPartition::LLSpatialPartition(U32 data_mask, BOOL render_by_group, U32 buffer_usage)
|
||||
: mRenderByGroup(render_by_group), mBridge(NULL)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
mOcclusionEnabled = TRUE;
|
||||
mDrawableType = 0;
|
||||
mPartitionType = LLViewerRegion::PARTITION_NONE;
|
||||
@@ -1705,8 +1684,6 @@ LLSpatialPartition::LLSpatialPartition(U32 data_mask, BOOL render_by_group, U32
|
||||
|
||||
LLSpatialPartition::~LLSpatialPartition()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
delete mOctree;
|
||||
mOctree = NULL;
|
||||
}
|
||||
@@ -1714,8 +1691,6 @@ LLSpatialPartition::~LLSpatialPartition()
|
||||
|
||||
LLSpatialGroup *LLSpatialPartition::put(LLDrawable *drawablep, BOOL was_visible)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
drawablep->updateSpatialExtents();
|
||||
|
||||
//keep drawable from being garbage collected
|
||||
@@ -1737,8 +1712,6 @@ LLSpatialGroup *LLSpatialPartition::put(LLDrawable *drawablep, BOOL was_visible)
|
||||
|
||||
BOOL LLSpatialPartition::remove(LLDrawable *drawablep, LLSpatialGroup *curp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
if (!curp->removeObject(drawablep))
|
||||
{
|
||||
OCT_ERRS << "Failed to remove drawable from octree!" << llendl;
|
||||
@@ -1757,8 +1730,6 @@ BOOL LLSpatialPartition::remove(LLDrawable *drawablep, LLSpatialGroup *curp)
|
||||
|
||||
void LLSpatialPartition::move(LLDrawable *drawablep, LLSpatialGroup *curp, BOOL immediate)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
// sanity check submitted by open source user bushing Spatula
|
||||
// who was seeing crashing here. (See VWR-424 reported by Bunny Mayne)
|
||||
if (!drawablep)
|
||||
@@ -1815,7 +1786,6 @@ public:
|
||||
|
||||
void LLSpatialPartition::shift(const LLVector4a &offset)
|
||||
{ //shift octree node bounding boxes by offset
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
LLSpatialShift shifter(offset);
|
||||
shifter.traverse(mOctree);
|
||||
}
|
||||
@@ -2232,7 +2202,6 @@ public:
|
||||
|
||||
void LLSpatialPartition::restoreGL()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
}
|
||||
|
||||
void LLSpatialPartition::resetVertexBuffers()
|
||||
@@ -2274,7 +2243,6 @@ BOOL LLSpatialPartition::visibleObjectsInFrustum(LLCamera& camera)
|
||||
|
||||
S32 LLSpatialPartition::cull(LLCamera &camera, std::vector<LLDrawable *>* results, BOOL for_select)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
#if LL_OCTREE_PARANOIA_CHECK
|
||||
((LLSpatialGroup*)mOctree->getListener(0))->checkStates();
|
||||
#endif
|
||||
@@ -4240,8 +4208,6 @@ void LLSpatialPartition::renderDebug()
|
||||
sCurMaxTexPriority = 0.f;
|
||||
}
|
||||
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
LLGLDisable cullface(GL_CULL_FACE);
|
||||
LLGLEnable blend(GL_BLEND);
|
||||
gGL.setSceneBlendType(LLRender::BT_ALPHA);
|
||||
|
||||
@@ -376,8 +376,6 @@ void hooked_process_sound_trigger(LLMessageSystem *msg, void **)
|
||||
// true when all initialization done.
|
||||
bool idle_startup()
|
||||
{
|
||||
LLMemType mt1(LLMemType::MTYPE_STARTUP);
|
||||
|
||||
const F32 PRECACHING_DELAY = gSavedSettings.getF32("PrecachingDelay");
|
||||
const F32 TIMEOUT_SECONDS = 5.f;
|
||||
const S32 MAX_TIMEOUT_COUNT = 3;
|
||||
|
||||
@@ -165,7 +165,6 @@
|
||||
#include "llframestats.h"
|
||||
#include "llframestatview.h"
|
||||
#include "llfasttimerview.h"
|
||||
#include "llmemoryview.h"
|
||||
#include "llgivemoney.h"
|
||||
#include "llgroupmgr.h"
|
||||
#include "llhoverview.h"
|
||||
@@ -973,14 +972,6 @@ void init_client_menu(LLMenuGL* menu)
|
||||
&get_visibility,
|
||||
(void*)gDebugView->mFastTimerView,
|
||||
'9', MASK_CONTROL|MASK_SHIFT ) );
|
||||
//#if MEM_TRACK_MEM
|
||||
sub->addChild(new LLMenuItemCheckGL("Memory",
|
||||
&toggle_visibility,
|
||||
NULL,
|
||||
&get_visibility,
|
||||
(void*)gDebugView->mMemoryView,
|
||||
'0', MASK_CONTROL|MASK_SHIFT ) );
|
||||
//#endif
|
||||
|
||||
sub->addSeparator();
|
||||
|
||||
|
||||
@@ -4687,7 +4687,6 @@ extern U32 gObjectBits;
|
||||
|
||||
void process_object_update(LLMessageSystem *mesgsys, void **user_data)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
// Update the data counters
|
||||
if (mesgsys->getReceiveCompressedSize())
|
||||
{
|
||||
@@ -4704,7 +4703,6 @@ void process_object_update(LLMessageSystem *mesgsys, void **user_data)
|
||||
|
||||
void process_compressed_object_update(LLMessageSystem *mesgsys, void **user_data)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
// Update the data counters
|
||||
if (mesgsys->getReceiveCompressedSize())
|
||||
{
|
||||
@@ -4721,7 +4719,6 @@ void process_compressed_object_update(LLMessageSystem *mesgsys, void **user_data
|
||||
|
||||
void process_cached_object_update(LLMessageSystem *mesgsys, void **user_data)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
// Update the data counters
|
||||
if (mesgsys->getReceiveCompressedSize())
|
||||
{
|
||||
@@ -4739,7 +4736,6 @@ void process_cached_object_update(LLMessageSystem *mesgsys, void **user_data)
|
||||
|
||||
void process_terse_object_update_improved(LLMessageSystem *mesgsys, void **user_data)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
if (mesgsys->getReceiveCompressedSize())
|
||||
{
|
||||
gObjectBits += mesgsys->getReceiveCompressedSize() * 8;
|
||||
|
||||
@@ -907,7 +907,6 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys,
|
||||
const EObjectUpdateType update_type,
|
||||
LLDataPacker *dp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
U32 retval = 0x0;
|
||||
|
||||
// If region is removed from the list it is also deleted.
|
||||
@@ -2449,8 +2448,6 @@ void LLViewerObject::interpolateLinearMotion(const F64 & time, const F32 & dt)
|
||||
|
||||
BOOL LLViewerObject::setData(const U8 *datap, const U32 data_size)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
|
||||
delete [] mData;
|
||||
|
||||
if (datap)
|
||||
@@ -2492,8 +2489,6 @@ void LLViewerObject::doUpdateInventory(
|
||||
U8 key,
|
||||
bool is_new)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
|
||||
LLViewerInventoryItem* old_item = NULL;
|
||||
if(TASK_INVENTORY_ITEM_KEY == key)
|
||||
{
|
||||
@@ -2577,8 +2572,6 @@ void LLViewerObject::saveScript(
|
||||
BOOL active,
|
||||
bool is_new)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
|
||||
/*
|
||||
* XXXPAM Investigate not making this copy. Seems unecessary, but I'm unsure about the
|
||||
* interaction with doUpdateInventory() called below.
|
||||
@@ -2654,8 +2647,6 @@ void LLViewerObject::dirtyInventory()
|
||||
|
||||
void LLViewerObject::registerInventoryListener(LLVOInventoryListener* listener, void* user_data)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
|
||||
LLInventoryCallbackInfo* info = new LLInventoryCallbackInfo;
|
||||
info->mListener = listener;
|
||||
info->mInventoryData = user_data;
|
||||
@@ -2753,8 +2744,6 @@ S32 LLFilenameAndTask::sCount = 0;
|
||||
// static
|
||||
void LLViewerObject::processTaskInv(LLMessageSystem* msg, void** user_data)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
|
||||
LLUUID task_id;
|
||||
msg->getUUIDFast(_PREHASH_InventoryData, _PREHASH_TaskID, task_id);
|
||||
LLViewerObject* object = gObjectList.findObject(task_id);
|
||||
@@ -2841,8 +2830,6 @@ void LLViewerObject::processTaskInvFile(void** user_data, S32 error_code, LLExtS
|
||||
|
||||
void LLViewerObject::loadTaskInvFile(const std::string& filename)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
|
||||
std::string filename_and_local_path = gDirUtilp->getExpandedFilename(LL_PATH_CACHE, filename);
|
||||
llifstream ifs(filename_and_local_path);
|
||||
if(ifs.good())
|
||||
@@ -2970,8 +2957,6 @@ void LLViewerObject::updateInventory(
|
||||
U8 key,
|
||||
bool is_new)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
|
||||
// This slices the object into what we're concerned about on the
|
||||
// viewer. The simulator will take the permissions and transfer
|
||||
// ownership.
|
||||
@@ -3982,8 +3967,6 @@ std::string LLViewerObject::getMediaURL() const
|
||||
|
||||
void LLViewerObject::setMediaURL(const std::string& media_url)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
|
||||
if (!mMedia)
|
||||
{
|
||||
mMedia = new LLViewerObjectMedia;
|
||||
@@ -4033,8 +4016,6 @@ BOOL LLViewerObject::setMaterial(const U8 material)
|
||||
|
||||
void LLViewerObject::setNumTEs(const U8 num_tes)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
|
||||
U32 i;
|
||||
if (num_tes != getNumTEs())
|
||||
{
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
#include "llhudicon.h"
|
||||
#include "llinventory.h"
|
||||
#include "llrefcount.h"
|
||||
#include "llmemtype.h"
|
||||
#include "llprimitive.h"
|
||||
#include "lluuid.h"
|
||||
#include "llvoinventorylistener.h"
|
||||
|
||||
@@ -908,8 +908,6 @@ private:
|
||||
|
||||
void LLViewerObjectList::update(LLAgent &agent, LLWorld &world)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
|
||||
// Update globals
|
||||
static const LLCachedControl<bool> VelocityInterpolate("VelocityInterpolate");
|
||||
static const LLCachedControl<bool> PingInterpolate("PingInterpolate");
|
||||
@@ -1235,7 +1233,6 @@ void LLViewerObjectList::clearDebugText()
|
||||
|
||||
void LLViewerObjectList::cleanupReferences(LLViewerObject *objectp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
if (mDeadObjects.find(objectp->mID) != mDeadObjects.end())
|
||||
{
|
||||
llinfos << "Object " << objectp->mID << " already on dead list!" << llendl;
|
||||
@@ -1477,7 +1474,6 @@ void LLViewerObjectList::removeFromActiveList(LLViewerObject* objectp)
|
||||
|
||||
void LLViewerObjectList::updateActive(LLViewerObject *objectp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
if (objectp->isDead())
|
||||
{
|
||||
return; // We don't update dead objects!
|
||||
@@ -1958,7 +1954,6 @@ void LLViewerObjectList::resetObjectBeacons()
|
||||
|
||||
LLViewerObject *LLViewerObjectList::createObjectViewer(const LLPCode pcode, LLViewerRegion *regionp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
LLUUID fullid;
|
||||
fullid.generate();
|
||||
|
||||
@@ -1990,7 +1985,6 @@ static LLFastTimer::DeclareTimer FTM_CREATE_OBJECT("Create Object");
|
||||
LLViewerObject *LLViewerObjectList::createObject(const LLPCode pcode, LLViewerRegion *regionp,
|
||||
const LLUUID &uuid, const U32 local_id, const LLHost &sender)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
LLFastTimer t(FTM_CREATE_OBJECT);
|
||||
|
||||
LLUUID fullid;
|
||||
@@ -2061,7 +2055,6 @@ S32 LLViewerObjectList::findReferences(LLDrawable *drawablep) const
|
||||
|
||||
void LLViewerObjectList::orphanize(LLViewerObject *childp, U32 parent_id, U32 ip, U32 port)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
#ifdef ORPHAN_SPAM
|
||||
llinfos << "Orphaning object " << childp->getID() << " with parent " << parent_id << llendl;
|
||||
#endif
|
||||
|
||||
@@ -85,7 +85,6 @@ LLViewerPart::LLViewerPart() :
|
||||
mVPCallback(NULL),
|
||||
mImagep(NULL)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mPartSourcep = NULL;
|
||||
|
||||
++LLViewerPartSim::sParticleCount2 ;
|
||||
@@ -93,7 +92,6 @@ LLViewerPart::LLViewerPart() :
|
||||
|
||||
LLViewerPart::~LLViewerPart()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mPartSourcep = NULL;
|
||||
|
||||
--LLViewerPartSim::sParticleCount2 ;
|
||||
@@ -101,7 +99,6 @@ LLViewerPart::~LLViewerPart()
|
||||
|
||||
void LLViewerPart::init(LLPointer<LLViewerPartSource> sourcep, LLViewerTexture *imagep, LLVPCallback cb)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mPartID = LLViewerPart::sNextPartID;
|
||||
LLViewerPart::sNextPartID++;
|
||||
mFlags = 0x00f;
|
||||
@@ -126,7 +123,6 @@ void LLViewerPart::init(LLPointer<LLViewerPartSource> sourcep, LLViewerTexture *
|
||||
LLViewerPartGroup::LLViewerPartGroup(const LLVector3 ¢er_agent, const F32 box_side, bool hud)
|
||||
: mHud(hud)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mVOPartGroupp = NULL;
|
||||
mUniformParticles = TRUE;
|
||||
|
||||
@@ -183,7 +179,6 @@ LLViewerPartGroup::LLViewerPartGroup(const LLVector3 ¢er_agent, const F32 bo
|
||||
|
||||
LLViewerPartGroup::~LLViewerPartGroup()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
cleanup();
|
||||
|
||||
S32 count = (S32) mParticles.size();
|
||||
@@ -198,7 +193,6 @@ LLViewerPartGroup::~LLViewerPartGroup()
|
||||
|
||||
void LLViewerPartGroup::cleanup()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
if (mVOPartGroupp)
|
||||
{
|
||||
if (!mVOPartGroupp->isDead())
|
||||
@@ -211,7 +205,6 @@ void LLViewerPartGroup::cleanup()
|
||||
|
||||
BOOL LLViewerPartGroup::posInGroup(const LLVector3 &pos, const F32 desired_size)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
if ((pos.mV[VX] < mMinObjPos.mV[VX])
|
||||
|| (pos.mV[VY] < mMinObjPos.mV[VY])
|
||||
|| (pos.mV[VZ] < mMinObjPos.mV[VZ]))
|
||||
@@ -239,8 +232,6 @@ BOOL LLViewerPartGroup::posInGroup(const LLVector3 &pos, const F32 desired_size)
|
||||
|
||||
BOOL LLViewerPartGroup::addPart(LLViewerPart* part, F32 desired_size)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
|
||||
if (part->mFlags & LLPartData::LL_PART_HUD && !mHud)
|
||||
{
|
||||
return FALSE;
|
||||
@@ -267,7 +258,6 @@ BOOL LLViewerPartGroup::addPart(LLViewerPart* part, F32 desired_size)
|
||||
|
||||
void LLViewerPartGroup::updateParticles(const F32 lastdt)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
F32 dt;
|
||||
|
||||
LLVector3 gravity(0.f, 0.f, GRAVITY);
|
||||
@@ -435,7 +425,6 @@ void LLViewerPartGroup::updateParticles(const F32 lastdt)
|
||||
|
||||
void LLViewerPartGroup::shift(const LLVector3 &offset)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mCenterAgent += offset;
|
||||
mMinObjPos += offset;
|
||||
mMaxObjPos += offset;
|
||||
@@ -448,8 +437,6 @@ void LLViewerPartGroup::shift(const LLVector3 &offset)
|
||||
|
||||
void LLViewerPartGroup::removeParticlesByID(const U32 source_id)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
|
||||
for (S32 i = 0; i < (S32)mParticles.size(); i++)
|
||||
{
|
||||
if(mParticles[i]->mPartSourcep->getID() == source_id)
|
||||
@@ -481,7 +468,6 @@ void LLViewerPartSim::checkParticleCount(U32 size)
|
||||
|
||||
LLViewerPartSim::LLViewerPartSim()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
sMaxParticleCount = llmin(gSavedSettings.getS32("RenderMaxPartCount"), LL_MAX_PARTICLE_COUNT);
|
||||
static U32 id_seed = 0;
|
||||
mID = ++id_seed;
|
||||
@@ -490,7 +476,6 @@ LLViewerPartSim::LLViewerPartSim()
|
||||
|
||||
void LLViewerPartSim::destroyClass()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
S32 i;
|
||||
S32 count;
|
||||
|
||||
@@ -508,7 +493,6 @@ void LLViewerPartSim::destroyClass()
|
||||
|
||||
BOOL LLViewerPartSim::shouldAddPart()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
if (sParticleCount > PART_THROTTLE_THRESHOLD*sMaxParticleCount)
|
||||
{
|
||||
|
||||
@@ -531,7 +515,6 @@ BOOL LLViewerPartSim::shouldAddPart()
|
||||
|
||||
void LLViewerPartSim::addPart(LLViewerPart* part)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
if (sParticleCount < MAX_PART_COUNT)
|
||||
{
|
||||
put(part);
|
||||
@@ -547,7 +530,6 @@ void LLViewerPartSim::addPart(LLViewerPart* part)
|
||||
|
||||
LLViewerPartGroup *LLViewerPartSim::put(LLViewerPart* part)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
const F32 MAX_MAG = 1000000.f*1000000.f; // 1 million
|
||||
LLViewerPartGroup *return_group = NULL ;
|
||||
if (part->mPosAgent.magVecSquared() > MAX_MAG || !part->mPosAgent.isFinite())
|
||||
@@ -605,7 +587,6 @@ LLViewerPartGroup *LLViewerPartSim::put(LLViewerPart* part)
|
||||
|
||||
LLViewerPartGroup *LLViewerPartSim::createViewerPartGroup(const LLVector3 &pos_agent, const F32 desired_size, bool hud)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
//find a box that has a center position divisible by PART_SIM_BOX_SIDE that encompasses
|
||||
//pos_agent
|
||||
LLViewerPartGroup *groupp = new LLViewerPartGroup(pos_agent, desired_size, hud);
|
||||
@@ -638,8 +619,6 @@ static LLFastTimer::DeclareTimer FTM_SIMULATE_PARTICLES("Simulate Particles");
|
||||
|
||||
void LLViewerPartSim::updateSimulation()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
|
||||
static LLFrameTimer update_timer;
|
||||
|
||||
const F32 dt = llmin(update_timer.getElapsedTimeAndResetF32(), 0.1f);
|
||||
@@ -817,7 +796,6 @@ void LLViewerPartSim::updatePartBurstRate()
|
||||
|
||||
void LLViewerPartSim::addPartSource(LLPointer<LLViewerPartSource> sourcep)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
if (!sourcep)
|
||||
{
|
||||
llwarns << "Null part source!" << llendl;
|
||||
@@ -834,8 +812,6 @@ void LLViewerPartSim::removeLastCreatedSource()
|
||||
|
||||
void LLViewerPartSim::cleanupRegion(LLViewerRegion *regionp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
|
||||
group_list_t& vec = mViewerPartGroups;
|
||||
for (group_list_t::size_type i = 0;i<vec.size();++i)
|
||||
{
|
||||
@@ -851,7 +827,6 @@ void LLViewerPartSim::cleanupRegion(LLViewerRegion *regionp)
|
||||
|
||||
void LLViewerPartSim::clearParticlesByID(const U32 system_id)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
for (group_list_t::iterator g = mViewerPartGroups.begin(); g != mViewerPartGroups.end(); ++g)
|
||||
{
|
||||
(*g)->removeParticlesByID(system_id);
|
||||
@@ -869,7 +844,6 @@ void LLViewerPartSim::clearParticlesByID(const U32 system_id)
|
||||
|
||||
void LLViewerPartSim::clearParticlesByOwnerID(const LLUUID& task_id)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
for (source_list_t::iterator iter = mViewerPartSources.begin(); iter != mViewerPartSources.end(); ++iter)
|
||||
{
|
||||
if ((*iter)->getOwnerUUID() == task_id)
|
||||
|
||||
@@ -96,7 +96,6 @@ void LLViewerPartSource::setStart()
|
||||
LLViewerPartSourceScript::LLViewerPartSourceScript(LLViewerObject *source_objp) :
|
||||
LLViewerPartSource(LL_PART_SOURCE_SCRIPT)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
llassert(source_objp);
|
||||
mSourceObjectp = source_objp;
|
||||
mPosAgent = mSourceObjectp->getPositionAgent();
|
||||
@@ -108,7 +107,6 @@ LLViewerPartSourceScript::LLViewerPartSourceScript(LLViewerObject *source_objp)
|
||||
|
||||
void LLViewerPartSourceScript::setDead()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mIsDead = TRUE;
|
||||
mSourceObjectp = NULL;
|
||||
mTargetObjectp = NULL;
|
||||
@@ -119,7 +117,6 @@ void LLViewerPartSourceScript::update(const F32 dt)
|
||||
if( mIsSuspended )
|
||||
return;
|
||||
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
F32 old_update_time = mLastUpdateTime;
|
||||
mLastUpdateTime += dt;
|
||||
|
||||
@@ -400,7 +397,6 @@ void LLViewerPartSourceScript::update(const F32 dt)
|
||||
// static
|
||||
LLPointer<LLViewerPartSourceScript> LLViewerPartSourceScript::unpackPSS(LLViewerObject *source_objp, LLPointer<LLViewerPartSourceScript> pssp, const S32 block_num)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
if (!pssp)
|
||||
{
|
||||
if (LLPartSysData::isNullPS(block_num))
|
||||
@@ -442,7 +438,6 @@ LLPointer<LLViewerPartSourceScript> LLViewerPartSourceScript::unpackPSS(LLViewer
|
||||
|
||||
LLPointer<LLViewerPartSourceScript> LLViewerPartSourceScript::unpackPSS(LLViewerObject *source_objp, LLPointer<LLViewerPartSourceScript> pssp, LLDataPacker &dp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
if (!pssp)
|
||||
{
|
||||
LLPointer<LLViewerPartSourceScript> new_pssp = new LLViewerPartSourceScript(source_objp);
|
||||
@@ -476,8 +471,6 @@ LLPointer<LLViewerPartSourceScript> LLViewerPartSourceScript::unpackPSS(LLViewer
|
||||
/* static */
|
||||
LLPointer<LLViewerPartSourceScript> LLViewerPartSourceScript::createPSS(LLViewerObject *source_objp, const LLPartSysData& particle_parameters)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
|
||||
LLPointer<LLViewerPartSourceScript> new_pssp = new LLViewerPartSourceScript(source_objp);
|
||||
|
||||
new_pssp->mPartSysData = particle_parameters;
|
||||
@@ -493,13 +486,11 @@ LLPointer<LLViewerPartSourceScript> LLViewerPartSourceScript::createPSS(LLViewer
|
||||
|
||||
void LLViewerPartSourceScript::setImage(LLViewerTexture *imagep)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mImagep = imagep;
|
||||
}
|
||||
|
||||
void LLViewerPartSourceScript::setTargetObject(LLViewerObject *objp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mTargetObjectp = objp;
|
||||
}
|
||||
|
||||
@@ -515,7 +506,6 @@ LLViewerPartSourceSpiral::LLViewerPartSourceSpiral(const LLVector3 &pos) :
|
||||
|
||||
void LLViewerPartSourceSpiral::setDead()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mIsDead = TRUE;
|
||||
mSourceObjectp = NULL;
|
||||
}
|
||||
@@ -523,7 +513,6 @@ void LLViewerPartSourceSpiral::setDead()
|
||||
|
||||
void LLViewerPartSourceSpiral::updatePart(LLViewerPart &part, const F32 dt)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
F32 frac = part.mLastUpdateTime/part.mMaxAge;
|
||||
|
||||
LLVector3 center_pos;
|
||||
@@ -548,7 +537,6 @@ void LLViewerPartSourceSpiral::updatePart(LLViewerPart &part, const F32 dt)
|
||||
|
||||
void LLViewerPartSourceSpiral::update(const F32 dt)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
if (!mImagep)
|
||||
{
|
||||
mImagep = LLViewerTextureManager::getFetchedTextureFromFile("pixiesmall.j2c");
|
||||
@@ -594,7 +582,6 @@ void LLViewerPartSourceSpiral::update(const F32 dt)
|
||||
|
||||
void LLViewerPartSourceSpiral::setSourceObject(LLViewerObject *objp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mSourceObjectp = objp;
|
||||
}
|
||||
|
||||
@@ -618,7 +605,6 @@ LLViewerPartSourceBeam::~LLViewerPartSourceBeam()
|
||||
|
||||
void LLViewerPartSourceBeam::setDead()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mIsDead = TRUE;
|
||||
mSourceObjectp = NULL;
|
||||
mTargetObjectp = NULL;
|
||||
@@ -632,7 +618,6 @@ void LLViewerPartSourceBeam::setColor(const LLColor4 &color)
|
||||
|
||||
void LLViewerPartSourceBeam::updatePart(LLViewerPart &part, const F32 dt)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
F32 frac = part.mLastUpdateTime/part.mMaxAge;
|
||||
|
||||
LLViewerPartSource *ps = (LLViewerPartSource*)part.mPartSourcep;
|
||||
@@ -677,7 +662,6 @@ void LLViewerPartSourceBeam::updatePart(LLViewerPart &part, const F32 dt)
|
||||
|
||||
void LLViewerPartSourceBeam::update(const F32 dt)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
const F32 RATE = 0.025f;
|
||||
|
||||
mLastUpdateTime += dt;
|
||||
@@ -749,13 +733,11 @@ void LLViewerPartSourceBeam::update(const F32 dt)
|
||||
|
||||
void LLViewerPartSourceBeam::setSourceObject(LLViewerObject* objp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mSourceObjectp = objp;
|
||||
}
|
||||
|
||||
void LLViewerPartSourceBeam::setTargetObject(LLViewerObject* objp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mTargetObjectp = objp;
|
||||
}
|
||||
|
||||
@@ -770,7 +752,6 @@ LLViewerPartSourceChat::LLViewerPartSourceChat(const LLVector3 &pos) :
|
||||
|
||||
void LLViewerPartSourceChat::setDead()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mIsDead = TRUE;
|
||||
mSourceObjectp = NULL;
|
||||
}
|
||||
@@ -778,7 +759,6 @@ void LLViewerPartSourceChat::setDead()
|
||||
|
||||
void LLViewerPartSourceChat::updatePart(LLViewerPart &part, const F32 dt)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
F32 frac = part.mLastUpdateTime/part.mMaxAge;
|
||||
|
||||
LLVector3 center_pos;
|
||||
@@ -803,7 +783,6 @@ void LLViewerPartSourceChat::updatePart(LLViewerPart &part, const F32 dt)
|
||||
|
||||
void LLViewerPartSourceChat::update(const F32 dt)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
if (!mImagep)
|
||||
{
|
||||
mImagep = LLViewerTextureManager::getFetchedTextureFromFile("pixiesmall.j2c");
|
||||
@@ -859,7 +838,6 @@ void LLViewerPartSourceChat::update(const F32 dt)
|
||||
|
||||
void LLViewerPartSourceChat::setSourceObject(LLViewerObject *objp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PARTICLES);
|
||||
mSourceObjectp = objp;
|
||||
}
|
||||
|
||||
|
||||
@@ -780,7 +780,6 @@ void LLViewerRegion::dirtyHeights()
|
||||
|
||||
BOOL LLViewerRegion::idleUpdate(F32 max_update_time)
|
||||
{
|
||||
LLMemType mt_ivr(LLMemType::MTYPE_IDLE_UPDATE_VIEWER_REGION);
|
||||
// did_update returns TRUE if we did at least one significant update
|
||||
BOOL did_update = mImpl->mLandp->idleUpdate(max_update_time);
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@
|
||||
#include "llimagebmp.h"
|
||||
#include "llimagej2c.h"
|
||||
#include "llimagetga.h"
|
||||
#include "llmemtype.h"
|
||||
#include "llstl.h"
|
||||
#include "llvfile.h"
|
||||
#include "llvfs.h"
|
||||
|
||||
@@ -1393,7 +1393,6 @@ void LLViewerTextureList::receiveImagePacket(LLMessageSystem *msg, void **user_d
|
||||
{
|
||||
static LLCachedControl<bool> log_texture_traffic(gSavedSettings,"LogTextureNetworkTraffic") ;
|
||||
|
||||
LLMemType mt1(LLMemType::MTYPE_APPFMTIMAGE);
|
||||
LLFastTimer t(FTM_PROCESS_IMAGES);
|
||||
|
||||
// Receives image packet, copy into image object,
|
||||
|
||||
@@ -1018,7 +1018,6 @@ LLVOAvatar::LLVOAvatar(const LLUUID& id,
|
||||
static LLCachedControl<bool> const freeze_time("FreezeTime", false);
|
||||
mFreezeTimeLangolier = freeze_time;
|
||||
|
||||
LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
//VTResume(); // VTune
|
||||
|
||||
// mVoiceVisualizer is created by the hud effects manager and uses the HUD Effects pipeline
|
||||
@@ -1965,8 +1964,6 @@ void LLVOAvatar::buildCharacter()
|
||||
//-----------------------------------------------------------------------------
|
||||
void LLVOAvatar::releaseMeshData()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
|
||||
if (sInstances.size() < AVATAR_RELEASE_THRESHOLD || mIsDummy)
|
||||
{
|
||||
return;
|
||||
@@ -2021,7 +2018,6 @@ void LLVOAvatar::releaseMeshData()
|
||||
void LLVOAvatar::restoreMeshData()
|
||||
{
|
||||
llassert(!isSelf());
|
||||
LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
|
||||
//llinfos << "Restoring" << llendl;
|
||||
mMeshValid = TRUE;
|
||||
@@ -2179,8 +2175,6 @@ U32 LLVOAvatar::processUpdateMessage(LLMessageSystem *mesgsys,
|
||||
U32 block_num, const EObjectUpdateType update_type,
|
||||
LLDataPacker *dp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
|
||||
const BOOL has_name = !getNVPair("FirstName");
|
||||
|
||||
// Do base class updates...
|
||||
@@ -2286,7 +2280,6 @@ void LLVOAvatar::dumpAnimationState()
|
||||
//------------------------------------------------------------------------
|
||||
void LLVOAvatar::idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
LLFastTimer t(FTM_AVATAR_UPDATE);
|
||||
|
||||
if (isDead())
|
||||
@@ -3596,8 +3589,6 @@ void LLVOAvatar::resetFreezeTime()
|
||||
//------------------------------------------------------------------------
|
||||
BOOL LLVOAvatar::updateCharacter(LLAgent &agent)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
|
||||
// Frozen!
|
||||
if (areAnimationsPaused())
|
||||
{
|
||||
@@ -5306,8 +5297,6 @@ const LLUUID& LLVOAvatar::getStepSound() const
|
||||
//-----------------------------------------------------------------------------
|
||||
void LLVOAvatar::processAnimationStateChanges()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
|
||||
if ((gNoRender)||(gAgent.isTPosed())) //isTPosed is meant to stop animation updates while force-TPosed.
|
||||
{
|
||||
return;
|
||||
@@ -5423,8 +5412,6 @@ void LLVOAvatar::processAnimationStateChanges()
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL LLVOAvatar::processSingleAnimationStateChange( const LLUUID& anim_id, BOOL start )
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
|
||||
BOOL result = FALSE;
|
||||
|
||||
if ( start ) // start animation
|
||||
@@ -5612,8 +5599,6 @@ BOOL LLVOAvatar::startMotion(const LLUUID& id, F32 time_offset)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
|
||||
lldebugs << "motion requested " << id.asString() << " " << gAnimLibrary.animationName(id) << llendl;
|
||||
|
||||
LLUUID remap_id = remapMotionID(id);
|
||||
@@ -5992,8 +5977,6 @@ BOOL LLVOAvatar::isActive() const
|
||||
//-----------------------------------------------------------------------------
|
||||
void LLVOAvatar::setPixelAreaAndAngle(LLAgent &agent)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
|
||||
if (mDrawable.isNull())
|
||||
{
|
||||
return;
|
||||
@@ -8200,7 +8183,6 @@ void LLVOAvatar::onBakedTextureMasksLoaded( BOOL success, LLViewerFetchedTexture
|
||||
if (!userdata) return;
|
||||
|
||||
//llinfos << "onBakedTextureMasksLoaded: " << src_vi->getID() << llendl;
|
||||
const LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
const LLUUID id = src_vi->getID();
|
||||
|
||||
LLTextureMaskData* maskData = (LLTextureMaskData*) userdata;
|
||||
|
||||
@@ -299,8 +299,6 @@ BOOL LLVOAvatarSelf::loadAvatarSelf()
|
||||
|
||||
BOOL LLVOAvatarSelf::buildSkeletonSelf(const LLAvatarSkeletonInfo *info)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
|
||||
// add special-purpose "screen" joint
|
||||
mScreenp = new LLViewerJoint("mScreen", NULL);
|
||||
// for now, put screen at origin, as it is only used during special
|
||||
@@ -555,8 +553,6 @@ LLVOAvatarSelf::~LLVOAvatarSelf()
|
||||
// virtual
|
||||
BOOL LLVOAvatarSelf::updateCharacter(LLAgent &agent)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
|
||||
// update screen joint size
|
||||
if (mScreenp)
|
||||
{
|
||||
@@ -962,8 +958,6 @@ void LLVOAvatarSelf::idleUpdateTractorBeam()
|
||||
// virtual
|
||||
void LLVOAvatarSelf::restoreMeshData()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_AVATAR);
|
||||
|
||||
//llinfos << "Restoring" << llendl;
|
||||
mMeshValid = TRUE;
|
||||
updateJointLODs();
|
||||
|
||||
@@ -700,7 +700,6 @@ static LLFastTimer::DeclareTimer FTM_REBUILD_GRASS_VB("Grass VB");
|
||||
|
||||
void LLGrassPartition::getGeometry(LLSpatialGroup* group)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
LLFastTimer ftm(FTM_REBUILD_GRASS_VB);
|
||||
|
||||
std::sort(mFaceList.begin(), mFaceList.end(), LLFace::CompareDistanceGreater());
|
||||
|
||||
@@ -600,7 +600,6 @@ static LLFastTimer::DeclareTimer FTM_REBUILD_PARTICLE_GEOM("Particle Geom");
|
||||
|
||||
void LLParticlePartition::getGeometry(LLSpatialGroup* group)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
LLFastTimer ftm(FTM_REBUILD_PARTICLE_GEOM);
|
||||
|
||||
std::sort(mFaceList.begin(), mFaceList.end(), LLFace::CompareDistanceGreater());
|
||||
|
||||
@@ -3210,7 +3210,6 @@ static LLFastTimer::DeclareTimer FTM_REGISTER_FACE("Register Face");
|
||||
void LLVolumeGeometryManager::registerFace(LLSpatialGroup* group, LLFace* facep, U32 type)
|
||||
{
|
||||
LLFastTimer t(FTM_REGISTER_FACE);
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
// if (facep->getViewerObject()->isSelected() && gHideSelectedObjects)
|
||||
// [RLVa:KB] - Checked: 2010-11-29 (RLVa-1.3.0c) | Modified: RLVa-1.3.0c
|
||||
|
||||
@@ -149,7 +149,6 @@ void LLWorld::destroyClass()
|
||||
|
||||
LLViewerRegion* LLWorld::addRegion(const U64 ®ion_handle, const LLHost &host)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_REGIONS);
|
||||
llinfos << "Add region with handle: " << region_handle << " on host " << host << llendl;
|
||||
LLViewerRegion *regionp = getRegionFromHandle(region_handle);
|
||||
if (regionp)
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#include "llfasttimer.h"
|
||||
#include "llfontgl.h"
|
||||
#include "llmemory.h"
|
||||
#include "llmemtype.h"
|
||||
#include "llnamevalue.h"
|
||||
#include "llpointer.h"
|
||||
#include "llprimitive.h"
|
||||
@@ -401,8 +400,6 @@ LLPipeline::LLPipeline() :
|
||||
|
||||
void LLPipeline::init()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_INIT);
|
||||
|
||||
refreshCachedSettings();
|
||||
|
||||
gOctreeMaxCapacity = gSavedSettings.getU32("OctreeMaxNodeCapacity");
|
||||
@@ -985,7 +982,6 @@ void LLPipeline::releaseScreenBuffers()
|
||||
void LLPipeline::createGLBuffers()
|
||||
{
|
||||
stop_glerror();
|
||||
LLMemType mt_cb(LLMemType::MTYPE_PIPELINE_CREATE_BUFFERS);
|
||||
assertInitialized();
|
||||
|
||||
updateRenderDeferred();
|
||||
@@ -1130,7 +1126,6 @@ void LLPipeline::createLUTBuffers()
|
||||
|
||||
void LLPipeline::restoreGL()
|
||||
{
|
||||
LLMemType mt_cb(LLMemType::MTYPE_PIPELINE_RESTORE_GL);
|
||||
assertInitialized();
|
||||
|
||||
if (mVertexShadersEnabled)
|
||||
@@ -1194,7 +1189,6 @@ BOOL LLPipeline::canUseAntiAliasing() const
|
||||
|
||||
void LLPipeline::unloadShaders()
|
||||
{
|
||||
LLMemType mt_us(LLMemType::MTYPE_PIPELINE_UNLOAD_SHADERS);
|
||||
LLViewerShaderMgr::instance()->unloadShaders();
|
||||
|
||||
mVertexShadersLoaded = 0;
|
||||
@@ -1226,7 +1220,6 @@ S32 LLPipeline::getMaxLightingDetail() const
|
||||
|
||||
S32 LLPipeline::setLightingDetail(S32 level)
|
||||
{
|
||||
LLMemType mt_ld(LLMemType::MTYPE_PIPELINE_LIGHTING_DETAIL);
|
||||
refreshCachedSettings();
|
||||
|
||||
if (level < 0)
|
||||
@@ -1392,7 +1385,6 @@ LLDrawPool *LLPipeline::findPool(const U32 type, LLViewerTexture *tex0)
|
||||
|
||||
LLDrawPool *LLPipeline::getPool(const U32 type, LLViewerTexture *tex0)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE);
|
||||
LLDrawPool *poolp = findPool(type, tex0);
|
||||
if (poolp)
|
||||
{
|
||||
@@ -1409,7 +1401,6 @@ LLDrawPool *LLPipeline::getPool(const U32 type, LLViewerTexture *tex0)
|
||||
// static
|
||||
LLDrawPool* LLPipeline::getPoolFromTE(const LLTextureEntry* te, LLViewerTexture* imagep)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE);
|
||||
U32 type = getPoolTypeFromTE(te, imagep);
|
||||
return gPipeline.getPool(type, imagep);
|
||||
}
|
||||
@@ -1417,8 +1408,6 @@ LLDrawPool* LLPipeline::getPoolFromTE(const LLTextureEntry* te, LLViewerTexture*
|
||||
//static
|
||||
U32 LLPipeline::getPoolTypeFromTE(const LLTextureEntry* te, LLViewerTexture* imagep)
|
||||
{
|
||||
LLMemType mt_gpt(LLMemType::MTYPE_PIPELINE_GET_POOL_TYPE);
|
||||
|
||||
if (!te || !imagep)
|
||||
{
|
||||
return 0;
|
||||
@@ -1447,7 +1436,6 @@ U32 LLPipeline::getPoolTypeFromTE(const LLTextureEntry* te, LLViewerTexture* ima
|
||||
|
||||
void LLPipeline::addPool(LLDrawPool *new_poolp)
|
||||
{
|
||||
LLMemType mt_a(LLMemType::MTYPE_PIPELINE_ADD_POOL);
|
||||
assertInitialized();
|
||||
mPools.insert(new_poolp);
|
||||
addToQuickLookup( new_poolp );
|
||||
@@ -1459,7 +1447,7 @@ void LLPipeline::allocDrawable(LLViewerObject *vobj)
|
||||
{
|
||||
llerrs << "Null object passed to allocDrawable!" << llendl;
|
||||
}
|
||||
LLMemType mt_ad(LLMemType::MTYPE_PIPELINE_ALLOCATE_DRAWABLE);
|
||||
|
||||
LLDrawable *drawable = new LLDrawable();
|
||||
vobj->mDrawable = drawable;
|
||||
|
||||
@@ -1568,7 +1556,7 @@ U32 LLPipeline::addObject(LLViewerObject *vobj)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
LLMemType mt_ao(LLMemType::MTYPE_PIPELINE_ADD_OBJECT);
|
||||
|
||||
static const LLCachedControl<bool> render_delay_creation("RenderDelayCreation",false);
|
||||
if (!vobj->isAvatar() && render_delay_creation)
|
||||
{
|
||||
@@ -1585,7 +1573,6 @@ U32 LLPipeline::addObject(LLViewerObject *vobj)
|
||||
void LLPipeline::createObjects(F32 max_dtime)
|
||||
{
|
||||
LLFastTimer ftm(FTM_PIPELINE_CREATE);
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_CREATE_OBJECTS);
|
||||
|
||||
LLTimer update_timer;
|
||||
|
||||
@@ -1774,7 +1761,6 @@ static LLFastTimer::DeclareTimer FTM_UPDATE_MOVE("Update Move");
|
||||
void LLPipeline::updateMove()
|
||||
{
|
||||
LLFastTimer t(FTM_UPDATE_MOVE);
|
||||
LLMemType mt_um(LLMemType::MTYPE_PIPELINE_UPDATE_MOVE);
|
||||
|
||||
static const LLCachedControl<bool> freeze_time("FreezeTime",false);
|
||||
if (freeze_time)
|
||||
@@ -2129,7 +2115,6 @@ static LLFastTimer::DeclareTimer FTM_CULL("Object Culling");
|
||||
void LLPipeline::updateCull(LLCamera& camera, LLCullResult& result, S32 water_clip, LLPlane* planep)
|
||||
{
|
||||
LLFastTimer t(FTM_CULL);
|
||||
LLMemType mt_uc(LLMemType::MTYPE_PIPELINE_UPDATE_CULL);
|
||||
|
||||
grabReferences(result);
|
||||
|
||||
@@ -2512,7 +2497,6 @@ void LLPipeline::rebuildPriorityGroups()
|
||||
{
|
||||
LLFastTimer t(FTM_REBUILD_PRIORITY_GROUPS);
|
||||
LLTimer update_timer;
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE);
|
||||
|
||||
assertInitialized();
|
||||
|
||||
@@ -2585,7 +2569,6 @@ void LLPipeline::rebuildGroups()
|
||||
void LLPipeline::updateGeom(F32 max_dtime)
|
||||
{
|
||||
LLTimer update_timer;
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_UPDATE_GEOM);
|
||||
LLPointer<LLDrawable> drawablep;
|
||||
|
||||
LLFastTimer t(FTM_GEO_UPDATE);
|
||||
@@ -2688,8 +2671,6 @@ void LLPipeline::updateGeom(F32 max_dtime)
|
||||
|
||||
void LLPipeline::markVisible(LLDrawable *drawablep, LLCamera& camera)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_MARK_VISIBLE);
|
||||
|
||||
if(drawablep && !drawablep->isDead())
|
||||
{
|
||||
if (drawablep->isSpatialBridge())
|
||||
@@ -2733,8 +2714,6 @@ void LLPipeline::markVisible(LLDrawable *drawablep, LLCamera& camera)
|
||||
|
||||
void LLPipeline::markMoved(LLDrawable *drawablep, BOOL damped_motion)
|
||||
{
|
||||
LLMemType mt_mm(LLMemType::MTYPE_PIPELINE_MARK_MOVED);
|
||||
|
||||
if (!drawablep)
|
||||
{
|
||||
//llerrs << "Sending null drawable to moved list!" << llendl;
|
||||
@@ -2779,8 +2758,6 @@ void LLPipeline::markMoved(LLDrawable *drawablep, BOOL damped_motion)
|
||||
|
||||
void LLPipeline::markShift(LLDrawable *drawablep)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_MARK_SHIFT);
|
||||
|
||||
if (!drawablep || drawablep->isDead())
|
||||
{
|
||||
return;
|
||||
@@ -2806,8 +2783,6 @@ static LLFastTimer::DeclareTimer FTM_SHIFT_HUD("Shift HUD");
|
||||
|
||||
void LLPipeline::shiftObjects(const LLVector3 &offset)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_SHIFT_OBJECTS);
|
||||
|
||||
assertInitialized();
|
||||
|
||||
glClear(GL_DEPTH_BUFFER_BIT);
|
||||
@@ -2859,8 +2834,6 @@ void LLPipeline::shiftObjects(const LLVector3 &offset)
|
||||
|
||||
void LLPipeline::markTextured(LLDrawable *drawablep)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_MARK_TEXTURED);
|
||||
|
||||
if (drawablep && !drawablep->isDead() && assertInitialized())
|
||||
{
|
||||
mRetexturedList.insert(drawablep);
|
||||
@@ -2911,8 +2884,6 @@ void LLPipeline::markMeshDirty(LLSpatialGroup* group)
|
||||
|
||||
void LLPipeline::markRebuild(LLSpatialGroup* group, BOOL priority)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE);
|
||||
|
||||
if (group && !group->isDead() && group->mSpatialPartition)
|
||||
{
|
||||
if (group->mSpatialPartition->mPartitionType == LLViewerRegion::PARTITION_HUD)
|
||||
@@ -2957,8 +2928,6 @@ void LLPipeline::markRebuild(LLSpatialGroup* group, BOOL priority)
|
||||
|
||||
void LLPipeline::markRebuild(LLDrawable *drawablep, LLDrawable::EDrawableFlags flag, BOOL priority)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_MARK_REBUILD);
|
||||
|
||||
if (drawablep && !drawablep->isDead() && assertInitialized())
|
||||
{
|
||||
if (!drawablep->isState(LLDrawable::BUILT))
|
||||
@@ -3005,7 +2974,6 @@ void LLPipeline::stateSort(LLCamera& camera, LLCullResult &result)
|
||||
}
|
||||
|
||||
LLFastTimer ftm(FTM_STATESORT);
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_STATE_SORT);
|
||||
|
||||
//LLVertexBuffer::unbind();
|
||||
|
||||
@@ -3107,7 +3075,6 @@ void LLPipeline::stateSort(LLCamera& camera, LLCullResult &result)
|
||||
|
||||
void LLPipeline::stateSort(LLSpatialGroup* group, LLCamera& camera)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_STATE_SORT);
|
||||
if (!sSkipUpdate && group->changeLOD())
|
||||
{
|
||||
OctreeGuard guard(group->mOctreeNode);
|
||||
@@ -3127,7 +3094,6 @@ void LLPipeline::stateSort(LLSpatialGroup* group, LLCamera& camera)
|
||||
|
||||
void LLPipeline::stateSort(LLSpatialBridge* bridge, LLCamera& camera)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_STATE_SORT);
|
||||
if (/*!sShadowRender && */!sSkipUpdate && bridge->getSpatialGroup()->changeLOD())
|
||||
{
|
||||
bool force_update = false;
|
||||
@@ -3137,8 +3103,6 @@ void LLPipeline::stateSort(LLSpatialBridge* bridge, LLCamera& camera)
|
||||
|
||||
void LLPipeline::stateSort(LLDrawable* drawablep, LLCamera& camera)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_STATE_SORT);
|
||||
|
||||
if (!drawablep
|
||||
|| drawablep->isDead()
|
||||
|| !hasRenderType(drawablep->getRenderType()))
|
||||
@@ -3409,7 +3373,6 @@ void updateParticleActivity(LLDrawable *drawablep);
|
||||
|
||||
void LLPipeline::postSort(LLCamera& camera)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_POST_SORT);
|
||||
LLFastTimer ftm(FTM_STATESORT_POSTSORT);
|
||||
|
||||
assertInitialized();
|
||||
@@ -3661,7 +3624,6 @@ void LLPipeline::postSort(LLCamera& camera)
|
||||
|
||||
void render_hud_elements()
|
||||
{
|
||||
LLMemType mt_rhe(LLMemType::MTYPE_PIPELINE_RENDER_HUD_ELS);
|
||||
LLFastTimer t(FTM_RENDER_UI);
|
||||
gPipeline.disableLights();
|
||||
|
||||
@@ -3717,8 +3679,6 @@ void render_hud_elements()
|
||||
|
||||
void LLPipeline::renderHighlights()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_RENDER_HL);
|
||||
|
||||
assertInitialized();
|
||||
|
||||
// Draw 3D UI elements here (before we clear the Z buffer in POOL_HUD)
|
||||
@@ -3785,7 +3745,6 @@ U32 LLPipeline::sCurRenderPoolType = 0 ;
|
||||
|
||||
void LLPipeline::renderGeom(LLCamera& camera, BOOL forceVBOUpdate)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_RENDER_GEOM);
|
||||
LLFastTimer t(FTM_RENDER_GEOMETRY);
|
||||
|
||||
assertInitialized();
|
||||
@@ -4050,7 +4009,6 @@ void LLPipeline::renderGeom(LLCamera& camera, BOOL forceVBOUpdate)
|
||||
void LLPipeline::renderGeomDeferred(LLCamera& camera)
|
||||
{
|
||||
LLAppViewer::instance()->pingMainloopTimeout("Pipeline:RenderGeomDeferred");
|
||||
LLMemType mt_rgd(LLMemType::MTYPE_PIPELINE_RENDER_GEOM_DEFFERRED);
|
||||
LLFastTimer t(FTM_RENDER_GEOMETRY);
|
||||
|
||||
LLFastTimer t2(FTM_DEFERRED_POOLS);
|
||||
@@ -4150,7 +4108,6 @@ void LLPipeline::renderGeomDeferred(LLCamera& camera)
|
||||
|
||||
void LLPipeline::renderGeomPostDeferred(LLCamera& camera)
|
||||
{
|
||||
LLMemType mt_rgpd(LLMemType::MTYPE_PIPELINE_RENDER_GEOM_POST_DEF);
|
||||
LLFastTimer t(FTM_POST_DEFERRED_POOLS);
|
||||
U32 cur_type = 0;
|
||||
|
||||
@@ -4247,7 +4204,6 @@ void LLPipeline::renderGeomPostDeferred(LLCamera& camera)
|
||||
|
||||
void LLPipeline::renderGeomShadow(LLCamera& camera)
|
||||
{
|
||||
LLMemType mt_rgs(LLMemType::MTYPE_PIPELINE_RENDER_GEOM_SHADOW);
|
||||
U32 cur_type = 0;
|
||||
|
||||
LLGLEnable cull(GL_CULL_FACE);
|
||||
@@ -4401,8 +4357,6 @@ void LLPipeline::renderPhysicsDisplay()
|
||||
|
||||
void LLPipeline::renderDebug()
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE);
|
||||
|
||||
assertInitialized();
|
||||
|
||||
gGL.color4f(1,1,1,1);
|
||||
@@ -4735,7 +4689,6 @@ static LLFastTimer::DeclareTimer FTM_REBUILD_POOLS("Rebuild Pools");
|
||||
void LLPipeline::rebuildPools()
|
||||
{
|
||||
LLFastTimer t(FTM_REBUILD_POOLS);
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_REBUILD_POOLS);
|
||||
|
||||
assertInitialized();
|
||||
|
||||
@@ -4775,8 +4728,6 @@ void LLPipeline::rebuildPools()
|
||||
|
||||
void LLPipeline::addToQuickLookup( LLDrawPool* new_poolp )
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE_QUICK_LOOKUP);
|
||||
|
||||
assertInitialized();
|
||||
|
||||
switch( new_poolp->getType() )
|
||||
@@ -4942,7 +4893,6 @@ void LLPipeline::removePool( LLDrawPool* poolp )
|
||||
void LLPipeline::removeFromQuickLookup( LLDrawPool* poolp )
|
||||
{
|
||||
assertInitialized();
|
||||
LLMemType mt(LLMemType::MTYPE_PIPELINE);
|
||||
switch( poolp->getType() )
|
||||
{
|
||||
case LLDrawPool::POOL_SIMPLE:
|
||||
@@ -6425,7 +6375,6 @@ void LLPipeline::doResetVertexBuffers()
|
||||
|
||||
void LLPipeline::renderObjects(U32 type, U32 mask, BOOL texture, BOOL batch_texture)
|
||||
{
|
||||
LLMemType mt_ro(LLMemType::MTYPE_PIPELINE_RENDER_OBJECTS);
|
||||
assertInitialized();
|
||||
gGL.loadMatrix(gGLModelView);
|
||||
gGLLastMatrix = NULL;
|
||||
@@ -6501,7 +6450,6 @@ void LLPipeline::bindScreenToTexture()
|
||||
static LLFastTimer::DeclareTimer FTM_RENDER_BLOOM("Bloom");
|
||||
void LLPipeline::renderBloom(BOOL for_snapshot, F32 zoom_factor, int subfield, bool tiling)
|
||||
{
|
||||
LLMemType mt_ru(LLMemType::MTYPE_PIPELINE_RENDER_BLOOM);
|
||||
if (!(gPipeline.canUseVertexShaders() &&
|
||||
sRenderGlow))
|
||||
{
|
||||
@@ -9599,7 +9547,6 @@ static LLFastTimer::DeclareTimer FTM_IMPOSTOR_RESIZE("Impostor Resize");
|
||||
|
||||
void LLPipeline::generateImpostor(LLVOAvatar* avatar)
|
||||
{
|
||||
LLMemType mt_gi(LLMemType::MTYPE_PIPELINE_GENERATE_IMPOSTOR);
|
||||
LLGLState::checkStates();
|
||||
LLGLState::checkTextureChannels();
|
||||
LLGLState::checkClientArrays();
|
||||
|
||||
Reference in New Issue
Block a user