video/jaguar.c: More realistic blitter timing. (nw)

This commit is contained in:
Ville Linde 2013-02-11 20:34:25 +00:00
parent 8b69b8c178
commit 3c42dab691

View file

@ -551,7 +551,9 @@ WRITE32_MEMBER( jaguar_state::blitter_w )
if ((offset == B_CMD) && (mem_mask & 0x0000ffff)) if ((offset == B_CMD) && (mem_mask & 0x0000ffff))
{ {
m_blitter_status = 0; m_blitter_status = 0;
timer_set(attotime::from_usec(100), TID_BLITTER_DONE); int inner_count = m_blitter_regs[B_COUNT] & 0xffff;
int outer_count = m_blitter_regs[B_COUNT] >> 16;
timer_set(attotime::from_ticks(inner_count * outer_count, JAGUAR_CLOCK), TID_BLITTER_DONE);
blitter_run(); blitter_run();
} }