MDEC: Slightly reduce block timing

Fixes FMVs in Disney's Treasure Planet.

Probably needs sub-block timing emulated at some point.
This commit is contained in:
Connor McLaughlin 2020-06-29 14:45:12 +10:00
parent 614ea632a5
commit e5f56fcd33
2 changed files with 2 additions and 2 deletions

View File

@ -389,7 +389,7 @@ bool MDEC::DecodeColoredMacroblock()
yuv_to_rgb(8, 8, m_blocks[0], m_blocks[1], m_blocks[5]); yuv_to_rgb(8, 8, m_blocks[0], m_blocks[1], m_blocks[5]);
m_total_blocks_decoded += 4; m_total_blocks_decoded += 4;
ScheduleBlockCopyOut(TICKS_PER_BLOCK * 4); ScheduleBlockCopyOut(TICKS_PER_BLOCK * 6);
return true; return true;
} }

View File

@ -34,7 +34,7 @@ private:
static constexpr u32 DATA_IN_FIFO_SIZE = 1024; static constexpr u32 DATA_IN_FIFO_SIZE = 1024;
static constexpr u32 DATA_OUT_FIFO_SIZE = 768; static constexpr u32 DATA_OUT_FIFO_SIZE = 768;
static constexpr u32 NUM_BLOCKS = 6; static constexpr u32 NUM_BLOCKS = 6;
static constexpr TickCount TICKS_PER_BLOCK = 3072 / 4; static constexpr TickCount TICKS_PER_BLOCK = 448;
enum DataOutputDepth : u8 enum DataOutputDepth : u8
{ {