Previous 199869 Revisions Next

r20620 Thursday 31st January, 2013 at 00:31:09 UTC by Jonathan Gevaryahu
declared the ioport_port* col_array[16] as static, prevents the thing from being recreated from scratch every time the keyboard is read; this fix allows performance to go from 570% to 660% (no whatsnew)
[src/mess/drivers]vk100.c

trunk/src/mess/drivers/vk100.c
r20619r20620
637637   UINT8 code;
638638   char kbdcol[8];
639639   sprintf(kbdcol,"COL%X", (offset&0xF));
640   ioport_port* col_array[16] = { m_col0, m_col1, m_col2, m_col3, m_col4, m_col5, m_col6, m_col7,
640   static ioport_port* col_array[16] = { m_col0, m_col1, m_col2, m_col3, m_col4, m_col5, m_col6, m_col7,
641641                  m_col8, m_col9, m_cola, m_colb, m_colc, m_cold, m_cole, m_colf };
642642   code = col_array[offset&0xF]->read() | m_capsshift->read();
643643#ifdef KBD_VERBOSE

Previous 199869 Revisions Next


© 1997-2024 The MAME Team