MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2261
Send PM


BGFX performance issues - solved?
#350300 - 02/15/16 11:36 PM


For anyone who's had performance issues with the BGFX renderer since it went in, can you try the latest code that's in github? I've done a lot to improve performance of the plugin. Some before/after reports would be great.



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4462
Loc: Melbourne, Australia
Send PM


Re: BGFX performance issues - solved? new [Re: MooglyGuy]
#350311 - 02/16/16 09:28 AM


Peak performance displaying game video only is the same or possibly marginally better, but now displaying the OSD UI (tab menu, sliders) causes no drop in performance whereas previously it took a 75% hit. Looks like a huge improvement for drawing UI elements.



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4462
Loc: Melbourne, Australia
Send PM


Noticed one BGFX issue new [Re: MooglyGuy]
#350312 - 02/16/16 09:53 AM


Transparency of UI elements over other UI elements seems to be busted. For example if you run "mame -video bgfx" then select a game from the list that you don't have a full ROM set for, the error message is unreadable. It works properly with -video opengl and -video d3d.



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2261
Send PM


Re: Noticed one BGFX issue new [Re: Vas Crabb]
#350313 - 02/16/16 01:03 PM


> Transparency of UI elements over other UI elements seems to be busted. For example if
> you run "mame -video bgfx" then select a game from the list that you don't have a
> full ROM set for, the error message is unreadable. It works properly with -video
> opengl and -video d3d.

Thanks. I'll have a look.



Envisaged0ne
MAME Fan
Reged: 08/29/06
Posts: 543
Send PM


Re: BGFX performance issues - solved? new [Re: MooglyGuy]
#350328 - 02/16/16 09:38 PM


It seems to be working ok, but the games run really slow. About half there normal speed. Is there a setting I can configure to make them run at full speed?



Windows 11 64 bit OS
Intel Core i7-10700
Nvidia GeForce RTX 2060 6GB
32GB DDR4 RAM



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2261
Send PM


Re: BGFX performance issues - solved? new [Re: Envisaged0ne]
#350336 - 02/17/16 02:10 AM


> It seems to be working ok, but the games run really slow. About half there normal
> speed. Is there a setting I can configure to make them run at full speed?

Do you have vsync, triplebuffer, matchrefresh, or any other non-default setting turned on? Post your mame.ini.



Envisaged0ne
MAME Fan
Reged: 08/29/06
Posts: 543
Send PM


Re: BGFX performance issues - solved? new [Re: MooglyGuy]
#350338 - 02/17/16 02:36 AM


Ok, here is a copy of my INI file...

#
# CORE CONFIGURATION OPTIONS
#
readconfig 1
writeconfig 0

#
# CORE SEARCH PATH OPTIONS
#
rompath "h:\Game Consoles\MameUI32\roms;E:\MAME64\roms"
hashpath hash
samplepath "h:\Game Consoles\MameUI32\samples"
artpath E:\MAME64\artwork
ctrlrpath ctrlr
inipath .;ini
fontpath .
cheatpath cheat
crosshairpath crosshair

#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory "h:\Game Consoles\MameUI32\cfg"
nvram_directory "h:\Game Consoles\MameUI32\nvram"
input_directory inp
state_directory sta
snapshot_directory snap
diff_directory diff
comment_directory comments

#
# CORE STATE/PLAYBACK OPTIONS
#
state
autosave 0
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
sleep 1
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 1
use_overlays 1
use_bezels 1
use_cpanels 1
use_marquees 1

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

#
# CORE VECTOR OPTIONS
#
antialias 1
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 1
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

#
# CORE MISC OPTIONS
#
drc 1
drc_use_c 0
drc_log_uml 0
drc_log_native 0
bios
cheat 0
ui cabinet
ramsize
autoboot_command
autoboot_delay 2
autoboot_script
console 0

#
# 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 auto
numscreens 1
window 0
maximize 1
keepaspect 1
unevenstretch 1
waitvsync 0
syncrefresh 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
#
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

#
# WINDOWS PERFORMANCE OPTIONS
#
priority 0
profile 0

#
# WINDOWS VIDEO OPTIONS
#
menu 0

#
# DIRECTDRAW-SPECIFIC OPTIONS
#
hwstretch 1

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable 0
hlslpath hlsl
hlsl_prescale_x 0
hlsl_prescale_y 0
hlsl_write
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
curvature 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_bright_scale 1.0
scanline_bright_offset 0.0
scanline_jitter 0.0
hum_bar_alpha 0.0
defocus 1.0,0.0
converge_x 0.25,0.00,-0.25
converge_y 0.0,0.25,-0.25
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.4
offset 0.0,0.0,0.0
scale 0.95,0.95,0.95
power 0.8,0.8,0.8
floor 0.05,0.05,0.05
phosphor_life 0.4,0.4,0.4

#
# 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_length_scale 0.5
vector_length_ratio 500.0

#
# BLOOM POST-PROCESSING OPTIONS
#
bloom_blend_mode 0
bloom_scale 0.25
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.04
bloom_lvl6_weight 0.04
bloom_lvl7_weight 0.02
bloom_lvl8_weight 0.02
bloom_lvl9_weight 0.01
bloom_lvl10_weight 0.01

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



Windows 11 64 bit OS
Intel Core i7-10700
Nvidia GeForce RTX 2060 6GB
32GB DDR4 RAM



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2261
Send PM


