mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-27 14:10:03 +01:00
Always download when needed.
This commit is contained in:
parent
cf86e7f404
commit
e8091f9a13
1 changed files with 2 additions and 7 deletions
|
|
@ -160,10 +160,7 @@ void TextureCache<P>::RunGarbageCollector() {
|
||||||
if (!high_priority_mode && !is_large_sparse && must_download) {
|
if (!high_priority_mode && !is_large_sparse && must_download) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (must_download && !is_large_sparse) {
|
||||||
const bool will_delete_now = aggressive_mode || (high_priority_mode && is_large_sparse);
|
|
||||||
|
|
||||||
if (!will_delete_now && must_download) {
|
|
||||||
auto map = runtime.DownloadStagingBuffer(image.unswizzled_size_bytes);
|
auto map = runtime.DownloadStagingBuffer(image.unswizzled_size_bytes);
|
||||||
const auto copies = FixSmallVectorADL(FullDownloadCopies(image.info));
|
const auto copies = FixSmallVectorADL(FullDownloadCopies(image.info));
|
||||||
image.DownloadMemory(map, copies);
|
image.DownloadMemory(map, copies);
|
||||||
|
|
@ -171,13 +168,11 @@ void TextureCache<P>::RunGarbageCollector() {
|
||||||
SwizzleImage(*gpu_memory, image.gpu_addr, image.info, copies, map.mapped_span,
|
SwizzleImage(*gpu_memory, image.gpu_addr, image.info, copies, map.mapped_span,
|
||||||
swizzle_data_buffer);
|
swizzle_data_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (True(image.flags & ImageFlagBits::Tracked)) {
|
if (True(image.flags & ImageFlagBits::Tracked)) {
|
||||||
UntrackImage(image, image_id);
|
UntrackImage(image, image_id);
|
||||||
}
|
}
|
||||||
UnregisterImage(image_id);
|
UnregisterImage(image_id);
|
||||||
DeleteImage(image_id, will_delete_now);
|
DeleteImage(image_id, aggressive_mode || (high_priority_mode && is_large_sparse));
|
||||||
|
|
||||||
if (total_used_memory < critical_memory) {
|
if (total_used_memory < critical_memory) {
|
||||||
if (aggressive_mode) {
|
if (aggressive_mode) {
|
||||||
num_iterations >>= 2;
|
num_iterations >>= 2;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue