Permalink
Browse files

Avoid multiple flips per frame, fixes immediate flip for God of War

  • Loading branch information...
hrydgard committed Dec 1, 2017
1 parent 4c72063 commit 54ff4c8822a0e310b6acd9a13a3ea06ede2785a9
Showing with 2 additions and 1 deletion.
  1. +2 −1 Core/HLE/sceDisplay.cpp
@@ -853,7 +853,8 @@ void __DisplaySetFramebuf(u32 topaddr, int linesize, int pixelFormat, int sync)
framebuf = fbstate;
gpu->SetDisplayFramebuffer(framebuf.topaddr, framebuf.stride, framebuf.fmt);
// IMMEDIATE means that the buffer is fine. We can just flip immediately.
__DisplayFlip(0);
if (!flippedThisFrame)
__DisplayFlip(0);
} else {
// Delay the write until vblank
latchedFramebuf = fbstate;

0 comments on commit 54ff4c8

Please sign in to comment.