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: Mame and resolution switching... what am I doing wrong?  (Read 2962 times)

0 Members and 1 Guest are viewing this topic.

Rattanee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 28
  • Last login:July 26, 2012, 04:39:52 pm
Mame and resolution switching... what am I doing wrong?
« on: June 27, 2012, 04:56:31 pm »
I've set up my mame cab a while ago, installed soft15khz and with a fixed resolution everything was working just peachy.
I just got this urge to try and set mame up to use all the native resolutions of the games, but I keep getting rather unacceptable results.

First of all, the only video mode where performance is acceptable is gdi. Ddraw makes the sound stutter, d3d has graphic artefacts all over the place. I'm not sure what's up with that.

Anyways, I read up on all the switches in the mame ini, and set everything up. Game performance is pretty good, I have no tearing, but there is something definitely wrong with the scaling. I have scaling turned off, sticking with the aspect ratios, and what happens is when I start a game, the game info window appears, and that looks pretty much great, but as the actual game starts up, it's like the game is squashed. The width doesn't fill the screen, and when moving up or down, I've a sneaking suspicion that some lines are missing from the image aswell. I don't quite know how to describe it better, it's as if the entire game was not up-scaled to a larger resolution, but downscaled to smaller then the actual resolution being displayed by the hardware.

Anyone have any idea how to fix this? (I'll try and add a pic or two in a bit.)

Rattanee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 28
  • Last login:July 26, 2012, 04:39:52 pm
Re: Mame and resolution switching... what am I doing wrong?
« Reply #1 on: June 27, 2012, 05:02:15 pm »
Here are the pics so you guys know what I'm talking about.

(Yes the game is deliberately sideways, my monitor is rotatable, also horizontal games do the exact same thing.)
« Last Edit: June 27, 2012, 05:04:05 pm by Rattanee »

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame and resolution switching... what am I doing wrong?
« Reply #2 on: June 28, 2012, 03:40:30 am »
Alot depends on your graphics card and drivers. For using DirectDraw you will likely need to install an older driver. Something else that might be worth checking out is GroovyMAME.

Calamity

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: Mame and resolution switching... what am I doing wrong?
« Reply #3 on: June 28, 2012, 04:16:07 am »
In order to prevent undesired stretching:

- If you're using ddraw: turn -hwstretch off
- If you're using d3d: make sure the resolution matches the one of the game *exactly*

As you see this makes d3d not very useful in most situations if you're trying to go pixel perfect.
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

Rattanee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 28
  • Last login:July 26, 2012, 04:39:52 pm
Re: Mame and resolution switching... what am I doing wrong?
« Reply #4 on: June 28, 2012, 06:19:57 am »
using the gdi setting as ddraw makes mame stutter on the sound, and d3d produces artifacts galore... basically even the mame frontend screen is a garbled unreadable mess...

Using Nvidia (older card, don't know the model off the top of my head) and soft 15khz.

Calamity

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: Mame and resolution switching... what am I doing wrong?
« Reply #5 on: June 28, 2012, 07:38:06 am »
gdi is actually not meant to be used at all with MAME, it's incredibly slow.

Either ddraw or d3d are the way to go.

ddraw is not the cause of your sound stuttering, it's the combination of video synchronization options and wrong refresh video modes what causes the stuttering.

You could give a try to GroovyMAME, even with a nvidia card it should allow fluent video and audio with ddraw and the video modes installed by Soft-15KHz.
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

Rattanee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 28
  • Last login:July 26, 2012, 04:39:52 pm
Re: Mame and resolution switching... what am I doing wrong?
« Reply #6 on: July 04, 2012, 08:11:03 am »
ddraw is not the cause of your sound stuttering, it's the combination of video synchronization options and wrong refresh video modes what causes the stuttering.

You mean vsync and other options?

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Mame and resolution switching... what am I doing wrong?
« Reply #7 on: July 09, 2012, 08:20:08 pm »
You can try GroovyMAME. You can cut your teeth on AdvanceMAME. Or you you can do a lot of reading - in the wiki and elsewhere. Probly should do this anyways.
-Banned-