mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 21:40:03 +00:00
Fix #7696
This commit is contained in:
parent
647bd2b572
commit
310b8206dd
@ -49,7 +49,8 @@ namespace Terrain
|
||||
|
||||
double timeLeft = availableTime;
|
||||
|
||||
while (!mCompileSet.empty() && timeLeft > 0)
|
||||
const auto deadline = std::chrono::steady_clock::now() + std::chrono::duration<double>(availableTime);
|
||||
while (!mCompileSet.empty() && std::chrono::steady_clock::now() < deadline)
|
||||
{
|
||||
osg::ref_ptr<CompositeMap> node = *mCompileSet.begin();
|
||||
mCompileSet.erase(node);
|
||||
|
Loading…
x
Reference in New Issue
Block a user