MAMEUIFX

A full-of-features version of MAME designed for LCD monitors
It is currently 22/09/2019, 7:19

All times are UTC+02:00




Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: GLSL speed issue
PostPosted: 16/09/2015, 13:56 
Offline
User
User

Joined: 12/07/2015, 16:42
Posts: 42
Hey guys,

I'm an avid HLSL lover and have been using it exclusively. It runs great and looks great. But with all the recent filter improvements, I decided to give GLSL a go. The problem is that using GLSL. all games seem to run at half speed, but the strange thing is that it's exactly half speed (well, 51%). What could cause this?

I'm running Windows 7 SP1, 8 gig of ram, GPU is a 2 gig Geforce 750TI. As I said, HLSL runs fine.


Last edited by retrofreak90 on 17/09/2015, 10:30, edited 1 time in total.

Top
   
 Post subject: Re: GLSL speed issue
PostPosted: 17/09/2015, 8:02 
Offline
Admin
Admin
User avatar

Joined: 17/09/2014, 16:04
Posts: 695
Location: Italy
Which shader are you using?

Could you post some details about your options? Maybe copy and paste here your \INI\MAME.INI content?

I'm curious, because usually it's the opposite, HLSL is more resource demanding...


Top
   
 Post subject: Re: GLSL speed issue
PostPosted: 17/09/2015, 9:42 
Offline
User
User

Joined: 12/07/2015, 16:42
Posts: 42
I don't think it's performace-related. Firstly, because HLSL runs great and secondly, because using GLSL it's locked at exactly 51%, it never wavers no matter what's going on in-game.

Here's the ini details:

#
# CORE CONFIGURATION OPTIONS
#
readconfig 1
writeconfig 1

#
# CORE SEARCH PATH OPTIONS
#
rompath roms
hashpath hash
samplepath samples
artpath artwork
ctrlrpath ctrlr
inipath ini
fontpath .
cheatpath cheat
crosshairpath crosshair
highpath dats

#
# 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
hiscore_directory hi
video_directory video

#
# CORE STATE/PLAYBACK OPTIONS
#
state
autosave 0
playback
record
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
sleep 0
speed 1.0
refreshspeed 0

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

#
# CORE ARTWORK OPTIONS
#
artwork_crop 0
use_backdrops 0
use_overlays 0
use_bezels 0
use_cpanels 0
use_marquees 0

#
# CORE SCREEN OPTIONS
#
brightness 1.0
contrast 1.0
gamma 1.0
pause_brightness 1.0
effect none
widestretch 0

#
# CORE VECTOR OPTIONS
#
antialias 1
beam 1.0
flicker 0

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

#
# CORE INPUT OPTIONS
#
coin_lockout 0
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 joystick
pedal_device joystick
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

#
# CORE MISC OPTIONS
#
drc 1
drc_use_c 0
drc_log_uml 0
drc_log_native 0
bios
cheat 1
skip_gameinfo 1
uifont default
ramsize
confirm_quit 0
ui_mouse 0
autoboot_command
autoboot_delay 2
autoboot_script
http 0
http_port 8080
http_path web
console 0
hiscore 1

#
# OSD KEYBOARD MAPPING OPTIONS
#
uimodekey SCRLOCK

#
# OSD FONT OPTIONS
#
uifontprovider auto

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

#
# OSD PERFORMANCE OPTIONS
#
multithreading 0
numprocessors auto
bench 0

#
# OSD VIDEO OPTIONS
#
video opengl
numscreens 1
window 0
maximize 1
keepaspect 1
unevenstretch 1
waitvsync 0

#
# 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 0

#
# OSD ACCELERATED VIDEO OPTIONS
#
filter 1
prescale 1

#
# OpenGL-SPECIFIC OPTIONS
#
glslpath glsl
gl_forcepow2texture 0
gl_notexturerect 0
gl_vbo 1
gl_pbo 1
gl_glsl 1
gl_glsl_filter 1
gl_glsl_sync 0
glsl_shader_mame0 "Lottes CRT"
glsl_shader_mame1 "Lottes CRT"
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 dsound
audio_latency 2

#
# WINDOWS PERFORMANCE OPTIONS
#
priority 0
profile 0

