Replaced some opengl fixed functions with shaders. Temporary ShyotlUseLegacyRenderPath setting to debug if this change actually improves framerate at all (setting not tied to callbacks. Have to toggle shaders to have stuff pick up the setting change)
This commit is contained in:
@@ -87,7 +87,7 @@ LLDynamicArrayPtr<LLPointer<LLDrawable> > LLDrawable::sDeadList;
|
||||
void LLDrawable::incrementVisible()
|
||||
{
|
||||
sCurVisible++;
|
||||
sCurPixelAngle = (F32) gViewerWindow->getWindowDisplayHeight()/LLViewerCamera::getInstance()->getView();
|
||||
sCurPixelAngle = (F32) gViewerWindow->getWindowHeightRaw()/LLViewerCamera::getInstance()->getView();
|
||||
}
|
||||
void LLDrawable::init()
|
||||
{
|
||||
@@ -202,16 +202,22 @@ void LLDrawable::cleanupReferences()
|
||||
{
|
||||
LLFastTimer t(LLFastTimer::FTM_PIPELINE);
|
||||
|
||||
std::for_each(mFaces.begin(), mFaces.end(), DeletePointer());
|
||||
mFaces.clear();
|
||||
{
|
||||
//LLFastTimer t(FTM_DELETE_FACES);
|
||||
std::for_each(mFaces.begin(), mFaces.end(), DeletePointer());
|
||||
mFaces.clear();
|
||||
}
|
||||
|
||||
gObjectList.removeDrawable(this);
|
||||
|
||||
gPipeline.unlinkDrawable(this);
|
||||
|
||||
// Cleanup references to other objects
|
||||
mVObjp = NULL;
|
||||
mParent = NULL;
|
||||
{
|
||||
//LLFastTimer t(FTM_DEREF_DRAWABLE);
|
||||
// Cleanup references to other objects
|
||||
mVObjp = NULL;
|
||||
mParent = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void LLDrawable::cleanupDeadDrawables()
|
||||
|
||||
Reference in New Issue
Block a user