shmups.system11.org

Shmups Forum
 
* FAQ    * Search
 * Register  * Login 
It is currently Mon Oct 22, 2018 9:29 am View unanswered posts
View active topics



Post new topic Reply to topic  [ 863 posts ]  Go to page Previous  1 ... 25, 26, 27, 28, 29  Next
Author Message
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Fri Jun 01, 2018 3:28 pm 


User avatar

Joined: 22 Jun 2011
Posts: 1281
Location: Bedfordshire, England.
Tatsuya79 wrote:
I think "Royale" and "Kurozumi" are mixed up in that video.
Kurozumi is probably shown first, with less apparent sub-pixels. (I always feel like Royale looks like some printed snapshot)


Yeah Royale looks like a magazine screen shot


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Fri Jun 01, 2018 4:09 pm 


User avatar

Joined: 05 Nov 2013
Posts: 6242
Location: Craig's
Well it aims at simulating how a CRT actually looks after all.
I always say it's the best, but not with default/popular settings (some things are slightly exaggerated or unnecessary)...and under the condition you have display as good as a CRT for motion, or quite close (also highres-enough and damn bright)
_________________
mycophobia wrote:
have tyou ever played dodponpatchi


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sat Jun 16, 2018 9:16 am 


User avatar

Joined: 03 Jun 2018
Posts: 49
Hello. Even with a setting like this, hlsl does mild smoothing:

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlslpath hlsl
hlsl_enable 1
hlsl_oversampling 0
hlsl_write auto
hlsl_snap_width 1920
hlsl_snap_height 1080
shadow_mask_tile_mode 0
shadow_mask_alpha 0.0
shadow_mask_texture shadow-mask.png
shadow_mask_x_count 0
shadow_mask_y_count 0
shadow_mask_usize 0.0
shadow_mask_vsize 0.0
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 0.0
scanline_height 0.0
scanline_variation 0.0
scanline_bright_scale 0.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.01,0.01,0.01
phosphor_life 0.0,0.0,0.0

#
# BLOOM POST-PROCESSING OPTIONS
#
bloom_blend_mode 0
bloom_scale 0.0
bloom_overdrive 0.00,0.00,0.00
bloom_lvl0_weight 0.00
bloom_lvl1_weight 0.00
bloom_lvl2_weight 0.00
bloom_lvl3_weight 0.00
bloom_lvl4_weight 0.00
bloom_lvl5_weight 0.00
bloom_lvl6_weight 0.00
bloom_lvl7_weight 0.00
bloom_lvl8_weight 0.00

Does anyone know what applies the smoothing? I have filter set to 0 and prescale set to 1 by the way.


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sat Jun 16, 2018 12:46 pm 


User avatar

Joined: 03 Jun 2018
Posts: 49
Also is there a way to use the Lanczos filter with mame?


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sat Jun 16, 2018 1:25 pm 


User avatar

Joined: 29 May 2013
Posts: 73
This image is the result of using
Code:
defocus 0,0

converge_x 0,0,0
converge_y 0,0,0
radial_converge_x 0,0,0
radial_converge_y 0,0,0

bloom_scale 0


Image
Take a look at the bracelet, those pixels are the sharpest part of this image.


Image


I think what you're looking for is integer scaling, perhaps try using the following ?
Code:
intoverscan 1


Last edited by NUeda on Sat Jun 16, 2018 1:42 pm, edited 1 time in total.

Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sat Jun 16, 2018 1:38 pm 


User avatar

Joined: 05 Nov 2013
Posts: 6242
Location: Craig's
When playing vertical games in landscape ('yoko') I must say I too find that HLSL easily retains a certain softness as well as poorly scaled 'scanlines' producing artifats/unevenness almost impossible to correct, no matter the settings.

Sure with integer scaling it's easier but unless your monitor has rather high native resolution it's not a convenient solution.
Fractional scaling for HLSL I suppose works better - including for yoko - over panels with sufficient resolution.
Because clearly over a 1080p panel it sucks, I don't know from what resolution HLSL starts to scale well for vertical games but my guess is that at least 1440 is required.
Otherwise it would be better to tate/portrait the display.

