From c8698f912f53b00db175ac6a483c25a8b0f47086 Mon Sep 17 00:00:00 2001 From: DrChat Date: Fri, 2 Mar 2018 23:46:58 -0600 Subject: [PATCH] [Vulkan] Add pending delete textures counter --- src/xenia/gpu/vulkan/texture_cache.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/xenia/gpu/vulkan/texture_cache.cc b/src/xenia/gpu/vulkan/texture_cache.cc index 074f9fa2c..558e796ba 100644 --- a/src/xenia/gpu/vulkan/texture_cache.cc +++ b/src/xenia/gpu/vulkan/texture_cache.cc @@ -1490,9 +1490,11 @@ void TextureCache::RemoveInvalidatedTextures() { it != invalidated_textures.end(); ++it) { pending_delete_textures_.push_back(*it); textures_.erase((*it)->texture_info.hash()); - COUNT_profile_set("gpu/texture_cache/textures", textures_.size()); } + COUNT_profile_set("gpu/texture_cache/textures", textures_.size()); + COUNT_profile_set("gpu/texture_cache/pending_deletes", + pending_delete_textures_.size()); invalidated_textures.clear(); } } @@ -1541,6 +1543,9 @@ void TextureCache::Scavenge() { it = pending_delete_textures_.erase(it); } + + COUNT_profile_set("gpu/texture_cache/pending_deletes", + pending_delete_textures_.size()); } }