MAMEWorld Central >> EmuChat
View all threads Index   Flat Mode Flat  

Snarf
MAME Fan
Reged: 09/25/17
Posts: 3
Send PM
Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required)
09/25/17 10:24 PM Attachment: cps1.zip 113 KB (1 downloads)


> Can some one plz explain me how to adjust the speed manually in the drivers for Time
> Crisis
> It runs all choppy , with the sliders it takes a long time too adjust them fully

I know this is an older topic but I wanted to provide what I did to fix the speed issue. I found what I believe is the correct speed or close to. I used to own the SF2HF Board and I ran several tests to get the timing down.

I edited the file cps1.cpp (within the folder src\mame\drivers) with the following changes below.

Find this Code:

static MACHINE_CONFIG_START( cps1_10MHz, cps_state )

/* basic machine hardware */
MCFG_CPU_ADD("maincpu", M68000, XTAL_10MHz ) /* verified on pcb */
MCFG_CPU_PROGRAM_MAP(main_map)
MCFG_CPU_VBLANK_INT_DRIVER("screen", cps_state, cps1_interrupt)

MCFG_CPU_ADD("audiocpu", Z80, XTAL_3_579545MHz) /* verified on pcb */
MCFG_CPU_PROGRAM_MAP(sub_map)

MCFG_MACHINE_START_OVERRIDE(cps_state,cps1)

/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(CPS_PIXEL_CLOCK, CPS_HTOTAL, CPS_HBEND, CPS_HBSTART, CPS_VTOTAL, CPS_VBEND, CPS_VBSTART)
MCFG_SCREEN_UPDATE_DRIVER(cps_state, screen_update_cps1)
MCFG_SCREEN_VBLANK_DRIVER(cps_state, screen_eof_cps1)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", "palette", cps1)
MCFG_PALETTE_ADD("palette", 0xc00)

MCFG_VIDEO_START_OVERRIDE(cps_state, cps1)

/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")

MCFG_GENERIC_LATCH_8_ADD("soundlatch")
MCFG_GENERIC_LATCH_8_ADD("soundlatch2")

MCFG_YM2151_ADD("2151", XTAL_3_579545MHz) /* verified on pcb */
MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
MCFG_SOUND_ROUTE(0, "mono", 0.35)
MCFG_SOUND_ROUTE(1, "mono", 0.35)

/* CPS PPU is fed by a 16mhz clock,pin 117 outputs a 4mhz clock which is divided by 4 using 2 74ls74 */
MCFG_OKIM6295_ADD("oki", XTAL_16MHz/4/4, OKIM6295_PIN7_HIGH) // pin 7 can be changed by the game code, see f006 on z80
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
MACHINE_CONFIG_END


Add the following Code After:

static MACHINE_CONFIG_START( cps1_8_2MHz, cps_state )

/* basic machine hardware */
MCFG_CPU_ADD("maincpu", M68000, XTAL_8_2MHz ) /* verified on pcb */
MCFG_CPU_PROGRAM_MAP(main_map)
MCFG_CPU_VBLANK_INT_DRIVER("screen", cps_state, cps1_interrupt)

MCFG_CPU_ADD("audiocpu", Z80, XTAL_3_579545MHz) /* verified on pcb */
MCFG_CPU_PROGRAM_MAP(sub_map)

MCFG_MACHINE_START_OVERRIDE(cps_state,cps1)

/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(CPS_PIXEL_CLOCK, CPS_HTOTAL, CPS_HBEND, CPS_HBSTART, CPS_VTOTAL, CPS_VBEND, CPS_VBSTART)
MCFG_SCREEN_UPDATE_DRIVER(cps_state, screen_update_cps1)
MCFG_SCREEN_VBLANK_DRIVER(cps_state, screen_eof_cps1)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", "palette", cps1)
MCFG_PALETTE_ADD("palette", 0xc00)

MCFG_VIDEO_START_OVERRIDE(cps_state, cps1)

/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")

MCFG_GENERIC_LATCH_8_ADD("soundlatch")
MCFG_GENERIC_LATCH_8_ADD("soundlatch2")

