summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Present.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2023-02-03 15:51:50 +1300
committerScott Mansell <phiren@gmail.com>2023-02-09 18:36:20 +1300
commit83b7b01265598067494eca228175e5b5805e36a2 (patch)
treebe1994998236311eb474f205ea863e791fe99124 /Source/Core/VideoCommon/Present.cpp
parentd3ddd96cee9e8e14fd000bc489cfa84abed1d5a2 (diff)
Fix XFB duplicate detection
Frame duplicate detection was inverted. Huge problem for 60fps games where it would see all frames as "duplicates" and nothing would ever be presented.
Diffstat (limited to 'Source/Core/VideoCommon/Present.cpp')
-rw-r--r--Source/Core/VideoCommon/Present.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Present.cpp b/Source/Core/VideoCommon/Present.cpp
index 0e7f6b96d9..1f3b8b8ad8 100644
--- a/Source/Core/VideoCommon/Present.cpp
+++ b/Source/Core/VideoCommon/Present.cpp
@@ -80,7 +80,7 @@ bool Presenter::FetchXFB(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_heigh
m_last_xfb_height = fb_height;
m_last_xfb_id = m_xfb_entry->id;
- return is_duplicate;
+ return !is_duplicate;
}
void Presenter::ViSwap(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height, u64 ticks)