summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Statistics.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2015-10-09 20:50:36 +0200
committerdegasus <wickmarkus@web.de>2016-01-06 22:10:29 +0100
commitefbe5bc4b651d1f7f726bb064255e0e2562f7490 (patch)
tree6166a471269a9b1eb2bf703a31c915489e428b44 /Source/Core/VideoCommon/Statistics.cpp
parent7fcb5a803b2e6179fe57654496fcea7f6b2ff183 (diff)
VideoSW: Use more VideoCommon
Now we require lots of empty functions, but this removes by far more duplicated 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);