GS: Move VSync flush to caller

This commit is contained in:
Stenzek 2023-07-04 18:28:20 +10:00 committed by Connor McLaughlin
parent 02133a0290
commit d5c6c318ba
2 changed files with 3 additions and 2 deletions

View File

@ -389,6 +389,9 @@ void GSgifTransfer3(u8* mem, u32 size)
void GSvsync(u32 field, bool registers_written)
{
// Do not move the flush into the VSync() method. It's here because EE transfers
// get cleared in HW VSync, and may be needed for a buffered draw (FFX FMVs).
g_gs_renderer->Flush(GSState::VSYNC);
g_gs_renderer->VSync(field, registers_written, g_gs_renderer->IsIdleFrame());
}

View File

@ -536,8 +536,6 @@ void GSRenderer::EndPresentFrame()
void GSRenderer::VSync(u32 field, bool registers_written, bool idle_frame)
{
Flush(GSFlushReason::VSYNC);
if (GSConfig.DumpGSData && s_n >= GSConfig.SaveN)
{
m_regs->Dump(GetDrawDumpPath("vsync_%05d_f%lld_gs_reg.txt", s_n, g_perfmon.GetFrame()));