Skip to content

Commit

Permalink
GS/HW: Partial revert earlier FMV fix
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Nov 25, 2023
1 parent e843357 commit 31642ce
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions pcsx2/GS/Renderers/Common/GSRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -944,11 +944,6 @@ bool GSRenderer::IsIdleFrame() const
return (m_last_draw_n == s_n && m_last_transfer_n == s_transfer_n);
}

int GSRenderer::GetLastVSyncDraw() const
{
return m_last_draw_n;
}

bool GSRenderer::SaveSnapshotToMemory(u32 window_width, u32 window_height, bool apply_aspect, bool crop_borders,
u32* width, u32* height, std::vector<u32>* pixels)
{
Expand Down
1 change: 0 additions & 1 deletion pcsx2/GS/Renderers/Common/GSRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ class GSRenderer : public GSState
virtual GSTexture* LookupPaletteSource(u32 CBP, u32 CPSM, u32 CBW, GSVector2i& offset, float* scale, const GSVector2i& size);

bool IsIdleFrame() const;
int GetLastVSyncDraw() const;

bool SaveSnapshotToMemory(u32 window_width, u32 window_height, bool apply_aspect, bool crop_borders,
u32* width, u32* height, std::vector<u32>* pixels);
Expand Down
2 changes: 1 addition & 1 deletion pcsx2/GS/Renderers/HW/GSRendererHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void GSRendererHW::VSync(u32 field, bool registers_written, bool idle_frame)
{
// If it did draws very recently, we should keep the recent stuff in case it hasn't been preloaded/used yet.
// Rocky Legend does this with the main menu FMV's.
if (s_last_transfer_draw_n > (s_n - 5) && s_last_transfer_draw_n >= GetLastVSyncDraw())
if (s_last_transfer_draw_n > (s_n - 5))
{
for (auto iter = m_draw_transfers.rbegin(); iter != m_draw_transfers.rend(); iter++)
{
Expand Down

0 comments on commit 31642ce

Please sign in to comment.