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 --- Bug Reports --- Site News

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

  

Author Topic: Wavey Lines on the edges of the screen/d3d9ex not working  (Read 957 times)

0 Members and 1 Guest are viewing this topic.

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Wavey Lines on the edges of the screen/d3d9ex not working
« on: February 07, 2019, 10:20:56 am »
Hey Guys!

I've just installed GroovyMAME 0.206 - Switchres v0.017n and CRT Emudriver. Everythings works fine so far, super resolutions work, mame is switching automaticly, everything's great.. BUT.. big BUT:

A lot of resolutions look like this at the upper half of the screen :( (check the picture)

How can I fix that? Can I even fix that?

I'm using an HD4350 graphics card, Windows 10. an UMSA VGA to Scart Converter and my TV is a Bang & Olufsen MX7000.

I followed this tutorial step by step:

http://geedorah.com/eiusdemmodi/forum/viewtopic.php?pid=1016#p1016

I'm quite new to all this Switchres stuff, so I don't know what to do know :-\ Any help would be much appreciated! Please let me know if you need more information

also another problem:

This guide here:

http://geedorah.com/eiusdemmodi/forum/viewtopic.php?id=290

it says to set video in the mame.ini to d3d9ex. But when I do that and I start mame my screen just stays black. Am I doing something wrong?




« Last Edit: February 07, 2019, 12:58:19 pm by harry_sack »

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6620
  • Last login:Today at 11:15:44 am
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #1 on: February 07, 2019, 02:26:02 pm »
This issue might get corrected to some extent by increasing the size of the vertical back porch. Try doing it in Arcade OSD, and if it works, paste the resulting modeline/crt range here (use the "copy modeline to clipboard" option in Arcade OSD).
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 or pasting it.

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

Paradroid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 660
  • Last login:Yesterday at 08:55:43 pm
    • SCART Hunter
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #2 on: February 07, 2019, 02:43:44 pm »
This issue might get corrected to some extent by increasing the size of the vertical back porch.

I have seen this issue on every B&O TV that I have tried and Calamity's suggestion has been the only solution to the problem.

It's got to be some kind of design flaw in the chassis. Fortunately, we can work around it by shifting the image down (with the modeline) and then shifting it back up (with the TV controls).
My MAME/SCART/CRT blog: SCART Hunter

Arroyo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 603
  • Last login:Today at 01:26:17 pm
  • Budgets are boring
    • newforum.arcadecontrols.com/index.php/topic,156267.0.html
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #3 on: February 07, 2019, 06:48:40 pm »

it says to set video in the mame.ini to d3d9ex. But when I do that and I start mame my screen just stays black. Am I doing something wrong?

There’s a link within the same tutorial that talks about updates when using versions of Mame from 0.182 and beyond:

http://geedorah.com/eiusdemmodi/forum/viewtopic.php?pid=1235#p1235

Basically leave it as auto rather than putting d3d9ex.

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #4 on: February 08, 2019, 04:10:12 am »
thx guys. I'll try the suggestion with increasing the v back porch when I have the time for it and let you know about the results :)

BUT I have another questions.. do I have to adjust the backporch on all resolutions or just on one?
« Last Edit: February 08, 2019, 12:16:16 pm by harry_sack »

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #5 on: February 08, 2019, 12:34:51 pm »
ok so I edited the V backporch of the mode 256x240 and now its straighten out a little bit, but now the Picture is squeezed like a pillow :-\ Can I fix this PC wise or do I have to do this in the service menu of the TV? (I'd rather not mess with the service menu, because It's adjust quite good for my consoles)

here's the modeline for that mode:

Code: [Select]
modeline "256x240_60 16.43KHz 59.96Hz" 5.52 256 272 296 336 240 242 245 274 -hsync -vsync
crt_range 16418.57-16438.57, 50.00-60.00, 2.899, 4.348, 7.246, 0.122, 0.183, 1.765, 0, 0, 240, 295, 480, 590

another question: I have this issue with almost every resolution. do I have to adjust all the V backporches?

and: When I play games in mame, they're too far to the right and a little bit too much down. I know I can't fix that with ArcadeOSD because that doesn't affect mame games, but can I adjust that with some other way?

thx a lot for your help :)

