Disable the "Duplicate frames" feature if frameskip != 0. Works around / Fixes #13068

This commit is contained in:
Henrik Rydgård committed 2020-06-28 22:20:22 +02:00
1 parent 63ead85c7f
commit df6f216056
2 files changed
+8 -2

No files matched your search

+3
View File
@@ -356,6 +356,9 @@ void GameSettingsScreen::CreateViews() {
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;
});
if (GetGPUBackend() == GPUBackend::VULKAN || GetGPUBackend() == GPUBackend::OPENGL) {
static const char *bufferOptions[] = { "No buffer", "Up to 1", "Up to 2" };