diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-07-11 20:34:48 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-11 20:34:48 +1000 |
| commit | 4c649d1a5d92ccb1cb106861d60d744b92188524 (patch) | |
| tree | 25011e4e5197824643d837414f3a2ebb66d283a2 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 8d8d1037398f0aebd4fcec478ace20dfef91e4cc (diff) | |
| parent | 9c245655fbb1deea183d47a53dbd6ecaab3bcb4a (diff) | |
Merge pull request #8238 from lioncash/video-stats
VideoCommon/Statistics: Minor cleanup changes
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index fcf4c945f9..490b51683e 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -1200,8 +1200,8 @@ TextureCacheBase::GetTexture(u32 address, u32 width, u32 height, const TextureFo } } - INCSTAT(stats.numTexturesUploaded); - SETSTAT(stats.numTexturesAlive, textures_by_address.size()); + INCSTAT(g_stats.num_textures_uploaded); + SETSTAT(g_stats.num_textures_alive, static_cast<int>(textures_by_address.size())); entry = DoPartialTextureUpdates(iter->second, &texMem[tlutaddr], tlutfmt); @@ -1277,8 +1277,8 @@ TextureCacheBase::GetXFBTexture(u32 address, u32 width, u32 height, u32 stride, // Insert into the texture cache so we can re-use it next frame, if needed. textures_by_address.emplace(entry->addr, entry); - SETSTAT(stats.numTexturesAlive, textures_by_address.size()); - INCSTAT(stats.numTexturesUploaded); + SETSTAT(g_stats.num_textures_alive, static_cast<int>(textures_by_address.size())); + INCSTAT(g_stats.num_textures_uploaded); if (g_ActiveConfig.bDumpXFBTarget) { @@ -2017,7 +2017,7 @@ TextureCacheBase::AllocateTexture(const TextureConfig& config) } } - INCSTAT(stats.numTexturesCreated); + INCSTAT(g_stats.num_textures_created); return TexPoolEntry(std::move(texture), std::move(framebuffer)); } |
