MAMEWorld >> EmuChat
Index   Flat Mode Flat  

Elapido
Lurker
Reged: 04/10/04
Posts: 225
Send PM
5? to 60hz source modification in 0.146
09/09/12 04:10 PM


Hi. With MAME 0.135 I could change all games to 60hz with these modifications:

-----

In src\emu\video.h change

MDRV_DEVICE_CONFIG_DATA64(screen_config, refresh, HZ_TO_ATTOSECONDS(_pixclock) * (_htotal) * (_vtotal)) \

with

MDRV_DEVICE_CONFIG_DATA64(screen_config, refresh, HZ_TO_ATTOSECONDS((((HZ_TO_ATTOSECONDS(_pixclock)) * (_htotal) * (_vtotal))>= 50) ? 60 : ((HZ_TO_ATTOSECONDS(_pixclock)) * (_htotal) * (_vtotal)))) \

and

MDRV_DEVICE_CONFIG_DATA64(screen_config, refresh, HZ_TO_ATTOSECONDS(_rate))

with

MDRV_DEVICE_CONFIG_DATA64(screen_config, refresh, HZ_TO_ATTOSECONDS(((_rate)>= 50) ? 60 : (_rate)))

-----

Now I've noticed that MAME 0.146's source is different. I've tried this change:

-----

In screen.c change

screen.m_refresh = HZ_TO_ATTOSECONDS(pixclock) * htotal * vtotal;

with

screen.m_refresh = HZ_TO_ATTOSECONDS(60);

-----

However, suprisingly this only affects some games, while others are still working at their original refresh rates. For instance, Hammering Harry goes to 60hz, but not Mortal Kombat or ESPRADE.

Can you help me modify the source correctly so as to have ALL games running at 60hz with MAME 0.146. Thankyou.







Entire thread
Subject Posted by Posted on
* 5? to 60hz source modification in 0.146 Elapido 09/09/12 04:10 PM
. * Re: 5? to 60hz source modification in 0.146 edcosta  09/10/12 02:01 AM
. * Re: 5? to 60hz source modification in 0.146 grog  09/10/12 12:08 AM
. * Re: 5? to 60hz source modification in 0.146 Malmanian  09/09/12 11:40 PM
. * Re: 5? to 60hz source modification in 0.146 Elapido  09/10/12 12:57 PM
. * Re: 5? to 60hz source modification in 0.146 asasega  09/10/12 03:18 PM
. * Re: 5? to 60hz source modification in 0.146 grog  09/10/12 07:53 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 334 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3688