VERY experimental Nintendo Switch 2 emulator
C++
texture_cache: Only copy textures that were modified from host
ReinUsesLisp5e4a74041056
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.hindex 62206b9060..3e024a0981 100644--- a/src/video_core/texture_cache/texture_cache.h+++ b/src/video_core/texture_cache/texture_cache.h@@ -679,6 +679,12 @@ private:if (new_surface->GetMipmapSize(base_mipmap) != surface->GetMipmapSize(0)) {continue;}+ ++passed_tests;++ if (!surface->IsModified()) {+ continue;+ }+ modified = true;// Copy all mipmaps and layersconst u32 block_width = params.GetDefaultBlockWidth();@@ -694,8 +700,6 @@ private:src_params.depth);ImageCopy(surface, new_surface, copy_params);}- ++passed_tests;- modified |= surface->IsModified();}if (passed_tests == 0) {return std::nullopt;