mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-28 06:31:30 +02:00
Re-enable threaded texture transfer
This commit is contained in:
parent
50233f6ffb
commit
74481b3c1f
2 changed files with 10 additions and 8 deletions
|
@ -108,6 +108,7 @@ float GLTexture::getMemoryPressure() {
|
|||
} else {
|
||||
// Check the global free GPU memory
|
||||
auto freeGpuMemory = getFreeDedicatedMemory();
|
||||
if (freeGpuMemory) {
|
||||
static gpu::Size lastFreeGpuMemory = 0;
|
||||
auto freePercentage = (float)freeGpuMemory / (float)totalGpuMemory;
|
||||
if (freeGpuMemory != lastFreeGpuMemory) {
|
||||
|
@ -118,6 +119,7 @@ float GLTexture::getMemoryPressure() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Allow 75% of all available GPU memory to be consumed by textures
|
||||
// FIXME overly conservative?
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "GLShared.h"
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
//#define THREADED_TEXTURE_TRANSFER
|
||||
#define THREADED_TEXTURE_TRANSFER
|
||||
#endif
|
||||
|
||||
namespace gpu { namespace gl {
|
||||
|
|
Loading…
Reference in a new issue