Merge pull request #15720 from hrydgard/depth-copy-stat

Add GPU stat for number of depth copies per frame
This commit is contained in:
Unknown W. Brackets authored and GitHub committed 2022-07-24 08:32:37 -07:00
commit c5d1d117ce
3 files changed
+6 -1

No files matched your search

+2
View File
@@ -494,6 +494,8 @@ void FramebufferManagerCommon::BlitFramebufferDepth(VirtualFramebuffer *src, Vir
return;
}
gpuStats.numDepthCopies++;
int w = std::min(src->renderWidth, dst->renderWidth);
int h = std::min(src->renderHeight, dst->renderHeight);
+2
View File
@@ -75,6 +75,7 @@ struct GPUStatistics {
numReadbacks = 0;
numUploads = 0;
numClears = 0;
numDepthCopies = 0;
msProcessingDisplayLists = 0;
vertexGPUCycles = 0;
otherGPUCycles = 0;
@@ -100,6 +101,7 @@ struct GPUStatistics {
int numReadbacks;
int numUploads;
int numClears;
int numDepthCopies;
double msProcessingDisplayLists;
int vertexGPUCycles;
int otherGPUCycles;
+2 -1
View File
@@ -3029,7 +3029,7 @@ size_t GPUCommon::FormatGPUStatsCommon(char *buffer, size_t size) {
"Vertices: %d cached: %d uncached: %d\n"
"FBOs active: %d (evaluations: %d)\n"
"Textures: %d, dec: %d, invalidated: %d, hashed: %d kB\n"
"Readbacks: %d, uploads: %d\n"
"Readbacks: %d, uploads: %d, depth copies: %d\n"
"GPU cycles executed: %d (%f per vertex)\n",
gpuStats.msProcessingDisplayLists * 1000.0f,
gpuStats.numDrawCalls,
@@ -3049,6 +3049,7 @@ size_t GPUCommon::FormatGPUStatsCommon(char *buffer, size_t size) {
gpuStats.numTextureDataBytesHashed / 1024,
gpuStats.numReadbacks,
gpuStats.numUploads,
gpuStats.numDepthCopies,
gpuStats.vertexGPUCycles + gpuStats.otherGPUCycles,
vertexAverageCycles
);