diff options
author | 2019-03-07 09:11:48 -0500 | |
---|---|---|
committer | 2019-03-07 09:11:48 -0500 | |
commit | ed341b1c1bb90b5c945fd294ba6346f685373f67 (patch) | |
tree | 57dbef8743facf300875255bb904f7783905a942 | |
parent | 14bdb5e2933a80f9304e167d8a35502621b585bc (diff) | |
parent | 9a32c9c0f89dbc2f72dd0d0482c70825f3bfc541 (diff) |
Merge pull request #4729 from schnitzeltony/atari-pokey-performance-III
pokey_device::step_pot: remove operations with no effect
-rw-r--r-- | src/devices/sound/pokey.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/devices/sound/pokey.cpp b/src/devices/sound/pokey.cpp index 231dc01e8bf..5aa797bb543 100644 --- a/src/devices/sound/pokey.cpp +++ b/src/devices/sound/pokey.cpp @@ -538,11 +538,8 @@ void pokey_device::step_keyboard() void pokey_device::step_pot() { - if ((m_SKCTL & SK_RESET) == 0) - return; - - uint8_t upd = 0; m_pot_counter++; + uint8_t upd = 0; for (int pot = 0; pot < 8; pot++) { if ((m_POTx[pot]<m_pot_counter) || (m_pot_counter == 228)) @@ -551,7 +548,9 @@ void pokey_device::step_pot() /* latching is emulated in read */ } } - synchronize(SYNC_POT, upd); + // some pots latched? + if (upd != 0) + synchronize(SYNC_POT, upd); } /* |