Remove redundant mCompile set - we do not use data from it anyway

pull/541/head
Andrei Kortunov 6 years ago
parent c2986b3bd7
commit cad45e96ac

@ -47,8 +47,6 @@ void CompositeMapRenderer::drawImplementation(osg::RenderInfo &renderInfo) const
double availableTime = std::max((targetFrameTime - dt)*conservativeTimeRatio,
mMinimumTimeAvailable);
mCompiled.clear();
if (mWorkQueue)
mUnrefQueue->flush(mWorkQueue.get());
@ -60,7 +58,6 @@ void CompositeMapRenderer::drawImplementation(osg::RenderInfo &renderInfo) const
while (!mImmediateCompileSet.empty())
{
osg::ref_ptr<CompositeMap> node = *mImmediateCompileSet.begin();
mCompiled.insert(node);
mImmediateCompileSet.erase(node);
mMutex.unlock();
@ -80,7 +77,6 @@ void CompositeMapRenderer::drawImplementation(osg::RenderInfo &renderInfo) const
if (node->mCompiled >= node->mDrawables.size())
{
mCompiled.insert(node);
mCompileSet.erase(node);
}
}

@ -76,8 +76,6 @@ namespace Terrain
mutable CompileSet mCompileSet;
mutable CompileSet mImmediateCompileSet;
mutable CompileSet mCompiled;
mutable OpenThreads::Mutex mMutex;
osg::ref_ptr<osg::FrameBufferObject> mFBO;

Loading…
Cancel
Save