mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Remove double disable function on frame duplication
This commit is contained in:
parent
ad0ef74afe
commit
d2a9bc6bcc
1 changed files with 2 additions and 5 deletions
|
@ -381,15 +381,12 @@ void GameSettingsScreen::CreateViews() {
|
|||
#endif
|
||||
|
||||
CheckBox *frameDuplication = graphicsSettings->Add(new CheckBox(&g_Config.bRenderDuplicateFrames, gr->T("Render duplicate frames to 60hz")));
|
||||
frameDuplication->SetEnabledFunc([] {
|
||||
return g_Config.iRenderingMode != FB_NON_BUFFERED_MODE || (g_Config.bSoftwareRendering && g_Config.iFrameSkip != 0);
|
||||
});
|
||||
frameDuplication->OnClick.Add([=](EventParams &e) {
|
||||
settingInfo_->Show(gr->T("RenderDuplicateFrames Tip", "Can make framerate smoother in games that run at lower framerates"), e.v);
|
||||
return UI::EVENT_CONTINUE;
|
||||
});
|
||||
frameDuplication->SetEnabledFunc([]() -> bool {
|
||||
return g_Config.iFrameSkip == 0;
|
||||
frameDuplication->SetEnabledFunc([] {
|
||||
return g_Config.iRenderingMode != FB_NON_BUFFERED_MODE && g_Config.iFrameSkip == 0;
|
||||
});
|
||||
|
||||
if (GetGPUBackend() == GPUBackend::VULKAN || GetGPUBackend() == GPUBackend::OPENGL) {
|
||||
|
|
Loading…
Add table
Reference in a new issue