summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Statistics.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2016-01-06 23:29:51 +0100
committerPierre Bourdon <delroth@gmail.com>2016-01-06 23:29:51 +0100
commit3c65a7dd7f665eaea093806cfc280e3692b70aec (patch)
tree6166a471269a9b1eb2bf703a31c915489e428b44 /Source/Core/VideoCommon/Statistics.cpp
parent7fcb5a803b2e6179fe57654496fcea7f6b2ff183 (diff)
parentefbe5bc4b651d1f7f726bb064255e0e2562f7490 (diff)
Merge pull request #3156 from degasus/videosw2
VideoSW: Use VideoCommon framework and drop redundant code
Diffstat (limited to 'Source/Core/VideoCommon/Statistics.cpp')
-rw-r--r--Source/Core/VideoCommon/Statistics.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Statistics.cpp b/Source/Core/VideoCommon/Statistics.cpp
index 04164cdaed..53db2fcf50 100644
--- a/Source/Core/VideoCommon/Statistics.cpp
+++ b/Source/Core/VideoCommon/Statistics.cpp
@@ -8,6 +8,7 @@
#include "Common/StringUtil.h"
#include "VideoCommon/Statistics.h"
#include "VideoCommon/VertexLoaderManager.h"
+#include "VideoCommon/VideoConfig.h"
Statistics stats;
@@ -27,6 +28,21 @@ void Statistics::SwapDL()
std::string Statistics::ToString()
{
std::string str;
+
+ if (g_ActiveConfig.backend_info.APIType == API_TYPE::API_NONE)
+ {
+ str += StringFromFormat("Objects: %i\n", stats.thisFrame.numDrawnObjects);
+ str += StringFromFormat("Vertices Loaded: %i\n", stats.thisFrame.numVerticesLoaded);
+ str += StringFromFormat("Triangles Input: %i\n", stats.thisFrame.numTrianglesIn);
+ str += StringFromFormat("Triangles Rejected: %i\n", stats.thisFrame.numTrianglesRejected);
+ str += StringFromFormat("Triangles Culled: %i\n", stats.thisFrame.numTrianglesCulled);
+ str += StringFromFormat("Triangles Clipped: %i\n", stats.thisFrame.numTrianglesClipped);
+ str += StringFromFormat("Triangles Drawn: %i\n", stats.thisFrame.numTrianglesDrawn);
+ str += StringFromFormat("Rasterized Pix: %i\n", stats.thisFrame.rasterizedPixels);
+ str += StringFromFormat("TEV Pix In: %i\n", stats.thisFrame.tevPixelsIn);
+ str += StringFromFormat("TEV Pix Out: %i\n", stats.thisFrame.tevPixelsOut);
+ }
+
str += StringFromFormat("Textures created: %i\n", stats.numTexturesCreated);
str += StringFromFormat("Textures uploaded: %i\n", stats.numTexturesUploaded);
str += StringFromFormat("Textures alive: %i\n", stats.numTexturesAlive);