dassault: reduce quantum (still opcode-granularity)

This commit is contained in:
hap 2024-11-18 19:57:29 +01:00
parent 0242f135b4
commit 582b861f38

View File

@ -306,11 +306,8 @@ private:
Also, some priorities are still a little questionable. Also, some priorities are still a little questionable.
****************************************************************************/ ****************************************************************************/
/******************************************************************************/
void dassault_state::video_start() void dassault_state::video_start()
{ {
m_priority = 0; m_priority = 0;
@ -366,7 +363,8 @@ void dassault_state::mix_layer(bitmap_rgb32 &bitmap, bitmap_ind16 *sprite_bitmap
} }
} }
// are the priorities 100% correct? they're the same as they were before conversion to DECO52 sprite device, but if (for example) you walk to the side of the crates in the first part of the game you appear over them... // are the priorities 100% correct? they're the same as they were before conversion to DECO52 sprite device,
// but if (for example) you walk to the side of the crates in the first part of the game you appear over them...
uint32_t dassault_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) uint32_t dassault_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{ {
uint16_t const flip = m_deco_tilegen[0]->pf_control_r(0); uint16_t const flip = m_deco_tilegen[0]->pf_control_r(0);
@ -723,8 +721,6 @@ void dassault_state::sound_bankswitch_w(uint8_t data)
m_oki2->set_rom_bank(data & 1); m_oki2->set_rom_bank(data & 1);
} }
/**********************************************************************************/
DECO16IC_BANK_CB_MEMBER(dassault_state::bank_callback) DECO16IC_BANK_CB_MEMBER(dassault_state::bank_callback)
{ {
return ((bank >> 4) & 0xf) << 12; return ((bank >> 4) & 0xf) << 12;
@ -751,8 +747,7 @@ void dassault_state::dassault(machine_config &config)
m_audiocpu->add_route(ALL_OUTPUTS, "lspeaker", 0); // internal sound unused m_audiocpu->add_route(ALL_OUTPUTS, "lspeaker", 0); // internal sound unused
m_audiocpu->add_route(ALL_OUTPUTS, "rspeaker", 0); m_audiocpu->add_route(ALL_OUTPUTS, "rspeaker", 0);
// config.set_maximum_quantum(attotime::from_hz(8400)); // 140 CPU slices per frame config.set_maximum_quantum(attotime::from_hz(m_maincpu->clock() / 4)); // I was seeing random lockups.. let's see if this helps
config.set_perfect_quantum(m_maincpu); // I was seeing random lockups.. let's see if this helps
mb8421_mb8431_16_device &sharedram(MB8421_MB8431_16BIT(config, "sharedram")); mb8421_mb8431_16_device &sharedram(MB8421_MB8431_16BIT(config, "sharedram"));
sharedram.intl_callback().set_inputline("maincpu", M68K_IRQ_5); sharedram.intl_callback().set_inputline("maincpu", M68K_IRQ_5);