mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Merge pull request #4729 from schnitzeltony/atari-pokey-performance-III
pokey_device::step_pot: remove operations with no effect
This commit is contained in:
commit
ed341b1c1b
@ -538,11 +538,8 @@ void pokey_device::step_keyboard()
|
|||||||
|
|
||||||
void pokey_device::step_pot()
|
void pokey_device::step_pot()
|
||||||
{
|
{
|
||||||
if ((m_SKCTL & SK_RESET) == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
uint8_t upd = 0;
|
|
||||||
m_pot_counter++;
|
m_pot_counter++;
|
||||||
|
uint8_t upd = 0;
|
||||||
for (int pot = 0; pot < 8; pot++)
|
for (int pot = 0; pot < 8; pot++)
|
||||||
{
|
{
|
||||||
if ((m_POTx[pot]<m_pot_counter) || (m_pot_counter == 228))
|
if ((m_POTx[pot]<m_pot_counter) || (m_pot_counter == 228))
|
||||||
@ -551,6 +548,8 @@ void pokey_device::step_pot()
|
|||||||
/* latching is emulated in read */
|
/* latching is emulated in read */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// some pots latched?
|
||||||
|
if (upd != 0)
|
||||||
synchronize(SYNC_POT, upd);
|
synchronize(SYNC_POT, upd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user