trunk/src/mame/video/jaguar.c
| r21988 | r21989 | |
| 151 | 151 | #define LOG_UNHANDLED_BLITS 0 |
| 152 | 152 | |
| 153 | 153 | |
| 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). |
| 158 | | const int PIT_MULT_DBG_HACK = 64; |
| 159 | 154 | |
| 160 | 155 | |
| 161 | 156 | // interrupts to main CPU: |
| r21988 | r21989 | |
| 615 | 610 | break; |
| 616 | 611 | case PIT0: |
| 617 | 612 | 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]) |
| 619 | 614 | { |
| 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); |
| 621 | 616 | timer_set(sample_period, TID_PIT); |
| 622 | 617 | } |
| 623 | 618 | break; |
| r21988 | r21989 | |
| 730 | 725 | } |
| 731 | 726 | if (m_gpu_regs[PIT0] != 0) |
| 732 | 727 | { |
| 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); |
| 734 | 729 | timer_set(sample_period, TID_PIT); |
| 735 | 730 | } |
| 736 | 731 | break; |