summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-10 23:11:14 -0400
committerLioncash <mathew1800@gmail.com>2019-07-10 23:19:10 -0400
commita99c7d01e1b043df9c09a3047bf0442f88ad94d3 (patch)
tree7a8414d7fdb82b522cfbb58b3c00337b97e8ab29 /Source/Core/VideoCommon/TextureCacheBase.cpp
parent0a7395bfba99719f71de5186a9916e66c1901f37 (diff)
VideoCommon/Statistics: Normalize statistic variable names
Normalizes all variables related to statistics so that they follow our coding style. These are relatively low traffic areas, so this modification isn't too noisy.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index fcf4c945f9..d031792b4b 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(stats.num_textures_uploaded);
+ SETSTAT(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(stats.num_textures_alive, static_cast<int>(textures_by_address.size()));
+ INCSTAT(stats.num_textures_uploaded);
if (g_ActiveConfig.bDumpXFBTarget)
{
@@ -2017,7 +2017,7 @@ TextureCacheBase::AllocateTexture(const TextureConfig& config)
}
}
- INCSTAT(stats.numTexturesCreated);
+ INCSTAT(stats.num_textures_created);
return TexPoolEntry(std::move(texture), std::move(framebuffer));
}