Paradroid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 660
  • Last login:Yesterday at 08:55:43 pm
    • SCART Hunter
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #6 on: February 08, 2019, 01:24:09 pm »
Picture is squeezed like a pillow :-\ Can I fix this PC wise or do I have to do this in the service menu of the TV? (I'd rather not mess with the service menu, because It's adjust quite good for my consoles)
Very apt description: the parameter you're after in your service menu is 'pincushion'. :)

If it's out for GM its surely out for your consoles too (although you may not notice without a test grid showing).


Sent from my SM-G955F using Tapatalk

My MAME/SCART/CRT blog: SCART Hunter

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #7 on: February 09, 2019, 04:29:44 am »
hmm.. but I adjusted my image with the 240p test suite and it looks fine for consoles. it's the first time i see that the picture looks like a cushion.. weird. maybe I will just get a second CRT just for the PC :D

edit: I went into the service menu and kinda fixed it. the image is way better now and the lines straigten out. But like I said: this kinda messed up my console image :-\ Seems like I really need a second CRT :D

So how about the modeline I posted?
« Last Edit: February 09, 2019, 04:54:37 am by harry_sack »

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6620
  • Last login:Today at 11:15:44 am
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #8 on: February 09, 2019, 04:46:06 am »
hmm.. but I adjusted my image with the 240p test suite and it looks fine for consoles. it's the first time i see that the picture looks like a cushion.. weird. maybe I will just get a second CRT just for the PC :D

So how about the modeline I posted?

You've pushed Hfreq to 16.4 kHz, that's too much for a simple 240p mode. This is because you added too many lines to the vertical back porch. Notice that you're missing a big chunk of the picture on the bottom of the screen.

Start again, and play with the vertical porches trying not to push Hfreq any higher than 15.8-15.9 KHz. Maybe you need to compensate both porches, e.g. by adding lines equally to both of them, but not many.

The reason why increasing Hfreq produces a narrow picture is that in order to get more lines in the screen (274 vs default 262), you need to draw them shorter. The time for those extra 12 lines is coming from the bits of length taken from the sides of the screen.
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 or pasting it.

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

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #9 on: February 09, 2019, 04:57:15 am »
ok, I'm getting a little bit confused here..

So just to be clear: I need to increase V front and back porch and hope I can straighten the lines out without getting over 15.9 khz? Then post the modeline again?

