Main > Monitor/Video Forum
Idea: customized videocard BIOS
desmatic:
--- Quote from: wpcmame on March 10, 2005, 11:16:36 am ---
--- Quote from: desmatic on March 10, 2005, 08:31:02 am ---This means that you can't use it for xmame or the official mame, as neither support integer stretch, which you will need to work around pclock mins lower than 12mHz on Arcade Monitors.
--- End quote ---
Don't know about xmame but official mame supports integer stretch. It is called cleanstreatch.
-cleanstretch [option] / -cs [option]
Stretch the image to integer ratios only. This may leave a black border
around the image in fullscreen mode. The options are:
none disable. This will cause artifacts when using
scanlines.
auto let the blitter decide. The d3d module will select
the best option.
full always stretch to integer ratios both horizontally
and vertically.
horizontal always stretch to integer ratios horizontally.
vertical always stretch to integer ratios vertically.
The default is AUTO (-cleanstretch auto). This option requires -ddraw
or -direct3d.
--- End quote ---
I remember reading about it some time ago but never got a round to testing it (I don't have Windows installed on anything anymore). But do you know if the official version fully support integers stretch, like 3:1 or 3:2 or other such goofy combinations. I wasn't sure if it only supported scaled stretching like 2:2 or 3:3, etc.
wpcmame:
--- Quote from: desmatic on March 10, 2005, 12:12:16 pm ---But do you know if the official version fully support integers stretch, like 3:1 or 3:2 or other such goofy combinations.
--- End quote ---
desmatic:
--- Quote from: wpcmame on March 10, 2005, 01:12:15 pm ---
--- Quote from: desmatic on March 10, 2005, 12:12:16 pm ---But do you know if the official version fully support integers stretch, like 3:1 or 3:2 or other such goofy combinations. I wasn't sure if it only supported scaled stretching like 2:2 or 3:3, etc.
--- End quote ---
Stretching in official mame is tricky.
cleanstretch can stretch 2:3 etc but the result depends on other settings. If you use hardwarestretch the image will probably be antialiased.
For scaling there is a direct3d option "zoom" which if I understand correctly can use hardware but doesn't alter the image in any way.
So optimal settings should be:
For 2:2 etc -hardwarestretch -direct3d -zoom 2
For 2:1 etc -nohwardwarestretch -cleanstretch full
(or just use -nohardwarestretch -cleanstretch full for all games)
--- End quote ---
Wow, that's great stuff. I imagine the performance hit for integer stretching would hardly be measurable, so no great loss. If the stretching is being done by MAME's core and not through directx, then it should also work in XMAME. I look into it tonight.
If anyone knows the Windows registry location for either Nvidia cards or Radeon cards, I might be inspired to contrive a registry output / format for Windows users. The MAME faq link for modelines doesn't take me anywhere useful, so far as I can see. And google doesn't seem to be offering up any hints either.
Update: I can't find any feature that enables automatic integer stretching for XMAME, however, you can easily stretch images using -hs -ws.
desmatic:
--- Quote from: Silver on March 10, 2005, 11:55:37 am ---Thats interesting.... I'm currently running windows on ati's radeon drivers, and I have an interesting presentation monitor (NEC xm29+) that supposedly supports 15Khz-60Khz (or at least up to 1024x768@60Hz).
I say supposedly as I need to test that it does not really mean 15Khz,31-60Khz as another pres monitor I had di just that (it internally line-doubled 15Khz inputs to 31Khz.)
I've been told thats its true multisync over the whole range though, which in theory makes it like a D9200, I think. If so I'd like to use it (obviously!) to run all games at native resolutions and still have a nice windows display.
I'm guessing I'll need to play with powerstrip, but if anyone knows a handy way to get a radeon to fire 15/25Khz signals to test let me know.
--- End quote ---
I don't know how to use powerstrip, however, the task is easy enough in advancemame. As far as your monitor is concerned, if it's a true multisync you don't want to use more than one modeline format. The d9200 is more like a multiple fixed frequency monitor than a multisync monitor and benefits from using more than one modeline format.
Silver:
Thanks for the feedback. I am slightly confused when you say only use 1 modeline format. I thought the main advantage of Advancemame is that it will generate custom modelines for each game for perfect emulation....
And if my monitor is multi-sync, then - like a d9200 - I would want to use the full range (15/25/31).
Or when you say format do you mean that d9200 behaves differently switching from 15 to 25 than a true multisync would?