MCFG_YM2151_ADD("2151", XTAL_3_579545MHz) /* verified on pcb */
MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
MCFG_SOUND_ROUTE(0, "mono", 0.35)
MCFG_SOUND_ROUTE(1, "mono", 0.35)

/* CPS PPU is fed by a 16mhz clock,pin 117 outputs a 4mhz clock which is divided by 4 using 2 74ls74 */
MCFG_OKIM6295_ADD("oki", XTAL_16MHz/4/4, OKIM6295_PIN7_HIGH) // pin 7 can be changed by the game code, see f006 on z80
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
MACHINE_CONFIG_END


Find the Code:

GAME( 1992, sf2hf, 0, cps1_12MHz, sf2, cps_state, cps1, ROT0, "Capcom", "Street Fighter II': Hyper Fighting (World 921209)", MACHINE_SUPPORTS_SAVE ) // "ETC"
GAME( 1992, sf2hfu, sf2hf, cps1_12MHz, sf2, cps_state, cps1, ROT0, "Capcom", "Street Fighter II': Hyper Fighting (USA 921209)", MACHINE_SUPPORTS_SAVE )
GAME( 1992, sf2hfj, sf2hf, cps1_12MHz, sf2j, cps_state, cps1, ROT0, "Capcom", "Street Fighter II' Turbo: Hyper Fighting (Japan 921209)", MACHINE_SUPPORTS_SAVE )


Replace it with this Code:

GAME( 1992, sf2hf, 0, cps1_8_2MHz, sf2, cps_state, cps1, ROT0, "Capcom", "Street Fighter II': Hyper Fighting (World 921209)", MACHINE_SUPPORTS_SAVE ) // "ETC"
GAME( 1992, sf2hfu, sf2hf, cps1_8_2MHz, sf2, cps_state, cps1, ROT0, "Capcom", "Street Fighter II': Hyper Fighting (USA 921209)", MACHINE_SUPPORTS_SAVE )
GAME( 1992, sf2hfj, sf2hf, cps1_8_2MHz, sf2j, cps_state, cps1, ROT0, "Capcom", "Street Fighter II' Turbo: Hyper Fighting (Japan 921209)", MACHINE_SUPPORTS_SAVE )


This basically slows the clock down from 12Mhz to 8.2Mhz which seems much better in my opinion. I don't know if the cps1.cpp file ever changes but I have attached the modified one I used with all of the changes above. It's from the v0178 Mame Source.

Edited by Snarf (09/26/17 03:06 PM)







Entire thread
Subject Posted by Posted on
* Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) BlackGreen 01/02/14 02:23 AM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) Moksi  08/17/16 12:48 AM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) Snarf  09/25/17 10:24 PM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) Phil Bennett  09/26/17 08:31 PM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) SmitdoggAdministrator  09/26/17 01:03 AM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) Snarf  09/26/17 04:14 PM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) SmitdoggAdministrator  09/26/17 04:31 PM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) Snarf  09/26/17 07:49 PM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) SmitdoggAdministrator  09/26/17 08:09 PM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) BlackGreen  01/02/14 03:24 AM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) SmitdoggAdministrator  01/02/14 03:23 AM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) BlackGreen  01/02/14 03:26 AM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) SmitdoggAdministrator  01/02/14 03:35 AM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) BlackGreen  01/02/14 03:38 AM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) SmitdoggAdministrator  01/02/14 03:47 AM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) BlackGreen  01/02/14 04:36 AM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) Envisaged0ne  01/02/14 03:45 AM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) Anonymous  01/02/14 04:34 AM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) boodroe  03/20/14 07:22 PM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) Envisaged0ne  07/23/14 10:00 PM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) Sune  07/23/14 10:34 PM
. * Re: Street Fighter 2 Hyper Fighting: Too Fast? (Overclock required) Envisaged0ne  07/24/14 05:05 AM

Extra information Permissions
Moderator:  redk9258, URherenow, Tafoid 
2 registered and 26 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4186