I'm sorry If I am asking stupid questions :) but I don't know anything about this :(

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6620
  • Last login:Today at 11:15:44 am
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #10 on: February 09, 2019, 05:20:31 am »
So just to be clear: I need to increase V front and back porch and hope I can straighten the lines out without getting over 15.9 khz? Then post the modeline again?

Yes, but notice that you only can add 3-4 extra lines counting with both porches, otherwise you'll push Hfreq too high. You need to test different configurations, and I can't guarantee that it works.
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 or pasting it.

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

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #11 on: February 09, 2019, 05:42:35 am »
Well thx do your help I kinda fixed it.. image is still far from perfect, but way better than before!

I only had to add 1 front and back porch

here's the new modeline (and a new picture of the image)

Code: [Select]
modeline "256x224_60 15.77KHz 59.98Hz" 5.30 256 272 296 336 224 235 238 263 -hsync -vsync
crt_range 15763.81-15783.81, 50.00-60.00, 3.019, 4.528, 7.547, 0.697, 0.190, 1.585, 0, 0, 224, 277, 448, 553

also what I mentioned earlier before: games in mame are a little to far to the right and a little to far down. I know that arcadeosd doesn't affect mame. Do I have to move the picture in my TV service menu or can I do that with a software/pc solution?

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6620
  • Last login:Today at 11:15:44 am
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #12 on: February 09, 2019, 05:59:05 am »
Why are you using 224p now? You should keep using 240p as reference, like before.
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 or pasting it.

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

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #13 on: February 09, 2019, 06:13:45 am »
well I thought it doesn't matter? sorry if I did something wrong :( but I've asked earlier if I need to do that with ALL resolutions or just one. nobody answered that so I assumed only one is enough. Because I have this issue with almost every resolution, also super resolutions.

here's the modeline for 320x240p then:

Code: [Select]
modeline "320x240_60 15.78KHz 59.99Hz" 6.69 320 336 368 424 240 243 246 263 -hsync -vsync
crt_range 15768.30-15788.30, 50.00-60.00, 2.392, 4.783, 8.371, 0.190, 0.190, 1.077, 0, 0, 240, 293, 480, 586

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6620
  • Last login:Today at 11:15:44 am
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #14 on: February 09, 2019, 07:09:55 am »
Ok, perfect.

I tell you which mode to use for each adjustment for a good reason, sorry it's a bit long to explain and the information won't help you at this point.

Now you need to shift the picture slightly to the left.

You do that by increasing the horizontal front porch, and decreasing the back porch by the same amount. But don't use 256x240 for this adjustment, you need a higher horizontal resolution for it to be accurate. Take the higher resolution you have available, e.g. 768x512, and use the horizontal adjustments to get it centered, then paste the modeline here. Please pay attention not to use the mode that's currently used by the desktop, it won't be editable.
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 or pasting it.

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

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #15 on: February 09, 2019, 07:17:59 am »
the highest resolution I have installed so far is 640x480i.

I only use this pc to emulate mame, nes, snes and to play some modern games in 15khz resolutions (like sonic mania). I don't emulate anything else, so I just added the needed resolutions to my user mode file..

here are the resolutions I use:

Code: [Select]
## Desktop ##

 640 x 480 @ 60.000000 desktop
 
## Family Computer - Nintendo Entertainment System ##

 256 x 240 @ 60.098000 famicom
 
## Super Famicom - SNES ##

 256 x 224 @ 60.098475 superfam
 256 x 239 @ 50.000000 superfam
 512 x 478 @ 25.000000 superfam
 512 x 448 @ 30.000000 superfam

## Mega Drive - Genesis ##

 320 x 224 @ 60.000000 megadrive
 320 x 240 @ 60.000000 megadrive
 
## Super resolutions ##

2560 x 240 @ 60.000000 super
2560 x 248 @ 60.000000 super
2560 x 256 @ 60.000000 super
2560 x 264 @ 60.000000 super
2560 x 272 @ 60.000000 super
2560 x 280 @ 60.000000 super
2560 x 288 @ 60.000000 super
2560 x 296 @ 60.000000 super
2560 x 304 @ 60.000000 super
2560 x 320 @ 60.000000 super
2560 x 336 @ 60.000000 super
2560 x 344 @ 60.000000 super
2560 x 352 @ 60.000000 super
2560 x 360 @ 60.000000 super
2560 x 368 @ 60.000000 super
2560 x 376 @ 60.000000 super
2560 x 384 @ 60.000000 super
2560 x 392 @ 60.000000 super
2560 x 400 @ 60.000000 super
2560 x 416 @ 60.000000 super
2560 x 432 @ 60.000000 super
2560 x 448 @ 60.000000 super
2560 x 464 @ 60.000000 super
2560 x 480 @ 60.000000 super
2560 x 496 @ 60.000000 super
2560 x 512 @ 59.000000 super
2560 x 544 @ 55.000000 super
2560 x 560 @ 54.000000 super
2560 x 768 @ 60.000000 super
2560 x 800 @ 60.000000 super


should I add 768x512, or do I just use 480i for this?

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6620
  • Last login:Today at 11:15:44 am
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #16 on: February 09, 2019, 07:19:44 am »
Mate, you have super resolutions, use any of those instead.
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 or pasting it.

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

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #17 on: February 09, 2019, 07:35:58 am »
haha I'm sorry for being so stupid about this mate :D like I said: I don't know anything about this stuff :) i just wanna follow your instructions as close as possible! thanks a lot for your patience with me! appreciate it!

