Fix the logic around postEffectRequiresFlip so duplicateFrames doesn't require a post shader.
This commit is contained in:
parent
b2c66a304b
commit
788b8a29d6
1 changed files with 8 additions and 2 deletions
|
@ -755,8 +755,14 @@ void __DisplayFlip(int cyclesLate) {
|
||||||
const ShaderInfo *shaderInfo = g_Config.sPostShaderName == "Off" ? nullptr : GetPostShaderInfo(g_Config.sPostShaderName);
|
const ShaderInfo *shaderInfo = g_Config.sPostShaderName == "Off" ? nullptr : GetPostShaderInfo(g_Config.sPostShaderName);
|
||||||
bool postEffectRequiresFlip = false;
|
bool postEffectRequiresFlip = false;
|
||||||
// postEffectRequiresFlip is not compatible with frameskip unthrottling, see #12325.
|
// postEffectRequiresFlip is not compatible with frameskip unthrottling, see #12325.
|
||||||
if (shaderInfo && g_Config.iRenderingMode != FB_NON_BUFFERED_MODE)
|
if (g_Config.iRenderingMode != FB_NON_BUFFERED_MODE && !(g_Config.bFrameSkipUnthrottle && !FrameTimingThrottled())) {
|
||||||
postEffectRequiresFlip = (shaderInfo->requires60fps || g_Config.bRenderDuplicateFrames) && !(g_Config.bFrameSkipUnthrottle && !FrameTimingThrottled());
|
if (shaderInfo) {
|
||||||
|
postEffectRequiresFlip = (shaderInfo->requires60fps || g_Config.bRenderDuplicateFrames);
|
||||||
|
} else {
|
||||||
|
postEffectRequiresFlip = g_Config.bRenderDuplicateFrames;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const bool fbDirty = gpu->FramebufferDirty();
|
const bool fbDirty = gpu->FramebufferDirty();
|
||||||
|
|
||||||
if (fbDirty || noRecentFlip || postEffectRequiresFlip) {
|
if (fbDirty || noRecentFlip || postEffectRequiresFlip) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue