MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Elapido
Lurker
Reged: 04/10/04
Posts: 225
Send PM


5? to 60hz source modification in 0.146
#295384 - 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.



Malmanian
Reged: 07/30/06
Posts: 80
Loc: スウェーデン
Send PM


Re: 5? to 60hz source modification in 0.146 new [Re: Elapido]
#295426 - 09/09/12 11:40 PM


Greetings Elapido!

I personally do not recommend using this method anymore since it forces games with lower refresh rates like 30Hz to run at 60Hz and it also causes errors/crashes in some games and even prevents some drivers from loading. At least in the previous SmoothMame method you could specify the source code to only affect games with higher refresh rate than 50 to run at 60Hz and ignore the others.

I have not been able to force the MK games and the midtunit.c driver to run at 60Hz and I’ve been giving up on that.

PS. If you are editing screen.c, I think you should also modify screen.h as shown below, that might help to force more games to run at 60Hz. I have not used this method since v0.143 and I’m not sure if it works with the current MAME version. Cheers
---

in src/emu/screen.h:

change:

screen_device::static_set_refresh(*device, HZ_TO_ATTOSECONDS(_rate)); \

to:

screen_device::static_set_refresh(*device, HZ_TO_ATTOSECONDS(60)); \



----
“Anyone who has never made a mistake has never tried anything new.” --Albert Einstein



grog
Reged: 09/06/11
Posts: 419
Send PM


Re: 5? to 60hz source modification in 0.146 new [Re: Elapido]
#295429 - 09/10/12 12:08 AM


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

try mameuifx which allows you to run all games at 60hz if you wish:

http://www.phpbbserver.com/mameuifx/viewtopic.php?mforum=mameuifx&t=401&start=59

(note: if you are unsure how i will help)

EDIT: actually, you would also need to set your monitor/display to 60hz. unsure if u wanted to do that?



edcosta
15khz user
Reged: 05/25/07
Posts: 178
Send PM


Re: 5? to 60hz source modification in 0.146 new [Re: Elapido]
#295438 - 09/10/12 02:01 AM




> In screen.c change
>
> screen.m_refresh = HZ_TO_ATTOSECONDS(pixclock) * htotal * vtotal;
>
> with
>
> screen.m_refresh = HZ_TO_ATTOSECONDS(60);


this method i use to modify Double Dragon 1&2 refresh rate to 60...



Elapido
Lurker
Reged: 04/10/04
Posts: 225
Send PM


Re: 5? to 60hz source modification in 0.146 new [Re: Malmanian]
#295461 - 09/10/12 12:57 PM


Thanx everyone. I'll try tonight. I've been compiling my MAME with all 5? hz games forced to 60hz for years now. I simply cannot stand hiccups in scrolls due to frequencies mismatches. My graphic modes (ArcadeVGA) are all set to 60hz, and I don't mind if some games are a bit accelerated. I just need a quick way to run them all at 60hz to have always perfect smoothness. If you know any way to achieve this in modern MAME builds, please let me know. It's a long time since I last compiled and I don't know what changes have been made to the emulator.



asasega
MAME Fan
Reged: 02/08/09
Posts: 56
Send PM


Re: 5? to 60hz source modification in 0.146 new [Re: Elapido]
#295472 - 09/10/12 03:18 PM


i use mame from mamdev.org
mame.exe game -nothrottle -syncrefresh
this will give you perfect smooth scrooling in all games no matter the refresh rate of the game
off course there will be sound hickups and lower rate games will run a little bit accelerated, but you will have perfect smooth scrolling
P.S. do not use -mt (multithreading)option, off course your screen set at 60Hz



grog
Reged: 09/06/11
Posts: 419
Send PM


Re: 5? to 60hz source modification in 0.146 new [Re: asasega]
#295483 - 09/10/12 07:53 PM


> off course there will be sound hickups...

using mameuifx fixes this problem.


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
1 registered and 297 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