so I increased/decreased the horizontal porches of 2560x240

Code: [Select]
modeline "2560x240_60 15.78KHz 60.00Hz" 52.52 2560 2744 2992 3328 240 243 246 263 -hsync -vsync
crt_range 15771.25-15791.25, 50.00-60.00, 3.503, 4.722, 6.398, 0.190, 0.190, 1.077, 0, 0, 240, 293, 48

here's what it looks like (i added/removed 10 from both porches and I think it is centered now):

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6620
  • Last login:Today at 11:15:44 am
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #18 on: February 09, 2019, 08:38:47 am »
Ok so you have:

vertical adjustment:
crt_range 15768.30-15788.30, 50.00-60.00, 2.392, 4.783, 8.371, 0.190, 0.190, 1.077, 0, 0, 240, 293, 480, 586


horizontal adjustment:
crt_range 15771.25-15791.25, 50.00-60.00, 3.503, 4.722, 6.398, 0.190, 0.190, 1.077, 0, 0, 240, 293, 480, 586


Now take the original arcade_15 preset:

crt_range0  15625-16200, 49.50-65.00, 2.000, 4.700, 8.000, 0.064, 0.192, 1.024, 0, 0, 192, 288, 448, 576

And replace the values:

crt_range0  15625-16200, 49.50-65.00, 3.503, 4.722, 6.398, 0.190, 0.190, 1.077, 0, 0, 192, 288, 448, 576

Use that line in mame.ini (make sure "monitor custom" is already set). You can also use it to create a custom monitor definition for VMMaker (in monitor.ini), so you can use it in the future.



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 or pasting it.

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

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #19 on: February 09, 2019, 09:03:53 am »
well i've added this line to mame.ini, and it seems good so far, but some games still have this wavey lines at the top.

for example I've just tested ultimate mortal kombat 3 (2560x256)
and Teenage Mutant Ninja Turtles - turtles in time (which mame runs at 320x224@60). Maybe I did something wrong, or I forgot to do something? or did the changes I made only affect 240 resolutions?


here's my mame.ini

Code: [Select]
#
# CORE CONFIGURATION OPTIONS
#
readconfig                1
writeconfig               0

#
# CORE SEARCH PATH OPTIONS
#
homepath                  .
rompath                   roms;d:\mame roms
hashpath                  hash
samplepath                samples
artpath                   artwork
ctrlrpath                 ctrlr
inipath                   .;ini;ini/presets
fontpath                  .
cheatpath                 cheat
crosshairpath             crosshair
pluginspath               plugins
languagepath              language
swpath                    software

#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory             cfg
nvram_directory           nvram
input_directory           inp
state_directory           sta
snapshot_directory        snap
diff_directory            diff
comment_directory         comments

#
# CORE STATE/PLAYBACK OPTIONS
#
state                     
autosave                  0
rewind                    0
rewind_capacity           100
playback                 
record                   
record_timecode           0
exit_after_playback       0
mngwrite                 
aviwrite                 
wavwrite                 
snapname                  %g/%i
snapsize                  auto
snapview                  internal
snapbilinear              1
statename                 %g
burnin                    0

#
# CORE PERFORMANCE OPTIONS
#
autoframeskip             0
frameskip                 0
seconds_to_run            0
throttle                  1
syncrefresh               0
autosync                  1
sleep                     1
speed                     1.0
refreshspeed              0

#
# CORE RENDER OPTIONS
#
keepaspect                1
unevenstretch             1
unevenstretchx            0
unevenstretchy            0
autostretchxy             0
intoverscan               0
intscalex                 0
intscaley                 0

#
# CORE ROTATION OPTIONS
#
rotate                    1
ror                       0
rol                       0
autoror                   0
autorol                   0
flipx                     0
flipy                     0

#
# CORE ARTWORK OPTIONS
#
artwork_crop              1
use_backdrops             0
use_overlays              0
use_bezels                0
use_cpanels               0
use_marquees              0
fallback_artwork         
override_artwork         

#
# CORE SCREEN OPTIONS
#
brightness                1.0
contrast                  1.0
gamma                     1.0
pause_brightness          0.65
effect                    none

#
# CORE VECTOR OPTIONS
#
beam_width_min            1.0
beam_width_max            1.0
beam_intensity_weight     0
flicker                   0

#
# CORE SOUND OPTIONS
#
samplerate                48000
samples                   1
volume                    0

#
# CORE INPUT OPTIONS
#
coin_lockout              1
ctrlr                     
mouse                     0
joystick                  1
lightgun                  0
multikeyboard             0
multimouse                0
steadykey                 0
ui_active                 0
offscreen_reload          0
joystick_map              auto
joystick_deadzone         0.3
joystick_saturation       0.85
natural                   0
joystick_contradictory    0
coin_impulse              0

#
# CORE INPUT AUTOMATIC ENABLE OPTIONS
#
paddle_device             keyboard
adstick_device            keyboard
pedal_device              keyboard
dial_device               keyboard
trackball_device          keyboard
lightgun_device           keyboard
positional_device         keyboard
mouse_device              mouse

#
# CORE DEBUGGING OPTIONS
#
verbose                   0
log                       0
oslog                     0
debug                     0
update_in_pause           0
debugscript               

#
# CORE COMM OPTIONS
#
comm_localhost            0.0.0.0
comm_localport            15112
comm_remotehost           127.0.0.1
comm_remoteport           15112
comm_framesync            0

#
# CORE MISC OPTIONS
#
drc                       1
drc_use_c                 0
drc_log_uml               0
drc_log_native            0
bios                     
cheat                     0
skip_gameinfo             0
uifont                    default
ui                        cabinet
ramsize                   
confirm_quit              0
ui_mouse                  1
language                  English
nvram_save                1

#
# SCRIPTING OPTIONS
#
autoboot_command         
autoboot_delay            0
autoboot_script           
console                   0
plugins                   1
plugin                   
noplugin                 

#
# HTTP SERVER OPTIONS
#
http                      0
http_port                 8080
http_root                 web

#
# CORE SWITCHRES OPTIONS
#
modeline_generation       1
monitor                   custom
orientation               horizontal
connector                 auto
interlace                 1
doublescan                1
super_width               2560
changeres                 1
powerstrip                0
lock_system_modes         1
lock_unsupported_modes    1
refresh_dont_care         0
dotclock_min              0
sync_refresh_tolerance    2.0
frame_delay               0
vsync_offset              0
black_frame_insertion     0
modeline                  auto
ps_timing                 auto
lcd_range                 auto
crt_range0                15625-16200, 49.50-65.00, 3.503, 4.722, 6.398, 0.190, 0.190, 1.077, 0, 0, 192, 288, 448, 576
crt_range1                auto
crt_range2                auto
crt_range3                auto
crt_range4                auto
crt_range5                auto
crt_range6                auto
crt_range7                auto
crt_range8                auto
crt_range9                auto

#
# OSD KEYBOARD MAPPING OPTIONS
#
uimodekey                 SCRLOCK

#
# OSD FONT OPTIONS
#
uifontprovider            auto

#
# OSD OUTPUT OPTIONS
#
output                    auto

#
# OSD INPUT OPTIONS
#
keyboardprovider          auto
mouseprovider             auto
lightgunprovider          auto
joystickprovider          auto

#
# OSD DEBUGGING OPTIONS
#
debugger                  auto
debugger_font             auto
debugger_font_size        0
watchdog                  0

#
# OSD PERFORMANCE OPTIONS
#
numprocessors             auto
bench                     0

#
# OSD VIDEO OPTIONS
#
video                     auto
numscreens                1
window                    0
maximize                  1
waitvsync                 0
monitorprovider           auto

#
# OSD PER-WINDOW VIDEO OPTIONS
#
screen                    auto
aspect                    4:3
resolution                auto
view                      auto
screen0                   auto
aspect0                   auto
resolution0               auto
view0                     auto
screen1                   auto
aspect1                   auto
resolution1               auto
view1                     auto
screen2                   auto
aspect2                   auto
resolution2               auto
view2                     auto
screen3                   auto
aspect3                   auto
resolution3               auto
view3                     auto

#
# OSD FULL SCREEN OPTIONS
#
switchres                 1

#
# OSD ACCELERATED VIDEO OPTIONS
#
filter                    0
prescale                  1

#
# OpenGL-SPECIFIC OPTIONS
#
gl_forcepow2texture       0
gl_notexturerect          0
gl_vbo                    1
gl_pbo                    1
gl_glsl                   0
gl_glsl_filter            1
glsl_shader_mame0         none
glsl_shader_mame1         none
glsl_shader_mame2         none
glsl_shader_mame3         none
glsl_shader_mame4         none
glsl_shader_mame5         none
glsl_shader_mame6         none
glsl_shader_mame7         none
glsl_shader_mame8         none
glsl_shader_mame9         none
glsl_shader_screen0       none
glsl_shader_screen1       none
glsl_shader_screen2       none
glsl_shader_screen3       none
glsl_shader_screen4       none
glsl_shader_screen5       none
glsl_shader_screen6       none
glsl_shader_screen7       none
glsl_shader_screen8       none
glsl_shader_screen9       none

#
# OSD SOUND OPTIONS
#
sound                     portaudio
audio_latency             2.0

#
# PORTAUDIO OPTIONS
#
pa_api                    none
pa_device                 none
pa_latency                0

#
# BGFX POST-PROCESSING OPTIONS
#
bgfx_path                 bgfx
bgfx_backend              auto
bgfx_debug                0
bgfx_screen_chains        default
bgfx_shadow_mask          slot-mask.png
bgfx_lut                 
bgfx_avi_name             auto

#
# WINDOWS PERFORMANCE OPTIONS
#
priority                  0
profile                   0

#
# WINDOWS VIDEO OPTIONS
#
menu                      0

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlslpath                  hlsl
hlsl_enable               0
hlsl_oversampling         0
hlsl_write                auto
hlsl_snap_width           2048
hlsl_snap_height          1536
shadow_mask_tile_mode     0
shadow_mask_alpha         0.0
shadow_mask_texture       shadow-mask.png
shadow_mask_x_count       6
shadow_mask_y_count       4
shadow_mask_usize         0.1875
shadow_mask_vsize         0.25
shadow_mask_uoffset       0.0
shadow_mask_voffset       0.0
distortion                0.0
cubic_distortion          0.0
distort_corner            0.0
round_corner              0.0
smooth_border             0.0
reflection                0.0
vignetting                0.0
scanline_alpha            0.0
scanline_size             1.0
scanline_height           1.0
scanline_variation        1.0
scanline_bright_scale     1.0
scanline_bright_offset    0.0
scanline_jitter           0.0
hum_bar_alpha             0.0
defocus                   0.0,0.0
converge_x                0.0,0.0,0.0
converge_y                0.0,0.0,0.0
radial_converge_x         0.0,0.0,0.0
radial_converge_y         0.0,0.0,0.0
red_ratio                 1.0,0.0,0.0
grn_ratio                 0.0,1.0,0.0
blu_ratio                 0.0,0.0,1.0
saturation                1.0
offset                    0.0,0.0,0.0
scale                     1.0,1.0,1.0
power                     1.0,1.0,1.0
floor                     0.0,0.0,0.0
phosphor_life             0.0,0.0,0.0
chroma_mode               3
chroma_conversion_gain    0.299,0.587,0.114
chroma_a                  0.64,0.33
chroma_b                  0.30,0.60
chroma_c                  0.15,0.06
chroma_y_gain             0.2126,0.7152,0.0722

#
# NTSC POST-PROCESSING OPTIONS
#
yiq_enable                0
yiq_jitter                0.0
yiq_cc                    3.57954545
yiq_a                     0.5
yiq_b                     0.5
yiq_o                     0.0
yiq_p                     1.0
yiq_n                     1.0
yiq_y                     6.0
yiq_i                     1.2
yiq_q                     0.6
yiq_scan_time             52.6
yiq_phase_count           2

#
# VECTOR POST-PROCESSING OPTIONS
#
vector_beam_smooth        0.0
vector_length_scale       0.5
vector_length_ratio       0.5

#
# BLOOM POST-PROCESSING OPTIONS
#
bloom_blend_mode          0
bloom_scale               0.0
bloom_overdrive           1.0,1.0,1.0
bloom_lvl0_weight         1.0
bloom_lvl1_weight         0.64
bloom_lvl2_weight         0.32
bloom_lvl3_weight         0.16
bloom_lvl4_weight         0.08
bloom_lvl5_weight         0.06
bloom_lvl6_weight         0.04
bloom_lvl7_weight         0.02
bloom_lvl8_weight         0.01
lut_texture               
lut_enable                0
ui_lut_texture           
ui_lut_enable             0

#
# FULL SCREEN OPTIONS
#
triplebuffer              0
full_screen_brightness    1.0
full_screen_contrast      1.0
full_screen_gamma         1.0

#
# INPUT DEVICE OPTIONS
#
global_inputs             0
dual_lightgun             0

#
# FRONTEND COMMAND OPTIONS
#
dtd                       1


Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6620
  • Last login:Today at 11:15:44 am
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #20 on: February 09, 2019, 09:43:15 am »
If the adjustment for 240p doesn't work well for other heights, then you need to split your range into several subranges. E.g., since you already posted your settings for 224p, this is how you'd do it:


crt_range0  15625-16200, 49.50-65.00, 3.503, 4.722, 6.398, 0.697, 0.190, 1.585, 0, 0, 192, 239, 448, 478     <- taken from your 224p adjustment
crt_range1  15625-16200, 49.50-65.00, 3.503, 4.722, 6.398, 0.190, 0.190, 1.077, 0, 0, 240, 288, 480, 576     <- your current 240p adjustment

If that works for TMNT, then create another adjustment for 256p and will add a third subrange.
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 or pasting it.

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

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6620
  • Last login:Today at 11:15:44 am
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #21 on: February 09, 2019, 10:02:32 am »
I'm seeing the same effect could be achieved by simply increasing the lower horizontal frequency without needing to split ranges:

   crt_range0  15750-16200, 49.50-65.00, 3.503, 4.722, 6.398, 0.190, 0.190, 1.077, 0, 0, 192, 288, 448, 576
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 or pasting it.

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

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #22 on: February 09, 2019, 10:10:20 am »
I'm seeing the same effect could be achieved by simply increasing the lower horizontal frequency without needing to split ranges:

   crt_range0  15750-16200, 49.50-65.00, 3.503, 4.722, 6.398, 0.190, 0.190, 1.077, 0, 0, 192, 288, 448, 576

thx alot! that worked for 224p :)

adjusting 256 is difficult though because:

I only have one 256 resolution installed (2560x256) and when I check ArcadeOSD I don't see any wavey lines at all, so I thought maybe just adding 1 to both porches helps (that why I did with the other modes) but:
horizontal resolution is already 16200. Adding 1 to front and back makes it 16315. I assume that's too much?

anyway, here's the modeline with 1 added to front and back:

Code: [Select]
modeline "2560x256_58 16.31KHz 57.85Hz" 54.69 2560 2752 3008 3352 256 261 264 282 -hsync -vsync
crt_range 16304.99-16324.99, 50.00-58.00, 3.511, 4.681, 6.290, 0.306, 0.184, 1.103, 0, 0, 256, 300, 512, 601

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6620
  • Last login:Today at 11:15:44 am
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #23 on: February 09, 2019, 10:12:41 am »
What happens if you try mk with the last line I posted?
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 or pasting it.

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

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #24 on: February 09, 2019, 10:16:03 am »
I just did. It's the same as before.

