mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix falling back to the old timing, also show audio timing in the frame timing overlay
This commit is contained in:
1 parent
fb4c167d37
commit
f86053d020
6 files changed
+26
-14
No files matched your search
+7
-1
@@ -108,7 +108,7 @@ static void DrawFrameTimes(UIContext *ctx, const Bounds &bounds) {
|
||||
static void DrawFrameTiming(UIContext *ctx, const Bounds &bounds) {
|
||||
FontID ubuntu24("UBUNTU24");
|
||||
|
||||
char statBuf[1024]{};
|
||||
char statBuf[2048]{};
|
||||
|
||||
ctx->Flush();
|
||||
ctx->BindFontTexture();
|
||||
@@ -174,6 +174,12 @@ static void DrawFrameTiming(UIContext *ctx, const Bounds &bounds) {
|
||||
}
|
||||
ctx->Draw()->DrawTextRect(ubuntu24, statBuf, bounds.x + 10 + i * 150, bounds.y + 150, bounds.w - 20, bounds.h - 30, 0xFFFFFFFF, FLAG_DYNAMIC_ASCII);
|
||||
}
|
||||
|
||||
// Also draw audio stats, because they're quite relevant.
|
||||
|
||||
System_AudioGetDebugStats(statBuf, sizeof(statBuf));
|
||||
ctx->Draw()->DrawTextRect(ubuntu24, statBuf, bounds.x + 10, bounds.y + 360, bounds.w - 20, bounds.h - 30, 0xFFFFFFFF, FLAG_DYNAMIC_ASCII);
|
||||
|
||||
ctx->Draw()->SetFontScale(1.0f, 1.0f);
|
||||
ctx->Flush();
|
||||
ctx->RebindTexture();
|
||||
|
||||
Reference in new issue
Block a user