Fixed race condition that could result in the texture and mesh streamer miscalculating the amount of GPU memory available for new asset uploads
This commit is contained in:
@@ -276,6 +276,8 @@ void KRMeshManager::doStreaming(long &memoryRemaining, long &memoryRemainingThis
|
||||
m_streamerFenceMutex.lock();
|
||||
m_streamerComplete = true;
|
||||
m_streamerFenceMutex.unlock();
|
||||
} else {
|
||||
memoryRemaining -= getMemUsed();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -320,6 +320,8 @@ void KRTextureManager::doStreaming(long &memoryRemaining, long &memoryRemainingT
|
||||
m_streamerFenceMutex.lock();
|
||||
m_streamerComplete = true;
|
||||
m_streamerFenceMutex.unlock();
|
||||
} else {
|
||||
memoryRemaining -= getMemUsed();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user