Previous 199869 Revisions Next

r21989 Wednesday 20th March, 2013 at 19:36:21 UTC by Angelo Salese
Jaguar: makes more sense that the PIT timers follows the m68k clock, fixes Raiden BGM tempo
[src/mame/video]jaguar.c

trunk/src/mame/video/jaguar.c
r21988r21989
151151#define LOG_UNHANDLED_BLITS 0
152152
153153
154// FIXME: this should be 1, but then MAME performance will be s*** with this
155//    (i.e. it drops the performance from 400% to 6% on an i5 machine).
156// But the PIT irq is definitely needed by some games (for example Pitfall refuses
157//    to enter into gameplay without this enabled).
158const int PIT_MULT_DBG_HACK = 64;
159154
160155
161156// interrupts to main CPU:
r21988r21989
615610            break;
616611         case PIT0:
617612         case PIT1:
618            if (m_gpu_regs[PIT0] && m_gpu_regs[PIT0] != 0xffff) //FIXME: avoid too much small timers for now
613            if (m_gpu_regs[PIT0])
619614            {
620               sample_period = attotime::from_ticks((1+m_gpu_regs[PIT0]) * (1+m_gpu_regs[PIT1]), JAGUAR_CLOCK);
615               sample_period = attotime::from_ticks((1+m_gpu_regs[PIT0]) * (1+m_gpu_regs[PIT1]), JAGUAR_CLOCK/2);
621616               timer_set(sample_period, TID_PIT);
622617            }
623618            break;
r21988r21989
730725         }
731726         if (m_gpu_regs[PIT0] != 0)
732727         {
733            attotime sample_period = attotime::from_ticks((1+m_gpu_regs[PIT0]) * (1+m_gpu_regs[PIT1]), JAGUAR_CLOCK);
728            attotime sample_period = attotime::from_ticks((1+m_gpu_regs[PIT0]) * (1+m_gpu_regs[PIT1]), JAGUAR_CLOCK/2);
734729            timer_set(sample_period, TID_PIT);
735730         }
736731         break;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team