texture streaming: stream-in can happen on memory shortage

This commit is contained in:
Turánszki János
2024-10-09 16:56:13 +02:00
parent 9821f04093
commit 4df5059bf1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1443,7 +1443,7 @@ namespace wi
const GraphicsDevice::MemoryUsage memory_usage = device->GetMemoryUsage();
const float memory_percent = float(double(memory_usage.usage) / double(memory_usage.budget));
const bool memory_shortage = memory_percent > streaming_threshold;
const bool stream_in = memory_shortage ? false : (requested_resolution >= std::min(desc.width, desc.height));
const bool stream_in = requested_resolution >= std::min(desc.width, desc.height);
int mip_offset = int(resource->streaming_texture.mip_count - desc.mip_levels);
if (stream_in)
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wi::version
// minor features, major updates, breaking compatibility changes
const int minor = 71;
// minor bug fixes, alterations, refactors, updates
const int revision = 592;
const int revision = 593;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);