Add a new GPU stat (DrawPixels), kinda heavy since creates textures. GoW does 20-ish per frame.

This commit is contained in:
Henrik Rydgård committed 2023-05-30 10:15:34 +02:00
1 parent f54f905be5
commit ea552bc573
3 files changed
+8 -3

No files matched your search

+4 -2
View File
@@ -1418,10 +1418,12 @@ Draw::Texture *FramebufferManagerCommon::MakePixelTexture(const u8 *srcPixels, G
};
// Hot Shots Golf (#12355) does tons of these in a frame in some situations! So creating textures
// better be fast.
// better be fast. So does God of War, a lot of the time, a bit unclear what it's doing.
Draw::Texture *tex = draw_->CreateTexture(desc);
if (!tex)
if (!tex) {
ERROR_LOG(G3D, "Failed to create DrawPixels texture");
}
gpuStats.numDrawPixels++;
return tex;
}