Skip to content
Permalink
Browse files

cps3.cpp: tweak screen rates as per new measurements (nw)

  • Loading branch information...
p1pkin committed Sep 8, 2019
1 parent 9dfb61f commit a2f4131c8907b6b164b65239f92d5e4538fcc44d
Showing with 5 additions and 8 deletions.
  1. +5 −8 src/mame/drivers/cps3.cpp
@@ -2493,18 +2493,15 @@ void cps3_state::cps3(machine_config &config)

/* video hardware */
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
screen.set_raw(XTAL(60'000'000)/8, 486, 0, 384, 259, 0, 224);
screen.set_raw(XTAL(42'954'545)/5, (454+1)*6/5, 0, 384, 262+1, 0, 224); // H Total counter uses XTAL/6 clock
screen.set_screen_update(FUNC(cps3_state::screen_update));
screen.screen_vblank().set(FUNC(cps3_state::vbl_interrupt));
/*
Measured clocks:
V = 59.5992Hz
H = 15.4335kHz
H/V = 258.955 ~ 259 lines
Possible video clocks:
60MHz / 15.4335kHz = 3887.647 / 8 = 485.956 ~ 486 -> likely
42.9545MHz / 15.4445kHz = 2781.217 / 6 = 463.536 -> unlikely
Video DAC = 8.602MHz (384 wide mode) ~ 42.9545MHz / 5
H = 15.73315kHz
V = 59.8Hz
H/V ~ 263 lines
*/

TIMER(config, m_dma_timer).configure_generic(FUNC(cps3_state::dma_interrupt));

0 comments on commit a2f4131

Please sign in to comment.
You can’t perform that action at this time.