Skip to content

Commit

Permalink
Fix XFB duplicate detection
Browse files Browse the repository at this point in the history
Frame duplicate detection was inverted. Huge problem for 60fps games
where it would see all frames as "duplicates" and nothing would ever be
presented.
  • Loading branch information
phire committed Feb 3, 2023
1 parent 3eb3820 commit a41b47b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/Present.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a41b47b

Please sign in to comment.