Other shaders work better for that, but MAME D3D still only features HLSL, unfortunately.
_________________
mycophobia wrote:
have tyou ever played dodponpatchi


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sat Jun 16, 2018 5:40 pm 


User avatar

Joined: 03 Jun 2018
Posts: 49
I tried intoverscan 1 but it didn't make any visible difference.


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sat Jun 16, 2018 5:56 pm 


User avatar

Joined: 05 Nov 2013
Posts: 6242
Location: Craig's
when you use intoverscan (1) you must turn unevenstretch off (0)

also of course it's to do in your specific ini(s), not in the mame.ini
_________________
mycophobia wrote:
have tyou ever played dodponpatchi


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sat Jun 16, 2018 8:01 pm 


User avatar

Joined: 03 Jun 2018
Posts: 49
Oh thanks. Yeah, it works now. So the best image you can get with D3D seems to be HLSL for now. Otherwise there is only bilinear.


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sat Jun 16, 2018 8:05 pm 


User avatar

Joined: 03 Jun 2018
Posts: 49
NUeda wrote:
This image is the result of using
Code:
defocus 0,0

converge_x 0,0,0
converge_y 0,0,0
radial_converge_x 0,0,0
radial_converge_y 0,0,0

bloom_scale 0


So even set at 0 they seem to be doing something? What about negative values? Converges are for color bleeding emulation, right? I should try using defocus.


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sat Jun 16, 2018 9:09 pm 


User avatar

Joined: 05 Nov 2013
Posts: 6242
Location: Craig's
tnc wrote:
Otherwise there is only bilinear.

Well there is an alternative, sot of, but it works only with integer scaling.
Read pages 24, 25 and 27 of this very thread (I've made several different .png's and a few more captures but I can't find the latter anymore)

It's both a very limited/simplist and flexible solution at the same time, if you want you can just make simple dark lines, or play with colors and make your own fashion of masks.
You won't get a believable CRT appearance, but you can obtain something a bit like it while retaining considerably more sharpness and clarity compared to the usual smooth filters and shaders. It doesn't look like it on stills but the brigntness and contrast/colors output is better this way. The LCD's blur then brings the touch of smoothness while in motion.
It's easy, just create them in something like paint.net, drop them in the artwork folder, then you can assign whatever .png you want to specific .ini's writing them down like this for instance:
Code:
#
# CORE SCREEN OPTIONS
#
brightness                1.0
contrast                  1.0
gamma                     1.0
pause_brightness          1.0
effect                    custom_3x4rgb.png
_________________
mycophobia wrote:
have tyou ever played dodponpatchi


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sun Jun 17, 2018 9:40 am 


User avatar

Joined: 29 May 2013
Posts: 73
tnc wrote:
So even set at 0 they seem to be doing something? What about negative values? Converges are for color bleeding emulation, right? I should try using defocus.


It's just the reality of re-sizing the game resolution to a LCD resolution that is not a integer multiple.
One solution is using 4k monitor so the blurred pixels are much smaller compared to pixel unit from actual game.

Using negative values for defocus won't solve that issue,
the slightly blurry pixels are already there because the game & LCD resolutions are not matching cleanly.
Yes, converge settings are for simulating RGB misalignment.


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sun Jun 17, 2018 6:08 pm 


User avatar

Joined: 05 Nov 2013
Posts: 6242
Location: Craig's
Yeah but wait, we can get a clearer and sharper crt-like simulation from the likes of crt-geom or royale at almost every display resolution, and I forget some other shaders that aren't half bad at the job either. HLSL is always slightly worse upscaled with more artifacts/garbage and indeed blurrier.
There's resizing and resizing, and also resizing, and yeah resizing, etc. not just one algorithm for all in the whole world of filters and shaders. Having more real estate won't always necessarily make an upscaled picture better, that's a myth.
Today I can't help but see HLSL as simply a bit behind in terms of overall picture quality and crt simulation, and I would certainly not advise to get a 4K display for the purpose of making it look relatively better, in place I'd say "get a 4K display with FreeSync and stop bothering with difficult emulator and shaders settings" :P
_________________
mycophobia wrote:
have tyou ever played dodponpatchi


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sun Jun 17, 2018 6:24 pm 


User avatar

Joined: 22 Jun 2011
Posts: 1281
Location: Bedfordshire, England.
Have you tried

Code:
#
# OSD ACCELERATED VIDEO OPTIONS
#
filter                    0
prescale               4


or though i used to use this option about 10 versions back an not sure if it still sharpens the image anymore!?, i know increase the value of prescale used to increase the sharpness of the display

also doesn't the option in the HSLS section, 'hlsl_oversampling' sharpen the image if its enabled??


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sun Jun 17, 2018 7:05 pm 


User avatar

Joined: 03 Jun 2018
Posts: 49
Thank you guys. prescale above 3 doesn't work I think. What I'm really looking for is good scaling. filter 1 prescale 2 works great except there is a thin line of tearing in the middle of the screen probably because of wrong scaling. Xyga suggested that it probably is due to my nvidia graphics card. I wouldn't bother with hlsl or anything else if it worked properly. Because hlsl seems to be doing the crt emulation thing only and I'd rather have a low performance scaler that looks good. Will have to stick to either filter 1 prescale 1 or filter 1 prescale 2 and live with the thin tearing, it's actually so thin you can't notice it until a ship passes through.


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sun Jun 17, 2018 7:13 pm 


User avatar

Joined: 05 Nov 2013
Posts: 6242
Location: Craig's
bilinear 0, prescale 3 or 4, HLSL on, also produces the scaling bug line?
_________________
mycophobia wrote:
have tyou ever played dodponpatchi


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sun Jun 17, 2018 9:31 pm 


User avatar

Joined: 16 Jul 2007
Posts: 358
tnc wrote:
prescale above 3 doesn't work I think.

Yup, prescale above 3 will print an error message telling valid values are 1 to 3, and revert to 1.
It might have been different before (years ago), I'm not too sure.


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Mon Jun 18, 2018 2:09 pm 


User avatar

Joined: 03 Jun 2018
Posts: 49
Wow, some interesting stuff. Enabling HLSL disables both bilinear and prescale as I got the same result using filter 0 and prescale 1, 2 and 3 when HLSL on. Disabling the HLSL and prescale at 2 or 3, whether bilinear on or off also does wrong width scaling as comparing snapshots showed everything rendering wider than normal. But good news is I actually prefer the smoothing HLSL does better than prescale :)

