Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Problems with SwitchRes??  (Read 3418 times)

0 Members and 1 Guest are viewing this topic.

Chainsaw

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 15, 2022, 10:26:53 am
  • Pac-Men
    • Chainsaw Films
Problems with SwitchRes??
« on: December 16, 2014, 03:25:15 pm »
Hello. A while back I posted here relating to R-Type, and got some excellent support. I hope you can help me again  :cheers:

I've only been able to turn my cab on today; I've stripped it down and am now racing to get it ready for the family for Xmas. It's a Sega Naomi with a MS-2932 CRT, which is 640x480 31khz.

I'm running mame from the command line for tests, but ultimately I'm using HyperSpin so I've limited total modes in vmmaker to 95.

My issue seems to be that SwitchRes isn't using the correct resolution; or possibly the correct resolutions don't exist. I'm not sure. I'm probably doing something daft  :'(

In the next attachment I'll show the game logs (this first post will contain other info I think may be required) but basically, with the exception of R-Type, every game I tried tonight looked to be choosing the wrong resolution and / or frequency. At least that's what I think was happening.

As R-Type worked, I tried forcing the resolutions for these other games as well, but I had the same result.

Any advice is greatly appreciated. Thank you,

Matt

Chainsaw

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 15, 2022, 10:26:53 am
  • Pac-Men
    • Chainsaw Films
Re: Problems with SwitchRes??
« Reply #1 on: December 16, 2014, 03:26:53 pm »
There are the log files. Other than R-Type, which I'm including as an example, all these other games (these were the only ones I tried) seems to select an incorrect resolution and / or frequency.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1548
  • Last login:August 15, 2025, 11:36:59 am
  • retro maniac
Re: Problems with SwitchRes??
« Reply #2 on: December 16, 2014, 04:27:14 pm »
I'll suggest to stop listing resolution from XML and make custom ResList.txt file with only resolution that you need. IS this a tri sync monitor ? Are you rotating your monitor (in VMMmaker.ini looks like you not)?
« Last Edit: December 16, 2014, 04:33:53 pm by haynor666 »

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Problems with SwitchRes??
« Reply #3 on: December 16, 2014, 04:39:01 pm »
My issue seems to be that SwitchRes isn't using the correct resolution; or possibly the correct resolutions don't exist. I'm not sure. I'm probably doing something daft  :'(

Switchres is working fine as far as I see. The resolutions are the expected ones provided you're in a 31 kHz setup. The wrong refresh rates are from vertical games which use 512 lines (256 x 2, or 512). You simply can't get 512p@60 Hz at 31.5 kHz.

So either increase the horizontal frequency:

monitor custom
crt_range0 31400.00-31500.00,49.50-65.00,0.940,3.770,1.890,0.349,0.064,1.017,0,0,400,512,0,0

(The remarked value is the default for arcade_31. Raise that value at your own risk)

Or, tell Switchres not use 512p:

monitor custom
crt_range0 31400.00-31500.00,49.50-65.00,0.940,3.770,1.890,0.349,0.064,1.017,0,0,400,480,0,0

(if you put that in the vertical.ini file it will work and still don't affect Irem games, MK, etc.)


Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

Chainsaw

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 15, 2022, 10:26:53 am
  • Pac-Men
    • Chainsaw Films
Re: Problems with SwitchRes??
« Reply #4 on: December 16, 2014, 05:10:01 pm »
My issue seems to be that SwitchRes isn't using the correct resolution; or possibly the correct resolutions don't exist. I'm not sure. I'm probably doing something daft  :'(

Switchres is working fine as far as I see. The resolutions are the expected ones provided you're in a 31 kHz setup. The wrong refresh rates are from vertical games which use 512 lines (256 x 2, or 512). You simply can't get 512p@60 Hz at 31.5 kHz.

So either increase the horizontal frequency:

monitor custom
crt_range0 31400.00-31500.00,49.50-65.00,0.940,3.770,1.890,0.349,0.064,1.017,0,0,400,512,0,0

(The remarked value is the default for arcade_31. Raise that value at your own risk)

Or, tell Switchres not use 512p:

monitor custom
crt_range0 31400.00-31500.00,49.50-65.00,0.940,3.770,1.890,0.349,0.064,1.017,0,0,400,480,0,0

(if you put that in the vertical.ini file it will work and still don't affect Irem games, MK, etc.)

Thank you :) I'd not put 2 and 2 together and seen my issues were on vertical games. Sorry about that. This modeline subject is rather confusing to a layman.

May I ask, is this also why some of these games are running at lower Hz than they should? I think it is, but would like to check  :dizzy:

In reply to haynor666, I'm running entirely horizontal (CRT weighs a tonne, no way I can rotate it).

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Problems with SwitchRes??
« Reply #5 on: December 16, 2014, 05:27:32 pm »
May I ask, is this also why some of these games are running at lower Hz than they should? I think it is, but would like to check  :dizzy:

Yes, that's what I was trying to explain.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

Chainsaw

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 15, 2022, 10:26:53 am
  • Pac-Men
    • Chainsaw Films
Re: Problems with SwitchRes??
« Reply #6 on: December 17, 2014, 01:55:23 pm »
Thank you. I'm trying to wrap my ahead around all this. Being new to this all, it's very complicated. I have no idea where the KHz numbers are coming from, I'm from a PC background so I'm fine with Hz and resolutions, but in CRT land I can't see how relates to the other.

So I appreciate you patience  :cheers:

I ran some tests to day. I raised the upper value of the crt range from 31500 to 32800 - any higher and the signal failed. This gave me a few extra Hz, so on on of the 60hz games I was having issues with, I could run them at 58hz (with 512 vertical res).

Then as you suggested, I tried a vertical.ini file with a limit of 480 - instant success :) Not only are the games running at the correct speed, they look a whole lot better as well. Thank you :)

As my monitor can apparently hit 32800, is it worth keeping that number with a custom monitor setting, or should I remain at 31500?

Thanks again, I'm so happy things are looking better and running correctly.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Problems with SwitchRes??
« Reply #7 on: December 18, 2014, 10:38:10 am »
As my monitor can apparently hit 32800, is it worth keeping that number with a custom monitor setting, or should I remain at 31500?

I'd restore the old value, it'll be safer.

The maths involving modelines are very simple. When you want a rough estimation of the horizontal frequency required for a given mode, just do:

horizontal_freq_in_kHz = vertical_resolution x 1.10 x vertical_refresh_in_Hz / 1000

So, 512 x 1.10 x 60 / 1000 = 33.79 kHz, that is well beyond your monitor's specs.


In the R-Type case, because it's 55 Hz:

512 x 1.10 x 55 / 1000 = 30.97 kHz, that is fine.


The 1.10 factor is applied here to account for the 10% extra blanking lines required. Not very accurate but it's good for an estimation and easy to remember.
« Last Edit: December 18, 2014, 10:39:54 am by Calamity »
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

Chainsaw

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 15, 2022, 10:26:53 am
  • Pac-Men
    • Chainsaw Films
Re: Problems with SwitchRes??
« Reply #8 on: December 21, 2014, 01:57:59 pm »
That is great. Thank you for taking the time to explain this. I had no idea what the KHz value meant in relation to anything else, and now I can see where it comes from things are starting to click into place for me.

As always, you're a star Calamity. Thank you  :applaud:

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1548
  • Last login:August 15, 2025, 11:36:59 am
  • retro maniac
Re: Problems with SwitchRes??
« Reply #9 on: December 22, 2014, 07:08:35 am »
[mistake]
« Last Edit: December 22, 2014, 07:12:43 am by haynor666 »