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: HLSL advice and help needed  (Read 2341 times)

0 Members and 1 Guest are viewing this topic.

UKDAVE1979

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:June 01, 2015, 10:03:15 pm
  • I want to build my own arcade controls!
HLSL advice and help needed
« on: June 01, 2015, 08:19:18 pm »
Hello,

I was hoping a few of the people in the know can help me out with this..

Mame 1.55 running great on the new cabinet, I'v lately came across some posts across the net in regards to the HLSL settings that can be tweaked to emulate a CRT.
 
Can anyone explain what is needed to do so? I have tried setting the 0 to 1 but soon as I fire up mame all games crashes on start-up. I get a windows pop up saying "Mame has stopped responding". if I change the setting back to 0 it is fine again, no problems loading games.
 
I'v also went into the Mame system options and ticked the HLSL setting to on but the same results.
 
Am i missing something? I can use the built in settings withing Mame and these work fine to emulate scanlines, Hantarex, Triad etc..
 
Can anyone see the problem?
 
The GPU im running is the 2g GTX 750 TI if this info is needed
 
Thanks,
 
Dave.

B2K24

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 216
  • Last login:June 10, 2025, 10:17:56 am
Re: HLSL advice and help needed
« Reply #1 on: June 01, 2015, 09:12:52 pm »
So much has changed since 0.155 that you need to upgrade to the latest version (0.162) to fully take advantage of the latest changes and fixes.

https://github.com/ImJezze/mame/commit/a70198a5fb532f1b5826bcc0a318c1d68291c0c4

If you're willing to upgrade, make a fresh mame.ini and then you can use these settings as a base which you can tweak if you want.

Code: [Select]
hlsl_enable               1
hlslpath                  hlsl
hlsl_prescale_x           8
hlsl_prescale_y           8
hlsl_preset               -1
hlsl_write               
hlsl_snap_width           3200
hlsl_snap_height          1800
shadow_mask_alpha         0.5
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
curvature                 0.0
round_corner              0.0
reflection                0.25
vignetting                0.25
scanline_alpha            0.75
scanline_size             1.0
scanline_height           1.0
scanline_bright_scale     2.0
scanline_bright_offset    0.0
scanline_jitter           0.0
defocus                   1.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.05,0.00,0.10
grn_ratio                 -0.10,1.00,0.25
blu_ratio                 -0.25,0.25,1.25
saturation                1.25
offset                    -0.30,-0.20,-0.05
scale                     1.15,1.05,0.90
power                     0.90,0.90,1.15
floor                     0.05,0.05,0.05
phosphor_life             0.5,0.5,0.5

#
# NTSC POST-PROCESSING OPTIONS
#
yiq_enable                0
yiq_cc                    3.59754545
yiq_a                     0.5
yiq_b                     0.5
yiq_o                     1.570796325
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_length_scale       0.8
vector_length_ratio       40.0

#
# BLOOM POST-PROCESSING OPTIONS
#
vector_bloom_scale        1.00
raster_bloom_scale        0.220
bloom_lvl0_weight         1.00
bloom_lvl1_weight         0.16
bloom_lvl2_weight         0.24
bloom_lvl3_weight         0.32
bloom_lvl4_weight         0.48
bloom_lvl5_weight         0.00
bloom_lvl6_weight         0.96
bloom_lvl7_weight         0.72
bloom_lvl8_weight         0.48
bloom_lvl9_weight         0.24
bloom_lvl10_weight        0.12

UKDAVE1979

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:June 01, 2015, 10:03:15 pm
  • I want to build my own arcade controls!
Re: HLSL advice and help needed
« Reply #2 on: June 01, 2015, 09:36:22 pm »
Thanks for the reply, unfortunately I wouldn't know how to upgrade to a different version, I'm a novice at all this.

I had the cabinet built with Mame pre-installed.

I'm just stuck as to how to get around this problem.

Out of curiosty what major changes were there with that version of Mame?

Thanks,

dave.

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: HLSL advice and help needed
« Reply #3 on: June 02, 2015, 11:39:12 am »
I'v also went into the Mame system options and ticked the HLSL setting to on but the same results.
Are you using some mame with a UI? If so, do you know which variant? "Mainline" MAME doesn't have UI per se, just a very basic UI.

Also, was HLSL ever working on your system? Hard to say from your error message, but maybe you need to install the DirectX 9 runtime..?


Here is a link about some of the changes in 0.162. But, from 0.155 to 0.162 there are TONS of changes:

http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Number=340496&page=0&view=collapsed&sb=5&o=&fpart=1&vc=1&new=1432834325

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: HLSL advice and help needed
« Reply #4 on: June 02, 2015, 12:49:33 pm »
So much has changed since 0.155 that you need to upgrade to the latest version (0.162) to fully take advantage of the latest changes and fixes.

https://github.com/ImJezze/mame/commit/a70198a5fb532f1b5826bcc0a318c1d68291c0c4

If you're willing to upgrade, make a fresh mame.ini and then you can use these settings as a base which you can tweak if you want.

Code: [Select]
hlsl_enable               1
hlslpath                  hlsl
hlsl_prescale_x           8
hlsl_prescale_y           8
hlsl_preset               -1
hlsl_write               
hlsl_snap_width           3200
hlsl_snap_height          1800
shadow_mask_alpha         0.5
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
curvature                 0.0
round_corner              0.0
reflection                0.25
vignetting                0.25
scanline_alpha            0.75
scanline_size             1.0
scanline_height           1.0
scanline_bright_scale     2.0
scanline_bright_offset    0.0
scanline_jitter           0.0
defocus                   1.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.05,0.00,0.10
grn_ratio                 -0.10,1.00,0.25
blu_ratio                 -0.25,0.25,1.25
saturation                1.25
offset                    -0.30,-0.20,-0.05
scale                     1.15,1.05,0.90
power                     0.90,0.90,1.15
floor                     0.05,0.05,0.05
phosphor_life             0.5,0.5,0.5

#
# NTSC POST-PROCESSING OPTIONS
#
yiq_enable                0
yiq_cc                    3.59754545
yiq_a                     0.5
yiq_b                     0.5
yiq_o                     1.570796325
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_length_scale       0.8
vector_length_ratio       40.0

#
# BLOOM POST-PROCESSING OPTIONS
#
vector_bloom_scale        1.00
raster_bloom_scale        0.220
bloom_lvl0_weight         1.00
bloom_lvl1_weight         0.16
bloom_lvl2_weight         0.24
bloom_lvl3_weight         0.32
bloom_lvl4_weight         0.48
bloom_lvl5_weight         0.00
bloom_lvl6_weight         0.96
bloom_lvl7_weight         0.72
bloom_lvl8_weight         0.48
bloom_lvl9_weight         0.24
bloom_lvl10_weight        0.12

Damn prescale at x8!!!, doesnt that seriously effect performance or has HLSL been super optimised over the last few releases!!?

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: HLSL advice and help needed
« Reply #5 on: June 02, 2015, 12:58:08 pm »
Damn prescale at x8!!!, doesnt that seriously effect performance or has HLSL been super optimised over the last few releases!!?
I can/does. But, with a "modern" video card you wouldn't notice as much. I haven't messed with the new HLSL changes (0.162) yet, but setting prescale to 0 in the past was, generally, the best option. But, everyone's situation is different.

B2K24

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 216
  • Last login:June 10, 2025, 10:17:56 am
Re: HLSL advice and help needed
« Reply #6 on: June 02, 2015, 01:33:11 pm »
Damn prescale at x8!!!, doesnt that seriously effect performance or has HLSL been super optimised over the last few releases!!?

I got a Nvidia GTX 760 and most everything I've tried runs 100% with the exception of TG16 and PCECD

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: HLSL advice and help needed
« Reply #7 on: June 02, 2015, 02:06:02 pm »
I was under the understanding that you had to change the prescale option under the 'OSD ACCELERATED VIDEO OPTIONS' to get it prescale to work, initially i though setting prescale to '0' was to disabled and the '1' was to enable it and then you just changed it to what you wanted in the HLSL section but that doesn't appear to be the case, you have to set the prescale option in the 'OSD ACCELERATED VIDEO OPTIONS' section to what you want for example '4' or '6' so what does the prescale option in the HLSL section actually do?
« Last Edit: June 02, 2015, 02:11:07 pm by lettuce »

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: HLSL advice and help needed
« Reply #8 on: June 02, 2015, 02:15:44 pm »
A prescale value of 0 (zero) is Auto, not disabled.

I don't know if the latest round of changes has an affect on prescale, but here is a link to an discuss about it on the previous incarnation (with pics):
http://shmups.system11.org/viewtopic.php?f=6&t=45026&sid=07670e044cda650e6881d254ff050991&start=360

EDIT: I see some potential for confusion. When I said "prescale" I was talking about the hlsl_prescale_x & hlsl_prescale_y values.
« Last Edit: June 02, 2015, 04:21:53 pm by lamprey »