Re: Noticed one BGFX issue new [Re: Vas Crabb]
#350339 - 02/17/16 02:36 AM


> Transparency of UI elements over other UI elements seems to be busted. For example if
> you run "mame -video bgfx" then select a game from the list that you don't have a
> full ROM set for, the error message is unreadable. It works properly with -video
> opengl and -video d3d.

Can you try the latest code in git? It should work now.



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4462
Loc: Melbourne, Australia
Send PM


Re: Noticed one BGFX issue new [Re: MooglyGuy]
#350380 - 02/18/16 09:17 AM


> > Transparency of UI elements over other UI elements seems to be busted. For example if
> > you run "mame -video bgfx" then select a game from the list that you don't have a
> > full ROM set for, the error message is unreadable. It works properly with -video
> > opengl and -video d3d.
>
> Can you try the latest code in git? It should work now.

All good now, thanks.



haynor666
Reged: 05/06/06
Posts: 101
Loc: Tarnobrzeg/Poland
Send PM


Re: Noticed one BGFX issue new [Re: Vas Crabb]
#350500 - 02/21/16 05:51 PM


With latest GIT I get error:

Caught unhandled St11logic_error exception: basic_string::_M_construct null not
valid



Envisaged0ne
MAME Fan
Reged: 08/29/06
Posts: 543
Send PM


Re: BGFX performance issues - solved? new [Re: MooglyGuy]
#350583 - 02/23/16 03:43 PM


I figured out what was causing the games to slow down when using BGFX. Maybe this is a known issue, but when I have artwork enabled, the games slow down. Sometimes to half the speed. But disabled the games run at full speed.



Windows 11 64 bit OS
Intel Core i7-10700
Nvidia GeForce RTX 2060 6GB
32GB DDR4 RAM



Mr Ric
MAME Fan
Reged: 09/25/05
Posts: 253
Send PM


Re: BGFX performance issues - solved? new [Re: Envisaged0ne]
#358342 - 09/05/16 11:38 PM


> I figured out what was causing the games to slow down when using BGFX. Maybe this is
> a known issue, but when I have artwork enabled, the games slow down. Sometimes to
> half the speed. But disabled the games run at full speed.

I'm noticing this also on some games...boothill for example. The speed is dropped if all artwork settings are on but returns to 100% if crop, backdrops or bezels is off.

#
# CORE ARTWORK OPTIONS
# These settings drop the speed to 58%
artwork_crop 1
use_backdrops 1
use_overlays 1
use_bezels 1
use_cpanels 1
use_marquees 1


#
# CORE ARTWORK OPTIONS
# These settings produce 100% speed
artwork_crop 0
use_backdrops 1
use_overlays 1
use_bezels 1
use_cpanels 1
use_marquees 1


#
# CORE ARTWORK OPTIONS
# These settings produce 100% speed
artwork_crop 1
use_backdrops 0
use_overlays 1
use_bezels 1
use_cpanels 1
use_marquees 1


#
# CORE ARTWORK OPTIONS
# These settings produce 100% speed
artwork_crop 1
use_backdrops 1
use_overlays 1
use_bezels 0
use_cpanels 1
use_marquees 1



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2261
Send PM


Re: BGFX performance issues - solved? new [Re: Mr Ric]
#358395 - 09/07/16 10:32 AM


> I'm noticing this also on some games...boothill for example. The speed is dropped if
> all artwork settings are on but returns to 100% if crop, backdrops or bezels is off.

Can you point me at a download link for a full artwork set for boothill? I'll slap it at a profiler and see what shakes loose.



uman
MAME Fan
Reged: 04/15/12
Posts: 455
Send PM


Re: BGFX performance issues - solved? new [Re: MooglyGuy]
#358396 - 09/07/16 10:37 AM Attachment: boothill.zip 6881 KB (2 downloads)


attached.

or if you dont trust me, go here:

http://mrdo.mameworld.info/artwork/boothill.zip

Edited by uman (09/07/16 10:48 AM)



Mr Ric
MAME Fan
Reged: 09/25/05
Posts: 253
Send PM


Re: BGFX performance issues - solved? new [Re: MooglyGuy]
#358436 - 09/08/16 12:15 AM



> Can you point me at a download link for a full artwork set for boothill? I'll slap it
> at a profiler and see what shakes loose.

The link and attachment uman provided is the one. Thanks for checking it out.



LensLarque
MAME Fan
Reged: 02/19/08
Posts: 160
Send PM


Re: BGFX performance issues - solved? new [Re: Envisaged0ne]
#358443 - 09/08/16 09:57 AM


> I figured out what was causing the games to slow down when using BGFX. Maybe this is
> a known issue, but when I have artwork enabled, the games slow down. Sometimes to
> half the speed. But disabled the games run at full speed.

I use PNG effects overlay files over BGFX (yup) and I've noticed the considerable drop in performance, indeed.
Games running at 75% speed because of a minuscule PNG overlay ? Seriously ?

Turned out in my case it was a matter of wrong GPU used.
I have a computer that allows to switch between the weak intel iGPU, and a significantly better geForce, you know that 'optimus' thing.

Naturally it'll always automatically pick the wrong one, so I've forced MAME to use the geForce and everything was back to normal speeds, even a bit better in some games (cv1k for instance).

Seems you can't run BGFX on anything and get similarily good performance ratios in every circumstances; e.g. that intel igpu weakness with overlays.



> MAME isn't about playing the games anyway.


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 124 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4889