here's the crosshatch pattern of UMK3:


Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6620
  • Last login:Today at 11:15:44 am
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #25 on: February 09, 2019, 11:00:45 am »
If you test increasing HfreqMin the same way I did in the last range I posted, but you set it higher, like 15.9 or 16.0, at some point it may get fixed. That won't be valid for a general range, but may be valid for a separate 256p range.
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 or pasting it.

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

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #26 on: February 09, 2019, 11:03:25 am »
if I understand you correctly, I should start with a second range, called crt_range1, same values as the other one, but slowly increase the first value (15750) til its get fixed?

I'll test it as soon as I can and let you know what the results are! thx a lot of for the help. I would like to learn all the stuff you did for me, but I don't know where to start.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6620
  • Last login:Today at 11:15:44 am
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #27 on: February 09, 2019, 11:23:08 am »
I meant to use range 0 while you test, then once you figure out the goof value, create a separate range with it, otherwise you risk GM no using crt range1 while testing.
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 or pasting it.

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

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #28 on: February 09, 2019, 11:42:49 am »
ok so I've adjusted hfregMin in crt_range0 in steps of 50 (15800, 15850 and so on) up to 16000. I saw a slight improvement, but not much. I adjusted up to 16100. The lines where still wavey, but not as much as before.

so I've added crt_range1 to mame.

ini looks like this

Code: [Select]
#
# CORE SWITCHRES OPTIONS
#
modeline_generation       1
monitor                   custom
orientation               horizontal
connector                 auto
interlace                 1
doublescan                1
super_width               2560
changeres                 1
powerstrip                0
lock_system_modes         1
lock_unsupported_modes    1
refresh_dont_care         0
dotclock_min              0
sync_refresh_tolerance    2.0
frame_delay               0
vsync_offset              0
black_frame_insertion     0
modeline                  auto
ps_timing                 auto
lcd_range                 auto
crt_range0                15750-16200, 49.50-65.00, 3.503, 4.722, 6.398, 0.190, 0.190, 1.077, 0, 0, 192, 288, 448, 576
crt_range1                16000-16200, 49.50-65.00, 3.503, 4.722, 6.398, 0.190, 0.190, 1.077, 0, 0, 192, 288, 448, 576
crt_range2                auto
crt_range3                auto
crt_range4                auto
crt_range5                auto
crt_range6                auto
crt_range7                auto
crt_range8                auto
crt_range9                auto

but when I launch mk now, it's the same as before I added crt_range1 at all.

if we can't fixed that someone I guess I have to life with that. I don't play MK that much anyway, but I don't know how many other games use that mode.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6620
  • Last login:Today at 11:15:44 am
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #29 on: February 09, 2019, 05:48:03 pm »
That's because both ranges are overlapped, you need to set the height limits properly, e.g.:

crt_range0                15750-16200, 49.50-65.00, 3.503, 4.722, 6.398, 0.190, 0.190, 1.077, 0, 0, 192, 255, 448, 510
crt_range1                16000-16200, 49.50-65.00, 3.503, 4.722, 6.398, 0.190, 0.190, 1.077, 0, 0, 256, 288, 512, 576
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 or pasting it.

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

harry_sack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:March 06, 2019, 11:36:26 am
  • I want to build my own arcade controls!
Re: Wavey Lines on the edges of the screen/d3d9ex not working
« Reply #30 on: February 18, 2019, 05:44:32 pm »
thx mate! that worked :) sorry for replying so late!

I have one more question.. maybe you can help with that too:

my desktop is way to big (I have too much overscan). I can't see my taskbar and the upper bar of my windows (the one with minimize, fullscreen, close button)

I tried to reduce the image hight with the front and back porches, but I can't get it to work :(

is there a way to adjust the desktop resolution somehow (640x480i)? Because it's really hard to navigate thru folders etc this way :(