Remove LLMemType and related files
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user