Skip to content

Commit

Permalink
Show the software rendering option on all platforms
Browse files Browse the repository at this point in the history
It's improved greatly in performance thanks to Unknown's hard work,
and is becoming a lot more usable. It's not JIT-optimized on ARM yet,
but it's fast enough for some 2D games.

See #12543
  • Loading branch information
hrydgard committed Jan 21, 2022
1 parent 6bcc607 commit 6fd082f
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions UI/GameSettingsScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,22 +311,12 @@ void GameSettingsScreen::CreateViews() {
});
blockTransfer->SetDisabledPtr(&g_Config.bSoftwareRendering);

bool showSoftGPU = true;
#ifdef MOBILE_DEVICE
// On Android, only show the software rendering setting if it's already enabled.
// Can still be turned on through INI file editing.
showSoftGPU = g_Config.bSoftwareRendering;
#endif
if (showSoftGPU) {
CheckBox *softwareGPU = graphicsSettings->Add(new CheckBox(&g_Config.bSoftwareRendering, gr->T("Software Rendering", "Software Rendering (slow)")));
softwareGPU->OnClick.Add([=](EventParams &e) {
if (g_Config.bSoftwareRendering)
settingInfo_->Show(gr->T("SoftGPU Tip", "Currently VERY slow"), e.v);
return UI::EVENT_CONTINUE;
});
softwareGPU->OnClick.Handle(this, &GameSettingsScreen::OnSoftwareRendering);
softwareGPU->SetEnabled(!PSP_IsInited());
}
CheckBox *softwareGPU = graphicsSettings->Add(new CheckBox(&g_Config.bSoftwareRendering, gr->T("Software Rendering", "Software Rendering (slow)")));
softwareGPU->OnClick.Add([=](EventParams &e) {
return UI::EVENT_CONTINUE;
});
softwareGPU->OnClick.Handle(this, &GameSettingsScreen::OnSoftwareRendering);
softwareGPU->SetEnabled(!PSP_IsInited());

graphicsSettings->Add(new ItemHeader(gr->T("Frame Rate Control")));
static const char *frameSkip[] = {"Off", "1", "2", "3", "4", "5", "6", "7", "8"};
Expand Down

0 comments on commit 6fd082f

Please sign in to comment.