#
# WINDOWS VIDEO OPTIONS
#
menu 0

#
# DIRECTDRAW-SPECIFIC OPTIONS
#
hwstretch 0

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable 1
hlslpath hlsl
hlsl_prescale_x 6
hlsl_prescale_y 6
hlsl_preset -1
hlsl_write 1
hlsl_snap_width 2048
hlsl_snap_height 1536
shadow_mask_alpha 0.14
shadow_mask_texture SlotMask.png
shadow_mask_x_count 6
shadow_mask_y_count 4
shadow_mask_usize 0.1875
shadow_mask_vsize 0.1875
shadow_mask_uoffset 0.0
shadow_mask_voffset 0.0
curvature 0.20
round_corner 0.25
reflection 0.00
vignetting 0.24
scanline_alpha 0.58
scanline_size 1.00
scanline_height 0.75
scanline_bright_scale 1.30
scanline_bright_offset 0.65
scanline_jitter 0.10
defocus 1.00,0.50
converge_x 0.4,0.0,-0.3
converge_y 0.0,0.0,0.0
radial_converge_x 0.2,0.0,-0.2
radial_converge_y 0.0,0.0,0.0
red_ratio 0.90,0.05,0.05
grn_ratio 0.10,0.80,0.10
blu_ratio 0.10,0.0,0.90
saturation 1.60
offset -0.05,0.03,0.01
scale 0.96,0.94,1.0
power 1.35,1.30,1.10
floor 0.00,0.03,0.03
phosphor_life 0.40,0.35,0.30

#
# 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 500.0

#
# BLOOM POST-PROCESSING OPTIONS
#
vector_bloom_scale 0.3
raster_bloom_scale 0.425
bloom_lvl0_weight 1.0
bloom_lvl1_weight 0.35
bloom_lvl2_weight 0.25
bloom_lvl3_weight 0.17
bloom_lvl4_weight 0.15
bloom_lvl5_weight 0.14
bloom_lvl6_weight 0.13
bloom_lvl7_weight 0.12
bloom_lvl8_weight 0.11
bloom_lvl9_weight 0.10
bloom_lvl10_weight 0.09

#
# FULL SCREEN OPTIONS
#
triplebuffer 1
full_screen_brightness 0.9
full_screen_contrast 1.25
full_screen_gamma 0.9

#
# INPUT DEVICE OPTIONS
#
dual_lightgun 0
joystick_id_1 0
joystick_id_2 1
joystick_id_3 2
joystick_id_4 3
joystick_id_5 4
joystick_id_6 5
joystick_id_7 6
joystick_id_8 7

#
# IMAGE DEVICES
#
memcard


Top
   
 Post subject: Re: GLSL speed issue
PostPosted: 17/09/2015, 11:29 
Offline
Admin
Admin
User avatar

Joined: 17/09/2014, 16:04
Posts: 695
Location: Italy
Found probably the issue... you have two identical shaders enabled:
Code:
glsl_shader_mame0 "Lottes CRT"
glsl_shader_mame1 "Lottes CRT"

Go... remove from shader_mame1 the Lottes CRT, you can simply press "Reset" button in the related slot in the interface.
Then let me know if the problem is fixed.

Single shaders must be enabled in the relative slot under "OpenGL" options TAB. Multiple shaders (which will be distributed with FX soon) also requires additional slots in the "OpenGL shaders" section.


Top
   
 Post subject: Re: GLSL speed issue
PostPosted: 17/09/2015, 17:03 
Offline
Moderator
Moderator
User avatar

Joined: 17/10/2014, 12:02
Posts: 108
Location: Germany
Agree with mamesick in every term.
The Lotte shader is a very demanding shader and you have used it twice :lol: . Some PC-rigs cant even handle it in single mode ;)

_________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."


Top
   
 Post subject: Re: GLSL speed issue
PostPosted: 18/09/2015, 11:06 
Offline
User
User

Joined: 12/07/2015, 16:42
Posts: 42
Doh! I can't believe I missed that! Yeah, it runs fine now. Thanks chaps.


Top
   
Display posts from previous:  Sort by  
Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 15 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
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited