mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Don't redundantly call notify on every frame.
This commit is contained in:
parent
5b9a2b73b0
commit
f3e17e7c52
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ namespace MWRender
|
||||||
void operator () (osg::RenderInfo& renderInfo) const override
|
void operator () (osg::RenderInfo& renderInfo) const override
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock(mMutex);
|
std::lock_guard<std::mutex> lock(mMutex);
|
||||||
if (renderInfo.getState()->getFrameStamp()->getFrameNumber() >= mFrame)
|
if (renderInfo.getState()->getFrameStamp()->getFrameNumber() >= mFrame && !mDone)
|
||||||
{
|
{
|
||||||
mDone = true;
|
mDone = true;
|
||||||
mCondition.notify_one();
|
mCondition.notify_one();
|
||||||
|
|
Loading…
Reference in a new issue