Add Blackberry statistics overlay option.

This commit is contained in:
Sacha 2013-10-28 14:19:27 +10:00
parent f2e6939745
commit d616cc72a2
4 changed files with 8 additions and 4 deletions

View file

@ -533,7 +533,7 @@ void hleEnterVblank(u64 userdata, int cyclesLate) {
// non-buffered rendering. The interaction with frame skipping seems to need // non-buffered rendering. The interaction with frame skipping seems to need
// some work. // some work.
if (gpu->FramebufferDirty()) { if (gpu->FramebufferDirty()) {
if (g_Config.iShowFPSCounter) { if (g_Config.iShowFPSCounter && g_Config.iShowFPSCounter < 4) {
CalculateFPS(); CalculateFPS();
} }

View file

@ -209,7 +209,7 @@ namespace Reporting
postdata.Add("pixel_height", PSP_CoreParameter().pixelHeight); postdata.Add("pixel_height", PSP_CoreParameter().pixelHeight);
postdata.Add("ticks", (const uint64_t)CoreTiming::GetTicks()); postdata.Add("ticks", (const uint64_t)CoreTiming::GetTicks());
if (g_Config.iShowFPSCounter) if (g_Config.iShowFPSCounter && g_Config.iShowFPSCounter < 4)
{ {
float vps, fps; float vps, fps;
__DisplayGetAveragedFPS(&vps, &fps); __DisplayGetAveragedFPS(&vps, &fps);

View file

@ -168,7 +168,11 @@ void GameSettingsScreen::CreateViews() {
prescale->SetEnabled(false); prescale->SetEnabled(false);
graphicsSettings->Add(new ItemHeader(gs->T("Overlay Information"))); graphicsSettings->Add(new ItemHeader(gs->T("Overlay Information")));
static const char *fpsChoices[] = {"None", "Speed", "FPS", "Both"}; static const char *fpsChoices[] = {"None", "Speed", "FPS", "Both"
#ifdef BLACKBERRY
, "Statistics"
#endif
};
graphicsSettings->Add(new PopupMultiChoice(&g_Config.iShowFPSCounter, gs->T("Show FPS Counter"), fpsChoices, 0, ARRAY_SIZE(fpsChoices), gs, screenManager())); graphicsSettings->Add(new PopupMultiChoice(&g_Config.iShowFPSCounter, gs->T("Show FPS Counter"), fpsChoices, 0, ARRAY_SIZE(fpsChoices), gs, screenManager()));
graphicsSettings->Add(new CheckBox(&g_Config.bShowDebugStats, gs->T("Show Debug Statistics"))); graphicsSettings->Add(new CheckBox(&g_Config.bShowDebugStats, gs->T("Show Debug Statistics")));

2
native

@ -1 +1 @@
Subproject commit f0819f14a4e69f154703ef0093375c387e0b1e95 Subproject commit 11e62f7f3aac0bbbcd7e8ebb6d7e8bdb1d9e721f