edit: Oh and when prescale is set to 3 the scale bug line is closer to the top now whereas at 2 it was right in the middle of the screen.


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Mon Jun 18, 2018 6:03 pm 


User avatar

Joined: 22 Jun 2011
Posts: 1281
Location: Bedfordshire, England.
tnc wrote:
Wow, some interesting stuff. Enabling HLSL disables both bilinear and prescale as I got the same result using filter 0 and prescale 1, 2 and 3 when HLSL on. Disabling the HLSL and prescale at 2 or 3, whether bilinear on or off also does wrong width scaling as comparing snapshots showed everything rendering wider than normal. But good news is I actually prefer the smoothing HLSL does better than prescale :)

edit: Oh and when prescale is set to 3 the scale bug line is closer to the top now whereas at 2 it was right in the middle of the screen.


what about the 'hlsl_oversampling' option what does that do i though that was similar to prescale?


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Tue Jun 19, 2018 1:29 pm 


User avatar

Joined: 03 Jun 2018
Posts: 49
lettuce wrote:
what about the 'hlsl_oversampling' option what does that do i though that was similar to prescale?


hlsl_oversampling at 1 and 2 did no visible difference. It seems to be more demanding though.


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Sat Aug 04, 2018 8:52 am 


User avatar

Joined: 29 May 2013
Posts: 73
INI Creator 0.4 is probably getting released this month (august 2018).

Coding is done but the config/settings need to be tweaked.

Image


Last edited by NUeda on Sun Aug 26, 2018 8:27 am, edited 1 time in total.

Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Tue Aug 14, 2018 3:11 pm 



Joined: 12 Aug 2018
Posts: 2
Hey NUeda!!! 8)
Well... I'm part of the Emulation scene since 2001 and messing around with Video filters and CRT emulation since than...
I'm following this Thread since almost the beginning but now i had to Register to finally say Thanks!!
I really have to say that the .ini's you created are some of the most impressives i've ever seen!!! Really Really love them!!!
Every time i start a game in M.A.M.E. im just blown away by how nice the colors and everything look!!! Damn awesone work you did there!!!
Only thing i changed was the bloom_scale. I reduced it from 0.5 to 0.3.

