mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Show speed in percent
This commit is contained in:
parent
44abac7ee3
commit
988b5539fa
@ -524,11 +524,11 @@ void EmuScreen::render() {
|
||||
char fpsbuf[256];
|
||||
switch (g_Config.iShowFPSCounter) {
|
||||
case 1:
|
||||
sprintf(fpsbuf, "Speed: %0.1f", vps); break;
|
||||
sprintf(fpsbuf, "Speed: %0.1f%%", vps / 60.0f * 100.0f); break;
|
||||
case 2:
|
||||
sprintf(fpsbuf, "FPS: %0.1f", fps); break;
|
||||
case 3:
|
||||
sprintf(fpsbuf, "Speed: %5.1f\nFPS: %0.1f", vps, fps); break;
|
||||
sprintf(fpsbuf, "Speed: %0.1f%%\nFPS: %0.1f", vps / 60.0f * 100.0f, fps); break;
|
||||
}
|
||||
ui_draw2d.DrawText(UBUNTU24, fpsbuf, dp_xres - 8, 12, 0xc0000000, ALIGN_TOPRIGHT);
|
||||
ui_draw2d.DrawText(UBUNTU24, fpsbuf, dp_xres - 10, 10, 0xFF3fFF3f, ALIGN_TOPRIGHT);
|
||||
|
Loading…
Reference in New Issue
Block a user