From 44f91511eefa3321e4a6c9af7da23bcf5440c73b Mon Sep 17 00:00:00 2001 From: hap Date: Sun, 19 Jan 2025 15:25:18 +0100 Subject: dec8: increase quantum for games with mcu, bang: tweak gun sensitivity --- src/mame/dataeast/dec8.cpp | 14 +++++++------- src/mame/gaelco/gaelco2.cpp | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/mame/dataeast/dec8.cpp b/src/mame/dataeast/dec8.cpp index 7c383f1804a..34761e79ee5 100644 --- a/src/mame/dataeast/dec8.cpp +++ b/src/mame/dataeast/dec8.cpp @@ -1980,7 +1980,7 @@ void lastmisn_state::lastmisn(machine_config &config) m_mcu->port_out_cb<2>().set(FUNC(lastmisn_state::mcu_to_main_w)); m_mcu->port_in_cb<3>().set_ioport("COIN"); - config.set_maximum_quantum(attotime::from_hz(12000)); + config.set_perfect_quantum(m_mcu); INPUT_MERGER_ANY_LOW(config, "coin").output_handler().set(FUNC(lastmisn_state::shackled_coin_irq)); @@ -2097,7 +2097,7 @@ void gondo_state::gondo(machine_config &config) m_mcu->port_out_cb<2>().set(FUNC(gondo_state::mcu_to_main_w)); m_mcu->port_in_cb<3>().set_ioport("COIN"); - config.set_maximum_quantum(attotime::from_hz(6000)); + config.set_perfect_quantum(m_mcu); // video hardware BUFFERED_SPRITERAM8(config, m_spriteram); @@ -2155,7 +2155,7 @@ void ghostb_state::garyoret(machine_config &config) m_mcu->port_out_cb<2>().set(FUNC(ghostb_state::mcu_to_main_w)); m_mcu->port_in_cb<3>().set_ioport("COIN"); - config.set_maximum_quantum(attotime::from_hz(6000)); + config.set_perfect_quantum(m_mcu); // video hardware BUFFERED_SPRITERAM8(config, m_spriteram); @@ -2214,7 +2214,7 @@ void ghostb_state::ghostb(machine_config &config) m_mcu->port_out_cb<2>().set(FUNC(ghostb_state::mcu_to_main_w)); m_mcu->port_in_cb<3>().set_ioport("COIN"); - config.set_maximum_quantum(attotime::from_hz(6000)); + config.set_perfect_quantum(m_mcu); // video hardware BUFFERED_SPRITERAM8(config, m_spriteram); @@ -2280,7 +2280,7 @@ void csilver_state::csilver(machine_config &config) R65C02(config, m_audiocpu, 12_MHz_XTAL / 8); // verified on pcb m_audiocpu->set_addrmap(AS_PROGRAM, &csilver_state::sound_map); // NMIs are caused by the main CPU - config.set_maximum_quantum(attotime::from_hz(6000)); + config.set_perfect_quantum(m_mcu); I8751(config, m_mcu, 8_MHz_XTAL); m_mcu->port_in_cb<0>().set(FUNC(csilver_state::i8751_port0_r)); @@ -2290,7 +2290,7 @@ void csilver_state::csilver(machine_config &config) m_mcu->port_out_cb<2>().set(FUNC(csilver_state::mcu_to_main_w)); m_mcu->port_in_cb<3>().set_ioport("COIN"); - config.set_perfect_quantum(m_maincpu); + config.set_perfect_quantum(m_mcu); // video hardware BUFFERED_SPRITERAM8(config, m_spriteram); @@ -2410,7 +2410,7 @@ void srdarwin_state::srdarwin(machine_config &config) m_mcu->port_out_cb<2>().set(FUNC(srdarwin_state::mcu_to_main_w)); m_mcu->port_in_cb<3>().set_ioport("COIN"); - config.set_perfect_quantum(m_maincpu); // needed for stability with emulated MCU or sometimes commands get missed and game crashes at bosses + config.set_perfect_quantum(m_mcu); // video hardware BUFFERED_SPRITERAM8(config, m_spriteram); diff --git a/src/mame/gaelco/gaelco2.cpp b/src/mame/gaelco/gaelco2.cpp index dd9bf961ced..d41b3af3166 100644 --- a/src/mame/gaelco/gaelco2.cpp +++ b/src/mame/gaelco/gaelco2.cpp @@ -1134,16 +1134,16 @@ static INPUT_PORTS_START( bang ) PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_CUSTOM ) // bit 7 is EEPROM ready PORT_START("LIGHT0_X") - PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(1) + PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(8) PORT_PLAYER(1) PORT_START("LIGHT1_X") - PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(2) + PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(8) PORT_PLAYER(2) PORT_START("LIGHT0_Y") - PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, -6.0 / 240, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(1) + PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, -6.0 / 240, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(8) PORT_PLAYER(1) PORT_START("LIGHT1_Y") - PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, -6.0 / 240, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(2) + PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, -6.0 / 240, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(8) PORT_PLAYER(2) INPUT_PORTS_END void bang_state::bang(machine_config &config) -- cgit v1.2.3