mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 13:23:52 +00:00
Remove redundant mCompile set - we do not use data from it anyway
This commit is contained in:
parent
c2986b3bd7
commit
cad45e96ac
2 changed files with 0 additions and 6 deletions
|
@ -47,8 +47,6 @@ void CompositeMapRenderer::drawImplementation(osg::RenderInfo &renderInfo) const
|
||||||
double availableTime = std::max((targetFrameTime - dt)*conservativeTimeRatio,
|
double availableTime = std::max((targetFrameTime - dt)*conservativeTimeRatio,
|
||||||
mMinimumTimeAvailable);
|
mMinimumTimeAvailable);
|
||||||
|
|
||||||
mCompiled.clear();
|
|
||||||
|
|
||||||
if (mWorkQueue)
|
if (mWorkQueue)
|
||||||
mUnrefQueue->flush(mWorkQueue.get());
|
mUnrefQueue->flush(mWorkQueue.get());
|
||||||
|
|
||||||
|
@ -60,7 +58,6 @@ void CompositeMapRenderer::drawImplementation(osg::RenderInfo &renderInfo) const
|
||||||
while (!mImmediateCompileSet.empty())
|
while (!mImmediateCompileSet.empty())
|
||||||
{
|
{
|
||||||
osg::ref_ptr<CompositeMap> node = *mImmediateCompileSet.begin();
|
osg::ref_ptr<CompositeMap> node = *mImmediateCompileSet.begin();
|
||||||
mCompiled.insert(node);
|
|
||||||
mImmediateCompileSet.erase(node);
|
mImmediateCompileSet.erase(node);
|
||||||
|
|
||||||
mMutex.unlock();
|
mMutex.unlock();
|
||||||
|
@ -80,7 +77,6 @@ void CompositeMapRenderer::drawImplementation(osg::RenderInfo &renderInfo) const
|
||||||
|
|
||||||
if (node->mCompiled >= node->mDrawables.size())
|
if (node->mCompiled >= node->mDrawables.size())
|
||||||
{
|
{
|
||||||
mCompiled.insert(node);
|
|
||||||
mCompileSet.erase(node);
|
mCompileSet.erase(node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,8 +76,6 @@ namespace Terrain
|
||||||
mutable CompileSet mCompileSet;
|
mutable CompileSet mCompileSet;
|
||||||
mutable CompileSet mImmediateCompileSet;
|
mutable CompileSet mImmediateCompileSet;
|
||||||
|
|
||||||
mutable CompileSet mCompiled;
|
|
||||||
|
|
||||||
mutable OpenThreads::Mutex mMutex;
|
mutable OpenThreads::Mutex mMutex;
|
||||||
|
|
||||||
osg::ref_ptr<osg::FrameBufferObject> mFBO;
|
osg::ref_ptr<osg::FrameBufferObject> mFBO;
|
||||||
|
|
Loading…
Reference in a new issue