From e5f56fcd33da9531bff43ad50640ece008c9a168 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 29 Jun 2020 14:45:12 +1000 Subject: [PATCH] MDEC: Slightly reduce block timing Fixes FMVs in Disney's Treasure Planet. Probably needs sub-block timing emulated at some point. --- src/core/mdec.cpp | 2 +- src/core/mdec.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/mdec.cpp b/src/core/mdec.cpp index 259f195be..85a0773c3 100644 --- a/src/core/mdec.cpp +++ b/src/core/mdec.cpp @@ -389,7 +389,7 @@ bool MDEC::DecodeColoredMacroblock() yuv_to_rgb(8, 8, m_blocks[0], m_blocks[1], m_blocks[5]); m_total_blocks_decoded += 4; - ScheduleBlockCopyOut(TICKS_PER_BLOCK * 4); + ScheduleBlockCopyOut(TICKS_PER_BLOCK * 6); return true; } diff --git a/src/core/mdec.h b/src/core/mdec.h index ff204a6ab..bb25d06c3 100644 --- a/src/core/mdec.h +++ b/src/core/mdec.h @@ -34,7 +34,7 @@ private: static constexpr u32 DATA_IN_FIFO_SIZE = 1024; static constexpr u32 DATA_OUT_FIFO_SIZE = 768; static constexpr u32 NUM_BLOCKS = 6; - static constexpr TickCount TICKS_PER_BLOCK = 3072 / 4; + static constexpr TickCount TICKS_PER_BLOCK = 448; enum DataOutputDepth : u8 {