Once again many thank's for sharing all you very nice work!!! :wink:


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Thu Aug 23, 2018 10:22 am 


User avatar

Joined: 29 May 2013
Posts: 73
MaximeX wrote:
Hey NUeda!!! 8)


You're so very much welcome!

And you're absolutely right about the bloom, it was too much and making everything blurry.
Sorry I couldn't reply earlier, for the past few weeks I was using all my time outside of work to finish v0.4,
I didn't do much internet.

v0.4 is here now. Please enjoy your games. :mrgreen:


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Thu Aug 23, 2018 10:23 am 


User avatar

Joined: 29 May 2013
Posts: 73
I apologize to any user that has been waiting. And thank you for your patience.
v0.4 is here now.

Image

INI Creator v0.4
Download from google drive
CRC32: 6BC185C6

---------------------------------------------------------------------------------------------
How to install:
---------------------------------------------------------------------------------------------
1. Download the zip file and extract the contents into a new folder.
The folder can have any name you like, but for the sake of this explanation let's name it
_INI_Creator_v0.4


2. Place this folder inside your mame folder (any name is ok, mame64, mame32, mameplus),
on the same level as ini folder (must be this name).

mame
L..... _INI_Creator_v0.4
L..... ini
L..... mame.exe


3. Go inside the folder and run INI_Creator_v0.4.bat, and finish the batch process.
I would recommend trying the default setting first.

Image

Press Y and then hit ENTER key.
You're done now.







If you want to use HLSL settings that are not included in this package,
please use a text editor to change the contents of *.ini and *.txt files.


---------------------------------------------------------------------------------------------
Screenshots
Full size image can be viewed by clicking on image.

Image

Image

Image

Image

Image

Image

Image






v0.4 has many updates and differences compared to older version.
Explanations and more screenshots will be posted soon.


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Thu Aug 23, 2018 10:55 pm 


User avatar

Joined: 22 Aug 2011
Posts: 469
Location: Portugal
Thank you so much for your work NUeda. I will try to give it a try next weekend, to see how it looks in my LG OLED 4K


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Fri Aug 24, 2018 12:39 am 


User avatar

Joined: 29 May 2013
Posts: 73
Overkill wrote:
Thank you so much for your work NUeda. I will try to give it a try next weekend, to see how it looks in my LG OLED 4K


You're welcome sir. :mrgreen:

By the way, I must tell you that the shadow mask / slot mask / aperture grille settings in v0.4 are designed for 1280x1024 ~ 1920x1080 LCD monitors. When they're used on a 4K monitor, I expect the patterns will be really small and not 1:1 mapped to 4K monitor resolution.

(Right now the patterns are scaled down because they are too big for 1280x1024 ~ 1920x1080 monitors)


Sorry about that, in the next version I'll try to include additional settings that are designed for 4K monitors.
For v0.4, what you can do is use these settings instead:
Code:
shadow_mask_x_count       32
shadow_mask_y_count       48

or
Code:
shadow_mask_x_count       48
shadow_mask_y_count       48


When you have time during weekend,
please try applying this to 13_TV_trinitron_240p.ini in _ini folder, and run INI Creator again.

If you like the change, you can apply this to other ini files too.


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Fri Aug 24, 2018 8:15 am 


User avatar

Joined: 15 Sep 2009
Posts: 242
i just downloaded _INI_Creator_v0.4 along with groovymame64_0200.017i and ran it on my main PC no problems. But i then tried it on my MAME PC and the speed is locked to 25% for some reason , anyone know why this is happening ?.

i will leave my MAME PC specs below and ffight.ini (Final Fight) , i am running CRTemudriver also and speccy reports the GFX Card is a 7000 series which it is a Radeon 6450 to be exact

Image

Code:
#
# CORE CONFIGURATION OPTIONS
#
readconfig                1
writeconfig               1

#
# CORE SEARCH PATH OPTIONS
#
homepath                  .
rompath                   "f:\PS2 Torrents\MAME 0.200 ROMs (merged)"
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               1
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                   1
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                0.82
contrast                  1.18
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                   lcd
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                auto
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                 1
monitorprovider           auto

