summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2013-05-23 21:07:01 +0200
committerdegasus <wickmarkus@web.de>2013-05-23 21:07:01 +0200
commita51d6a6dddc99b91a19025988a3e91bb2bc02acb (patch)
treeca41ef200d8f66cd8be8715ea827d166a1cbcb53 /Source/Core/VideoCommon
parent6a5e7d7be40cc8f06aa2e4d382204bc169488234 (diff)
add new statistics for gpu buffer streaming
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/Src/Statistics.cpp3
-rw-r--r--Source/Core/VideoCommon/Src/Statistics.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/Statistics.cpp b/Source/Core/VideoCommon/Src/Statistics.cpp
index 3dcd281b7f..0c69499355 100644
--- a/Source/Core/VideoCommon/Src/Statistics.cpp
+++ b/Source/Core/VideoCommon/Src/Statistics.cpp
@@ -55,6 +55,9 @@ char *Statistics::ToString(char *ptr)
ptr+=sprintf(ptr,"CP loads (DL): %i\n",stats.thisFrame.numCPLoadsInDL);
ptr+=sprintf(ptr,"BP loads: %i\n",stats.thisFrame.numBPLoads);
ptr+=sprintf(ptr,"BP loads (DL): %i\n",stats.thisFrame.numBPLoadsInDL);
+ ptr+=sprintf(ptr,"Vertex streamed: %i kB\n",stats.thisFrame.bytesVertexStreamed/1024);
+ ptr+=sprintf(ptr,"Index streamed: %i kB\n",stats.thisFrame.bytesIndexStreamed/1024);
+ ptr+=sprintf(ptr,"Uniform streamed: %i kB\n",stats.thisFrame.bytesUniformStreamed/1024);
ptr+=sprintf(ptr,"Vertex Loaders: %i\n",stats.numVertexLoaders);
std::string text1;
diff --git a/Source/Core/VideoCommon/Src/Statistics.h b/Source/Core/VideoCommon/Src/Statistics.h
index cb8a3afdc5..a7976651a5 100644
--- a/Source/Core/VideoCommon/Src/Statistics.h
+++ b/Source/Core/VideoCommon/Src/Statistics.h
@@ -60,6 +60,10 @@ struct Statistics
int numBufferSplits;
int numDListsCalled;
+
+ int bytesVertexStreamed;
+ int bytesIndexStreamed;
+ int bytesUniformStreamed;
};
ThisFrame thisFrame;
void ResetFrame();