From c81559222966538e0dde0fd61dd6ddd1775c5af5 Mon Sep 17 00:00:00 2001 From: hap Date: Sat, 14 Feb 2015 18:55:06 +0100 Subject: higher resolution display decay base timer --- src/mess/drivers/cnsector.c | 6 +++--- src/mess/drivers/comp4.c | 6 +++--- src/mess/drivers/elecdet.c | 6 +++--- src/mess/drivers/splitsec.c | 6 +++--- src/mess/drivers/starwbc.c | 6 +++--- src/mess/drivers/stopthie.c | 6 +++--- src/mess/drivers/ticalc1x.c | 6 +++--- src/mess/drivers/tispeak.c | 6 +++--- src/mess/drivers/wildfire.c | 6 +++--- 9 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/mess/drivers/cnsector.c b/src/mess/drivers/cnsector.c index b654c8faf9a..9153b3a3718 100644 --- a/src/mess/drivers/cnsector.c +++ b/src/mess/drivers/cnsector.c @@ -63,8 +63,8 @@ public: // The device strobes the outputs very fast, it is unnoticeable to the user. // To prevent flickering here, we need to simulate a decay. -// decay time, in steps of 10ms -#define DISPLAY_DECAY_TIME 4 +// decay time, in steps of 1ms +#define DISPLAY_DECAY_TIME 40 void cnsector_state::display_update() { @@ -219,7 +219,7 @@ static MACHINE_CONFIG_START( cnsector, cnsector_state ) MCFG_TMS1XXX_WRITE_O_CB(WRITE16(cnsector_state, write_o)) MCFG_TMS1XXX_WRITE_R_CB(WRITE16(cnsector_state, write_r)) - MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", cnsector_state, display_decay_tick, attotime::from_msec(10)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", cnsector_state, display_decay_tick, attotime::from_msec(1)) MCFG_DEFAULT_LAYOUT(layout_cnsector) diff --git a/src/mess/drivers/comp4.c b/src/mess/drivers/comp4.c index 7dbcb970c1c..de9bbc53a6d 100644 --- a/src/mess/drivers/comp4.c +++ b/src/mess/drivers/comp4.c @@ -64,8 +64,8 @@ public: // The device strobes the outputs very fast, it is unnoticeable to the user. // To prevent flickering here, we need to simulate a decay. -// decay time, in steps of 10ms -#define DISPLAY_DECAY_TIME 2 +// decay time, in steps of 1ms +#define DISPLAY_DECAY_TIME 25 void comp4_state::display_update() { @@ -190,7 +190,7 @@ static MACHINE_CONFIG_START( comp4, comp4_state ) MCFG_TMS1XXX_WRITE_O_CB(WRITE16(comp4_state, write_o)) MCFG_TMS1XXX_WRITE_R_CB(WRITE16(comp4_state, write_r)) - MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", comp4_state, display_decay_tick, attotime::from_msec(10)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", comp4_state, display_decay_tick, attotime::from_msec(1)) MCFG_DEFAULT_LAYOUT(layout_comp4) diff --git a/src/mess/drivers/elecdet.c b/src/mess/drivers/elecdet.c index e6af633cccf..aab66ebc80e 100644 --- a/src/mess/drivers/elecdet.c +++ b/src/mess/drivers/elecdet.c @@ -73,8 +73,8 @@ public: // The device strobes the outputs very fast, it is unnoticeable to the user. // To prevent flickering here, we need to simulate a decay. -// decay time, in steps of 10ms -#define DISPLAY_DECAY_TIME 4 +// decay time, in steps of 1ms +#define DISPLAY_DECAY_TIME 40 void elecdet_state::display_update() { @@ -275,7 +275,7 @@ static MACHINE_CONFIG_START( elecdet, elecdet_state ) MCFG_TMS1XXX_WRITE_R_CB(WRITE16(elecdet_state, write_r)) MCFG_TMS1XXX_POWER_OFF_CB(WRITELINE(elecdet_state, auto_power_off)) - MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", elecdet_state, display_decay_tick, attotime::from_msec(10)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", elecdet_state, display_decay_tick, attotime::from_msec(1)) MCFG_DEFAULT_LAYOUT(layout_elecdet) diff --git a/src/mess/drivers/splitsec.c b/src/mess/drivers/splitsec.c index 3e7d8d69b4e..28f906dc41c 100644 --- a/src/mess/drivers/splitsec.c +++ b/src/mess/drivers/splitsec.c @@ -98,8 +98,8 @@ public: // The device strobes the outputs very fast, it is unnoticeable to the user. // To prevent flickering here, we need to simulate a decay. -// decay time, in steps of 10ms -#define DISPLAY_DECAY_TIME 4 +// decay time, in steps of 1ms +#define DISPLAY_DECAY_TIME 40 /* display layout, where number xy is lamp R(x),O(y) @@ -308,7 +308,7 @@ static MACHINE_CONFIG_START( splitsec, splitsec_state ) MCFG_TMS1XXX_WRITE_O_CB(WRITE16(splitsec_state, write_o)) MCFG_TMS1XXX_WRITE_R_CB(WRITE16(splitsec_state, splitsec_write_r)) - MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", splitsec_state, display_decay_tick, attotime::from_msec(10)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", splitsec_state, display_decay_tick, attotime::from_msec(1)) MCFG_DEFAULT_LAYOUT(layout_splitsec) diff --git a/src/mess/drivers/starwbc.c b/src/mess/drivers/starwbc.c index 5f23f184dd6..2235a73f9b4 100644 --- a/src/mess/drivers/starwbc.c +++ b/src/mess/drivers/starwbc.c @@ -65,8 +65,8 @@ public: // The device strobes the outputs very fast, it is unnoticeable to the user. // To prevent flickering here, we need to simulate a decay. -// decay time, in steps of 10ms -#define DISPLAY_DECAY_TIME 4 +// decay time, in steps of 1ms +#define DISPLAY_DECAY_TIME 40 void starwbc_state::display_update() { @@ -252,7 +252,7 @@ static MACHINE_CONFIG_START( starwbc, starwbc_state ) MCFG_TMS1XXX_WRITE_O_CB(WRITE16(starwbc_state, write_o)) MCFG_TMS1XXX_WRITE_R_CB(WRITE16(starwbc_state, write_r)) - MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", starwbc_state, display_decay_tick, attotime::from_msec(10)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", starwbc_state, display_decay_tick, attotime::from_msec(1)) MCFG_DEFAULT_LAYOUT(layout_starwbc) diff --git a/src/mess/drivers/stopthie.c b/src/mess/drivers/stopthie.c index c3472843324..f07dd1457f3 100644 --- a/src/mess/drivers/stopthie.c +++ b/src/mess/drivers/stopthie.c @@ -72,8 +72,8 @@ public: // The device strobes the outputs very fast, it is unnoticeable to the user. // To prevent flickering here, we need to simulate a decay. -// decay time, in steps of 10ms -#define DISPLAY_DECAY_TIME 4 +// decay time, in steps of 1ms +#define DISPLAY_DECAY_TIME 40 void stopthief_state::display_update() { @@ -260,7 +260,7 @@ static MACHINE_CONFIG_START( stopthief, stopthief_state ) MCFG_TMS1XXX_WRITE_R_CB(WRITE16(stopthief_state, write_r)) MCFG_TMS1XXX_POWER_OFF_CB(WRITELINE(stopthief_state, auto_power_off)) - MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", stopthief_state, display_decay_tick, attotime::from_msec(10)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", stopthief_state, display_decay_tick, attotime::from_msec(1)) MCFG_DEFAULT_LAYOUT(layout_stopthie) diff --git a/src/mess/drivers/ticalc1x.c b/src/mess/drivers/ticalc1x.c index 167db96ff4f..24bba4d7776 100644 --- a/src/mess/drivers/ticalc1x.c +++ b/src/mess/drivers/ticalc1x.c @@ -79,8 +79,8 @@ public: // Devices with TMS09x0 strobe the outputs very fast, it is unnoticeable to the user. // To prevent flickering here, we need to simulate a decay. -// decay time, in steps of 10ms -#define DISPLAY_DECAY_TIME 5 +// decay time, in steps of 1ms +#define DISPLAY_DECAY_TIME 50 void ticalc1x_state::display_update() { @@ -688,7 +688,7 @@ MACHINE_CONFIG_END static MACHINE_CONFIG_START( t9base, ticalc1x_state ) /* basic machine hardware */ - MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", ticalc1x_state, display_decay_tick, attotime::from_msec(10)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", ticalc1x_state, display_decay_tick, attotime::from_msec(1)) /* no video! */ diff --git a/src/mess/drivers/tispeak.c b/src/mess/drivers/tispeak.c index c6d376d1e1c..4c0550f952f 100644 --- a/src/mess/drivers/tispeak.c +++ b/src/mess/drivers/tispeak.c @@ -127,8 +127,8 @@ DRIVER_INIT_MEMBER(tispeak_state, lantutor) // The device strobes the filament-enable very fast, it is unnoticeable to the user. // To prevent flickering here, we need to simulate a decay. -// decay time, in steps of 10ms -#define DISPLAY_DECAY_TIME 4 +// decay time, in steps of 1ms +#define DISPLAY_DECAY_TIME 40 void tispeak_state::display_update() { @@ -482,7 +482,7 @@ static MACHINE_CONFIG_START( snmath, tispeak_state ) MCFG_TMS0270_WRITE_CTL_CB(DEVWRITE8("tms5100", tms5100_device, ctl_w)) MCFG_TMS0270_WRITE_PDC_CB(DEVWRITELINE("tms5100", tms5100_device, pdc_w)) - MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", tispeak_state, display_decay_tick, attotime::from_msec(10)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", tispeak_state, display_decay_tick, attotime::from_msec(1)) MCFG_DEFAULT_LAYOUT(layout_snspell) // max 9 digits /* no video! */ diff --git a/src/mess/drivers/wildfire.c b/src/mess/drivers/wildfire.c index 429f022d8af..853f464bded 100644 --- a/src/mess/drivers/wildfire.c +++ b/src/mess/drivers/wildfire.c @@ -72,8 +72,8 @@ public: // The device strobes the outputs very fast, it is unnoticeable to the user. // To prevent flickering here, we need to simulate a decay. -// decay time, in steps of 10ms -#define DISPLAY_DECAY_TIME 4 +// decay time, in steps of 1ms +#define DISPLAY_DECAY_TIME 40 inline bool wildfire_state::index_is_7segled(int index) { @@ -209,7 +209,7 @@ static MACHINE_CONFIG_START( wildfire, wildfire_state ) MCFG_AMI_S2000_WRITE_D_CB(WRITE8(wildfire_state, write_d)) MCFG_AMI_S2000_WRITE_A_CB(WRITE16(wildfire_state, write_a)) - MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", wildfire_state, display_decay_tick, attotime::from_msec(10)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", wildfire_state, display_decay_tick, attotime::from_msec(1)) MCFG_DEFAULT_LAYOUT(layout_wildfire) -- cgit v1.2.3