#
# OSD PER-WINDOW VIDEO OPTIONS
#
screen                    auto
aspect                    auto
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                    1
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                     auto
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_avi_name             auto

#
# WINDOWS PERFORMANCE OPTIONS
#
priority                  0
profile                   0

#
# WINDOWS VIDEO OPTIONS
#
menu                      0

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlslpath                  hlsl
hlsl_enable               1
hlsl_oversampling         1
hlsl_write                auto
hlsl_snap_width           2048
hlsl_snap_height          1536
shadow_mask_tile_mode     0
shadow_mask_alpha         0.33
shadow_mask_texture       aperture-grille.png
shadow_mask_x_count       16
shadow_mask_y_count       48
shadow_mask_usize         1
shadow_mask_vsize         1
shadow_mask_uoffset       0
shadow_mask_voffset       0
distortion                0
cubic_distortion          0
distort_corner            0
round_corner              0.02
smooth_border             0.02
reflection                0
vignetting                0.1
scanline_alpha            1
scanline_size             1.0
scanline_height           1.0
scanline_variation        1.0
scanline_bright_scale     1.4
scanline_bright_offset    0.4
scanline_jitter           0.2
hum_bar_alpha             0.01
defocus                   0.7,0.0
converge_x                -0.4,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
offset                    -0.02,-0.02,-0.02
scale                     0.98,0.99,1.02
power                     1.3,1.3,1.3
floor                     0.0,0.0,0.0
phosphor_life             0.12,0.12,0.12

#
# 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.05
bloom_overdrive           1.00,1.00,1.00
bloom_lvl0_weight         1.0
bloom_lvl1_weight         1
bloom_lvl2_weight         1
bloom_lvl3_weight         1
bloom_lvl4_weight         1
bloom_lvl5_weight         0
bloom_lvl6_weight         0
bloom_lvl7_weight         0
bloom_lvl8_weight         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


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Fri Aug 24, 2018 8:04 pm 



Joined: 12 Aug 2018
Posts: 2
Oh Nice!!
Once again many thx for sharing your work NUeda!! :D
Can't wait to see what you've done there!!


Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Fri Aug 24, 2018 11:10 pm 


User avatar

Joined: 29 May 2013
Posts: 73
s8n wrote:
i just downloaded _INI_Creator_v0.4 along with groovymame64_0200.017i and ran it on my main PC no problems. But i then tried it on my MAME PC and the speed is locked to 25% for some reason , anyone know why this is happening ?.


While running INI Creator v0.4,
You could choose "n" when asked about Default Settings
and then choose "n" when asked about HLSL

Image

and then try using minimum amount of HLSL
by applying these to your mame.ini:
Code:
hlsl_enable               1
hlsl_oversampling         0

shadow_mask_alpha         0.0

scanline_alpha            0.3

bloom_scale               0

I hope this gives you acceptable results.




Sir, I hate to say this but the HLSL settings in v0.4 are rather demanding on the GPU.
I would recommend a GPU with at least 1500 G3D score on passmark.
https://www.videocardbenchmark.net/high_end_gpus.html
https://www.videocardbenchmark.net/gpu_value.html

If I had to get a GPU right now just for mame,
I would consider GeForce GT 1030 or Radeon R7 450.
they're each less than $100.




I'm assuming you're using 1080p LCD monitor as primary display and
CRT monitor as secondary display for MAME,
I don't think HLSL is necessary if you already have a CRT monitor setup.


Last edited by NUeda on Fri Aug 24, 2018 11:44 pm, edited 2 times in total.

Top
 Offline Profile  
 
 Post subject: Re: MAME HLSL CRT SCANLINE EMULATION PRESETS
PostPosted: Fri Aug 24, 2018 11:10 pm 


User avatar

Joined: 29 May 2013
Posts: 73
MaximeX wrote:
Oh Nice!!


Enjoy your game sir! :mrgreen:


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 863 posts ]  Go to page Previous  1 ... 25, 26, 27, 28, 29  Next

All times are UTC


Who is online

Users browsing this forum: Lawfer and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Space Pilot 3K template by Jakob Persson
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group