Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: ilGaspa on January 04, 2008, 03:18:41 am

Title: Mame horizontally stretch my games even with hardware stretching off O_O
Post by: ilGaspa on January 04, 2008, 03:18:41 am
Hello everyone,
I have some problems with my MAME cabinet configuration, and after a few weeks of work I've used up all my knowledge and I need help :) Basically what I'm trying to do is making every game run at it's native resolution, as suggested in various wikis as the best way to configure MAME to run on a cabinet... so I set:

Mode: DirectDraw (this is mandatory on a cabinet, otherwise the "look" of the game on the mame cabinet monitor will differ from the original machine one - in other words, can't use D3D)
Switch resolution: ON
Hardware Stretching: OFF
Each game set with the correct resolution manually
Mame version: 0.122
SO: Windows XP SP2

This way everything works correctly, but with some (mostly NeoGeo) games MAME insists applying some horizontal stretching (1.055 hstretch, I noticed this value in the MAME OSD accessed with the tilde key) even with  Hardware Stretching turned off: to be sure this wasn't my fault, I removed the MAME folder completely and reinstalled it, keeping only my roms, but things are the same as before. I tried everything, from changing view mode (pixel aspect, standard, cocktail) to the aspect ratio, to activate vsync and triple buffering... this stretching is here and remains here.

The reason I hate this thing is that, as I'm using really low (game's original) resolutions, the stretch factor causes vertical lines on screen when the game scrolls: howevers, as these lines aren't caused by vertical tearing, but by the fact that MAMES hstretch of 1.055 sometime causes a pixel to be doubled when scrolling, these can't be solved by vsync or triple buffering... only way is making MAME run this games with a 1.0 hstretch, and I don't know how to do so :( any kind of help is welcomed :)
Title: Re: Mame horizontally stretch my games even with hardware stretching off O_O
Post by: MazzMn on January 13, 2008, 01:02:24 am
I doubt this will help, but check the value for keepaspect 1. if keepaspect is turned off it will stretch games
Title: Re: Mame horizontally stretch my games even with hardware stretching off O_O
Post by: u_rebelscum on January 14, 2008, 04:20:45 pm
...This way everything works correctly, but with some (mostly NeoGeo) games MAME insists applying some horizontal stretching....

If it was only NeoGeo, this was fixed 0.122u4. 

FWIW, some NeoGeo game used all 320 pixels wide, while others were designed to show only 304.  Your problem was Mame was stretching all NeoGeo to 320 res.  Post 0.122u4, mame doesn't stretch, so either you have to stretch your monitor yourself, or let mame black bar the unused (or uncorrectly used) 16 pixels, or see the garbage in the extra 16 pixels.


If it included other games, what games were they?  Can't help you otherwise.