From 452c6e16d13102320fb13b21cf81ed4972aa324f Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 24 Mar 2020 00:21:42 +1000 Subject: [PATCH] GPU: Fix blitter ticks not being counted Fixes Monkey Hero, again... --- src/core/gpu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/gpu.cpp b/src/core/gpu.cpp index 344369299..355940c92 100644 --- a/src/core/gpu.cpp +++ b/src/core/gpu.cpp @@ -289,7 +289,8 @@ void GPU::DMAWrite(const u32* words, u32 word_count) if (m_state == State::WritingVRAM) { - m_blitter_ticks += word_count; + Assert(m_blitter_ticks == 0); + m_blitter_ticks = GetPendingGPUTicks() + word_count; UpdateDMARequest(); UpdateSliceTicks(); }