new fasttimers, including ui.
This commit is contained in:
@@ -141,9 +141,10 @@ LLVector3 LLVOPartGroup::getCameraPosition() const
|
||||
return gAgentCamera.getCameraPositionAgent();
|
||||
}
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_UPDATE_PARTICLES("Update Particles");
|
||||
BOOL LLVOPartGroup::updateGeometry(LLDrawable *drawable)
|
||||
{
|
||||
LLFastTimer ftm(LLFastTimer::FTM_UPDATE_PARTICLES);
|
||||
LLFastTimer ftm(FTM_UPDATE_PARTICLES);
|
||||
|
||||
dirtySpatialGroup();
|
||||
|
||||
@@ -460,12 +461,15 @@ void LLParticlePartition::addGeometryCount(LLSpatialGroup* group, U32& vertex_co
|
||||
}
|
||||
}
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_REBUILD_GRASS_VB("Grass VB");
|
||||
static LLFastTimer::DeclareTimer FTM_REBUILD_PARTICLE_VB("Particle VB");
|
||||
|
||||
void LLParticlePartition::getGeometry(LLSpatialGroup* group)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
LLFastTimer ftm(mDrawableType == LLPipeline::RENDER_TYPE_GRASS ?
|
||||
LLFastTimer::FTM_REBUILD_GRASS_VB :
|
||||
LLFastTimer::FTM_REBUILD_PARTICLE_VB);
|
||||
FTM_REBUILD_GRASS_VB :
|
||||
FTM_REBUILD_PARTICLE_VB);
|
||||
|
||||
std::sort(mFaceList.begin(), mFaceList.end(), LLFace::CompareDistanceGreater());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user