mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Add a new GPU stat (DrawPixels), kinda heavy since creates textures. GoW does 20-ish per frame.
This commit is contained in:
1 parent
f54f905be5
commit
ea552bc573
3 files changed
+8
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user