mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Avoid multiple flips per frame, fixes immediate flip for God of War
This commit is contained in:
parent
4c720631c1
commit
54ff4c8822
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue