Previous Thread
Next Thread
Print Thread
Page 1 of 3 1 2 3
Joined: Mar 2004
Posts: 668
Senior Member
OP Offline
Senior Member
Joined: Mar 2004
Posts: 668
Hi,
what is the expected performance on integrated Vega graphics? I got a new laptop with 4500U and when in full screen and hlsl screen chain umk3 runs with 50% speed with vulkan backend, barely above 100% with opengl. WIth pure opengl the speed is around 500%. Is this normal, or am I doing something wrong? Thanks for the input.

Joined: Mar 2001
Posts: 16,808
Likes: 32
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,808
Likes: 32
I don't actually know the relative performance of the integrated Vega graphics. I would assume it'd be sufficient at 1080P for the CRT chain, but I can't guarantee it.

1 member likes this: belegdol
Joined: May 2006
Posts: 142
Likes: 1
F
Senior Member
Offline
Senior Member
F
Joined: May 2006
Posts: 142
Likes: 1
Please provide the exact command line/config file you're using for your chains, also what resolution you're trying to do this at.

Hell, dump your whole mame.ini here, and the command line you're running (and be sure to add -verbose results)

I'll look into this as soon as I can see what you're doing. I have access to a 4800H with the integrated video; I'll just force it to not use the onboard Nvidia display and see if I can't get an idea what's going on.

Edit: Also, which OS you're running. I'm assuming because you're posting in this particular space that you're using Linux or BSD? The fact that I'd be testing on Windows 10 would result in there being a little less of an apples to apples comparison, but it should still give an idea of theoretical performance.

Last edited by Firehawke; 02/27/21 07:07 AM.
Joined: Mar 2004
Posts: 668
Senior Member
OP Offline
Senior Member
Joined: Mar 2004
Posts: 668
I am running this on Fedora 33 x86_64. It runs Wayland by default, switching to X.org has managed to get fullscreen bgfx vulkan backend to get above 100%, but not by a huge margin. Wayland or X.org appear to have no major influence on bgfx opengl backend performance. My full screen resolution is 1920x1080. Thanks for looking into this! In all my years running Linux I was always using nvidia graphics so I am still not that familiar with the plethora of amd drivers and their respective performance. A brief look at phoronix benchmarks suggests that it all of the drivers are roughly in the same ballpark though. This is my ini:
Code
#
# CORE CONFIGURATION OPTIONS
#
readconfig                1
writeconfig               0

#
# CORE SEARCH PATH OPTIONS
#
homepath                  $HOME/.mame
rompath                   /usr/share/mame/roms;/usr/share/mame/chds;/mnt/openmediavault/emu/mame/roms;/mnt/openmediavault/emu/mame/software
hashpath                  /usr/share/mame/hash
samplepath                /usr/share/mame/samples
artpath                   /usr/share/mame/artwork;/usr/share/mame/effects
ctrlrpath                 /usr/share/mame/ctrlr
inipath                   $HOME/.mame/ini;/etc/mame
fontpath                  /usr/share/mame/fonts
cheatpath                 /usr/share/mame/cheat;/mnt/openmediavault/emu/mame/cheat
crosshairpath             /usr/share/mame/crosshair
pluginspath               /usr/share/mame/plugins
languagepath              /usr/share/mame/language
swpath                    /mnt/openmediavault/emu/mame/software

#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory             $HOME/.mame/cfg
nvram_directory           /mnt/openmediavault/emu/mame/nvram
input_directory           $HOME/.mame/inp
state_directory           /mnt/openmediavault/emu/mame/sta
snapshot_directory        $HOME/.mame/snap;/mnt/openmediavault/emu/mame/snaps
diff_directory            $HOME/.mame/diff
comment_directory         $HOME/.mame/comments

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

#
# 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              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_dot_size             1.0
beam_intensity_weight     0
flicker                   0

#
# CORE SOUND OPTIONS
#
samplerate                48000
samples                   1
volume                    0
speaker_report            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               
debuglog                  0

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

#
# 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_port             23946
debugger_font             auto
debugger_font_size        0
watchdog                  0

#
# OSD PERFORMANCE OPTIONS
#
numprocessors             auto
bench                     0

#
# OSD VIDEO OPTIONS
#
video                     bgfx
numscreens                1
window                    1
maximize                  0
waitvsync                 0
syncrefresh               0
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                 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

#
# PORTAUDIO OPTIONS
#
pa_api                    none
pa_device                 none
pa_latency                0

#
# BGFX POST-PROCESSING OPTIONS
#
bgfx_path                 /usr/share/mame/bgfx
bgfx_backend              opengl
bgfx_debug                0
bgfx_screen_chains        hlsl
bgfx_shadow_mask          slot-mask.png
bgfx_lut                  
bgfx_avi_name             auto

#
# SDL PERFORMANCE OPTIONS
#
sdlvideofps               0

#
# SDL VIDEO OPTIONS
#
centerh                   1
centerv                   1
scalemode                 none

#
# SDL FULL SCREEN OPTIONS
#
useallheads               0

#
# SDL KEYBOARD MAPPING
#
keymap                    0
keymap_file               keymap.dat

#
# SDL JOYSTICK MAPPING
#
joy_idx1                  auto
joy_idx2                  auto
joy_idx3                  auto
joy_idx4                  auto
joy_idx5                  auto
joy_idx6                  auto
joy_idx7                  auto
joy_idx8                  auto
sixaxis                   0

#
# SDL LIGHTGUN MAPPING
#
lightgun_index1           auto
lightgun_index2           auto
lightgun_index3           auto
lightgun_index4           auto
lightgun_index5           auto
lightgun_index6           auto
lightgun_index7           auto
lightgun_index8           auto

#
# SDL MOUSE MAPPING
#
mouse_index1              auto
mouse_index2              auto
mouse_index3              auto
mouse_index4              auto
mouse_index5              auto
mouse_index6              auto
mouse_index7              auto
mouse_index8              auto

#
# SDL KEYBOARD MAPPING
#
keyb_idx1                 auto
keyb_idx2                 auto
keyb_idx3                 auto
keyb_idx4                 auto
keyb_idx5                 auto
keyb_idx6                 auto
keyb_idx7                 auto
keyb_idx8                 auto

#
# SDL LOW-LEVEL DRIVER OPTIONS
#
videodriver               auto
renderdriver              auto
audiodriver               auto
gl_lib                    auto

#
# FRONTEND COMMAND OPTIONS
#
dtd                       1
And this is the verbose output:
Code
$ mame -video bgfx -bgfx_backend vulkan -nowindow -verbose umk3
Attempting load of mame.ini
Parsing mame.ini
Attempting load of mame.ini
Parsing mame.ini
Attempting load of horizont.ini
Attempting load of arcade.ini
Attempting load of raster.ini
Attempting load of source/midwunit.ini
Attempting load of umk3.ini
Reading translation file English: 1 strings, original table at word offset 7, translated table at word offset 9
Loaded 0 translations from file English
Starting plugin data...
Attempting load of mame.ini
Parsing mame.ini
Attempting load of mame.ini
Parsing mame.ini
Attempting load of horizont.ini
Attempting load of arcade.ini
Attempting load of raster.ini
Attempting load of source/midwunit.ini
Attempting load of umk3.ini
Available videodrivers: x11 wayland KMSDRM KMSDRM_LEGACY dummy 
Current Videodriver: x11
	Display #0
		Renderdrivers:
			    opengl (0x0)
			 opengles2 (0x0)
			  opengles (0x0)
			  software (0x0)
Available audio drivers: 
	pulseaudio          
	alsa                
	dsp                 
	jack                
	disk                
	dummy               
Build version:      0.229 (unknown)
Build architecure:  
Build defines 1:    SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1 
Build defines 1:    LSB_FIRST=1 PTR64=1 
SDL/OpenGL defines: SDL_COMPILEDVERSION=2014 USE_OPENGL=1 
Compiler defines A: __GNUC__=10 __GNUC_MINOR__=2 __GNUC_PATCHLEVEL__=1 __VERSION__="10.2.1 20201125 (Red Hat 10.2.1-9)" 
Compiler defines B: __amd64__=1 __x86_64__=1 __unix__=1 
Compiler defines C: _FORTIFY_SOURCE=2 __USE_FORTIFY_LEVEL=2 
Enter init_monitors
Adding monitor screen0 (1920 x 1080)
Leave init_monitors
Enter sdlwindow_init

Hints:
	SDL_FRAMEBUFFER_ACCELERATION             (NULL)
	SDL_RENDER_DRIVER                        (NULL)
	SDL_RENDER_OPENGL_SHADERS                (NULL)
	SDL_RENDER_SCALE_QUALITY                 (NULL)
	SDL_RENDER_VSYNC                         (NULL)
	SDL_VIDEO_X11_XVIDMODE                   (NULL)
	SDL_VIDEO_X11_XINERAMA                   (NULL)
	SDL_VIDEO_X11_XRANDR                     (NULL)
	SDL_GRAB_KEYBOARD                        (NULL)
	SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS         (NULL)
	SDL_IOS_IDLE_TIMER_DISABLED              (NULL)
	SDL_IOS_ORIENTATIONS                     (NULL)
	SDL_XINPUT_ENABLED                       (NULL)
	SDL_GAMECONTROLLERCONFIG                 (NULL)
	SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS     (NULL)
	SDL_ALLOW_TOPMOST                        (NULL)
	SDL_TIMER_RESOLUTION                     (NULL)
	SDL_RENDER_DIRECT3D_THREADSAFE           (NULL)
	SDL_VIDEO_ALLOW_SCREENSAVER              (NULL)
	SDL_ACCELEROMETER_AS_JOYSTICK            (NULL)
	SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK   (NULL)
	SDL_VIDEO_WIN_D3DCOMPILER                (NULL)
	SDL_VIDEO_WINDOW_SHARE_PIXEL_FORMAT      (NULL)
	SDL_VIDEO_MAC_FULLSCREEN_SPACES          (NULL)
	SDL_MOUSE_RELATIVE_MODE_WARP             (NULL)
	SDL_RENDER_DIRECT3D11_DEBUG              (NULL)
	SDL_VIDEO_HIGHDPI_DISABLED               (NULL)
	SDL_WINRT_PRIVACY_POLICY_URL             (NULL)
	SDL_WINRT_PRIVACY_POLICY_LABEL           (NULL)
	SDL_WINRT_HANDLE_BACK_BUTTON             (NULL)
Leave sdlwindow_init
Enter sdl_info::create
Audio: Start initialization
Audio: Driver is pulseaudio
Audio: frequency: 48000, channels: 2, samples: 256
sdl_create_buffers: creating stream buffer of 25600 bytes
Audio: End initialization
Keyboard: Start initialization
Input: Adding keyboard #0: System keyboard (device id: System keyboard)
Keyboard: Registered System keyboard
Keyboard: End initialization
Mouse: Start initialization
Input: Adding mouse #0: System mouse (device id: System mouse)
Mouse: Registered System mouse
Mouse: End initialization
Lightgun: Begin initialization
Lightgun: End initialization
Joystick: Start initialization
Joystick: End initialization
Searching font Liberation Sans in -/usr/share/mame/fonts path/s
Matching font: 0x564a2c5b9f80
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip ECD
unzip: /mnt/openmediavault/emu/mame/roms/umk3.zip has no ZIP64 ECD locator
unzip: read /mnt/openmediavault/emu/mame/roms/umk3.zip central directory
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
unzip: found /mnt/openmediavault/emu/mame/roms/umk3.zip in cache
unzip: opened archive file /mnt/openmediavault/emu/mame/roms/umk3.zip
unzip: closing archive file /mnt/openmediavault/emu/mame/roms/umk3.zip and sending to cache
Optional device ':serial_security_sim' not found
Optional memory region ':nvram' not found
Optional memory region ':screen' not found
Optional device ':dcs:data_map_bank' not found
Starting Ultimate Mortal Kombat 3 (rev 1.2) ':'
  (missing dependencies; rescheduling)
Starting Midway W-Unit Video ':video'
Starting Texas Instruments TMS34010 ':maincpu'
  (missing dependencies; rescheduling)
Starting NVRAM ':nvram'
Starting palette ':palette'
Starting Video Screen ':screen'
Starting DCS Audio 8K ':dcs'
  (missing dependencies; rescheduling)
Starting Analog Devices ADSP-2105 ':dcs:dcs'
Starting Timer ':dcs:dcs_reg_timer'
Starting Timer ':dcs:dcs_int_timer'
Starting Speaker ':dcs:mono'
  (missing dependencies; rescheduling)
Starting DMA-driven DAC ':dcs:dac'
Starting Midway Serial PIC Emulation ':serial_security'
Starting Microchip PIC16C57 ':serial_security:pic'
Starting Ultimate Mortal Kombat 3 (rev 1.2) ':'
  (missing dependencies; rescheduling)
Starting Texas Instruments TMS34010 ':maincpu'
Starting DCS Audio 8K ':dcs'
Starting Speaker ':dcs:mono'
Starting Ultimate Mortal Kombat 3 (rev 1.2) ':'
Attempting to parse: default.cfg
Attempting to parse: umk3.cfg
Average speed: 101.76% (22 seconds)
sdl_kill: closing audio
Sound buffer: overflows=18 underflows=2
Enter sdlwindow_exit
Leave sdlwindow_exit

Joined: May 2006
Posts: 142
Likes: 1
F
Senior Member
Offline
Senior Member
F
Joined: May 2006
Posts: 142
Likes: 1
Thanks, that gave me enough info to get as close as feasible from Windows 10. I couldn't use -verbose due to a known problem, and this is using the stock 229 64-bit release for Windows.

I have some very specific and important notes to make on these performance tests.

First off, a CPU-only benchmark (4800H as noted before)

C:\Emu\mame-mainline>.\mame.exe -video bgfx -bgfx_backend vulkan -nowindow -bench 90 umk3
Average speed: 862.81% (89 seconds)


As you'd expect, it keeps up just fine. Let's try a benchmark with video. As noted from https://docs.mamedev.org/commandline/commandline-all.html#mame-commandline-bench we can use most of what -bench actually does without shutting off video performance:

C:\Emu\mame-mainline>mame.exe -video bgfx -bgfx_backend vulkan -nowindow -str 90 -nothrottle -sound none umk3
Average speed: 292.24% (89 seconds)


Let's try turning sound back on, just so we have a clear picture of normalized performance.

C:\Emu\mame-mainline>mame.exe -video bgfx -bgfx_backend vulkan -nowindow -str 90 -nothrottle umk3
Average speed: 291.32% (89 seconds)


Okay, so sound doesn't impact performance much at all. Not unexpected for a modern machine, but still good to be sure that there's not a surprise bottleneck there with the OS and drivers.

I would expect actual performance to be able to hold up to at least 150% on your CPU. Again, these can't be apples to apples since there's an entirely different OS beneath our MAME installs, but this should help you at least have some idea of where to start looking. I may not be able to help you dig too much deeper, but if you provide your own numbers from these same tests, we can probably at least work out where to start looking.

Joined: Mar 2004
Posts: 668
Senior Member
OP Offline
Senior Member
Joined: Mar 2004
Posts: 668
I am going to test it as soon as I figure out why -bench has ceased to output the average speed to the console. Is this a known problem?

ETA: this also affects git master compiled with standard OPTFLAGS.

Last edited by belegdol; 02/27/21 08:34 PM.
Joined: May 2006
Posts: 142
Likes: 1
F
Senior Member
Offline
Senior Member
F
Joined: May 2006
Posts: 142
Likes: 1
There are some VERY interesting results that just came up from additional tests:

It's known that Vulkan runs better with AMD than Nvidia, but there are interesting quirks with bgfx in general on my setup. I ran a lot of tests with power management settings changed around a bit to see how they affected things, and with both video outputs: onboard going to the laptop's display, NV going to an external monitor, both set to 1920x1080 but the monitor is natively 1440p.

On NV, going from Vulkan to D3D11 cut the speed down to 263%. D3D12 gives about the same. OpenGL, on the other hand, goes up to 470%-- all of these were tested with power management set to allow the most performance possible while plugged into a wall outlet. Interestingly, there's no change in performance between 1440p and 1080p. Turning off all effects by using onboard via OpenGL gives me 617% speed which is probably mostly limited by CPU.

There's really nothing here suggesting your onboard shouldn't be able to pull at least 150-200% with effects.

As for -bench, I'm not aware of any reasons it should not work correctly from Linux, but I'll take a quick look at MAMETesters.

Edit: Just to be absolutely clear on why the two displays were set up as they were-- the type-C port goes directly to the NV video card, so hooking up a monitor to that bypasses the PCIe framebuffer passing bottleneck that you'd get sending it to the onboard display. The HDMI port goes straight to the AMD chip, as does the built-in display. Setting it as I did allows both cards to run at best possible performance.

Edit 2: For reference, I've done all my tests on the 2020 model Asus A15 with the AMD 4800H, 32GB of RAM, and the 2060. It's not a top-end laptop, but it's actually surprisingly good and utterly blows away my desktop i7-7700K in CPU.

Last edited by Firehawke; 02/27/21 09:10 PM.
1 member likes this: belegdol
Joined: Mar 2001
Posts: 16,808
Likes: 32
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,808
Likes: 32
-bench works on macOS, so it should be OK on Linux as well. I'll check on my Fedora machine later.

Joined: Mar 2004
Posts: 668
Senior Member
OP Offline
Senior Member
Joined: Mar 2004
Posts: 668
With -str 90 and video active mame exits right after loading the rom - this is probably why the average speed is not getting printed out to the console. I am compiling git master to exclude this being caused by the packaging.

Last edited by belegdol; 02/27/21 08:43 PM.
Joined: May 2006
Posts: 142
Likes: 1
F
Senior Member
Offline
Senior Member
F
Joined: May 2006
Posts: 142
Likes: 1
That's a very reasonable test, IMO. Definitely interested in hearing what's going on there.

Joined: Mar 2004
Posts: 668
Senior Member
OP Offline
Senior Member
Joined: Mar 2004
Posts: 668
I compiled with
Code
$ make -j6 OPTIMIZE=2 PYTHON_EXECUTABLE=python3 NOWERROR=1 VERBOSE=1 REGENIE=1 SOURCES=src/mame/drivers/midwunit.cpp     SDL_INI_PATH=/etc/mame;
The problem is still there. Let's see will see what no ini path and standard -O3 do.

Joined: May 2006
Posts: 142
Likes: 1
F
Senior Member
Offline
Senior Member
F
Joined: May 2006
Posts: 142
Likes: 1
I won't be able to help too much with troubleshooting on Linux, but I'm pretty sure RB will be able to pick up from here. I'll keep monitoring this, though, and I'll provide what information I can from the Windows side of things.

Joined: Mar 2004
Posts: 668
Senior Member
OP Offline
Senior Member
Joined: Mar 2004
Posts: 668
You already helped a lot, thanks! Windows performance can reasonably be seen as theoretical maximum, I hope I will be able to post benchmark values soon. -bench used to work with my packages a while ago, it is broken on 0.228 and 0.229 at least.

ETA1: 0.224 package has -bench 90 working.
ETA2: 0.226 package has bench working too. Let's check 0.227.
ETA3: 0.227 is the last package with -bench resp. -str working as intended. 0.228 exits as soon as the rom gets loaded.
ETA4: it is something in the ini mucking up the -bench/-str. I compiled git master with
Code
make -j6 PYTHON_EXECUTABLE=python3 NOWERROR=1 VERBOSE=1 REGENIE=1 SOURCES=src/mame/drivers/midwunit.cpp
and the problem went away. As soon as I added -inipath to the command line, it came back. Any ideas what might be going on?

Last edited by belegdol; 02/27/21 09:16 PM.
Joined: May 2006
Posts: 142
Likes: 1
F
Senior Member
Offline
Senior Member
F
Joined: May 2006
Posts: 142
Likes: 1
I wonder if that isn't related to the -verbose problem that popped up on Windows a month ago, since that goes off into the weeds for no explicable reason.

What GCC version are you running? (gcc -v)

Joined: Mar 2001
Posts: 16,808
Likes: 32
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,808
Likes: 32
If adding -inipath breaks it, I would assume it's picking up an ini in that path that's causing the problem.

Joined: Mar 2004
Posts: 668
Senior Member
OP Offline
Senior Member
Joined: Mar 2004
Posts: 668
I figured it out - -bench/-str breakage was caused by autosave enabled in the ini. I am not sure whether this is intended or not but it is out of scope of the issue at hand. Now, back to benchmarks. With wayland I am getting:
Code
$ mame -video bgfx -bgfx_backend vulkan -nowindow -bench 90 -noautosave umk3
Average speed: 731.03% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -nowindow -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 54.73% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -window -bench 90 -noautosave umk3
Average speed: 748.82% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -window -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 444.91% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -bgfx_screen_chains default -nowindow -bench 90 -noautosave umk3
Average speed: 728.93% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -bgfx_screen_chains default -nowindow -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 109.12% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -bgfx_screen_chains default -window -bench 90 -noautosave umk3
Average speed: 739.98% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -bgfx_screen_chains default -window -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 640.75% (89 seconds)
It appears that it is the video output, scaling to full screen and hlsl screen chain killing the performance.

ETA1: same results when running under X.org:
Code
$ mame -video bgfx -bgfx_backend vulkan -nowindow -bench 90 -noautosave umk3
Average speed: 736.35% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -nowindow -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 113.99% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -window -bench 90 -noautosave umk3
Average speed: 734.86% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -window -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 447.35% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -bgfx_screen_chains default -nowindow -bench 90 -noautosave umk3
Average speed: 741.29% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -bgfx_screen_chains default -nowindow -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 657.48% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -bgfx_screen_chains default -window -bench 90 -noautosave umk3
Average speed: 744.40% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -bgfx_screen_chains default -window -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 684.39% (89 seconds)
Unsurprisingly, the -bench runs are more or less the same speed. Scaling to full screen is what appears to cause a huge performance hit on wayland as using hlsl or default screen chain appears to have the same cost on both X.org and wayland when running in windowed mode.

ETA2: Switching the bgfx backend to opengl yields the following on X.org:
Code
$ mame -video bgfx -bgfx_backend opengl -bgfx_screen_chains default -nowindow -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 677.78% (89 seconds)
$ mame -video bgfx -bgfx_backend opengl -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 152.49% (89 seconds)
and the following on Wayland:
Code
$ mame -video bgfx -bgfx_backend opengl -bgfx_screen_chains default -nowindow -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 676.23% (89 seconds)
$ mame -video bgfx -bgfx_backend opengl -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 152.66% (89 seconds)
So opengl backend performance appears to be independent of which windowing system is being used.

Last edited by belegdol; 02/28/21 10:15 AM.
Joined: May 2006
Posts: 142
Likes: 1
F
Senior Member
Offline
Senior Member
F
Joined: May 2006
Posts: 142
Likes: 1
I'm in the process of running a second set of benchmarks in a controlled environment via batch files. I'll do another post with details when I'm done.

Joined: May 2006
Posts: 142
Likes: 1
F
Senior Member
Offline
Senior Member
F
Joined: May 2006
Posts: 142
Likes: 1
Ran at least ten sets of benchmarks using the following batch file:

Code
@echo off

echo GDI >> bench.txt
echo mame.exe -video gdi -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
     mame.exe -video gdi -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
echo: >> bench.txt

echo D3D >> bench.txt
echo mame.exe -video d3d -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
     mame.exe -video d3d -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
echo: >> bench.txt

echo D3D HLSL >> bench.txt
echo mame.exe -video d3d -nofilter -hlsl_enable -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
     mame.exe -video d3d -nofilter -hlsl_enable -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
echo: >> bench.txt

echo OpenGL >> bench.txt
echo mame.exe -video opengl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
     mame.exe -video opengl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
echo: >> bench.txt

echo OpenGL >> bench.txt
echo mame.exe -video opengl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
     mame.exe -video opengl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
echo: >> bench.txt

echo BGFX OpenGL >> bench.txt
echo mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend opengl -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
     mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend opengl -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
echo: >> bench.txt

echo BGFX D3D11 >> bench.txt
echo mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d11 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
     mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d11 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
echo: >> bench.txt

echo BGFX D3D12 >> bench.txt
echo mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d12 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
     mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d12 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
echo: >> bench.txt

echo BGFX Vulkan >> bench.txt
echo mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend vulkan -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
     mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend vulkan -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
echo: >> bench.txt

echo BGFX Auto >> bench.txt
echo mame.exe -resolution0 1920x1080 -video bgfx -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
     mame.exe -resolution0 1920x1080 -video bgfx -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 >> bench.txt
echo: >> bench.txt

I ran the test three times. The numbers were continually within margin of error across the three runs for MOST of the tests, with only a few FPS difference at most on those. As a result, I'm going to provide only one set of numbers to avoid this post getting any spammier than it already is. Note that I manually forced mame.exe to go to the AMD iGPU instead of the NV one.

Code
BGFX Vulkan 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend vulkan -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 323.60% (89 seconds)

It seems like BGFX has absolutely weird discrepancies in the results of "vulkan", though. I got a really high speed on one occasion, others it's maxing out at 109.65%. This is particularly weird as nothing has changed between runs, and it will show the extremely high speed at seemingly random maybe one out of ten or so tried.

Code
Average speed: 323.60% (89 seconds)
Average speed: 109.55% (89 seconds)
Average speed: 109.55% (89 seconds)
Average speed: 109.55% (89 seconds)

Last edited by Firehawke; 03/01/21 03:07 AM.
Joined: May 2006
Posts: 142
Likes: 1
F
Senior Member
Offline
Senior Member
F
Joined: May 2006
Posts: 142
Likes: 1
Tafoid reminded me to check one of the most basic, obvious things-- vsync. Which is actually turned on, so that would have absolutely affected performance.

That's embarrassing!

I'll revisit these benchmarks while I'm off in physical therapy and post the results when I get home. Sometimes the obvious thing is right under your nose and you can't even see it.

Edit: I've got it running three passes on the current official release and a current in-progress build from last night as of now.

Last edited by Firehawke; 03/01/21 06:01 PM.
Joined: May 2006
Posts: 142
Likes: 1
F
Senior Member
Offline
Senior Member
F
Joined: May 2006
Posts: 142
Likes: 1
Made sure to check vsync, which was actually off for the last official release and on for the in-development branch (and was turned off at that point)
Here's the results. Without looking too closely, it looks like there's not a lot of difference there though it's interesting that BGFX's auto doesn't choose the best backend with the Vega iGPU.

Don't think I'm going to be able to squeeze anything more out of this on Windows at least, but on Linux there could be some definite driver issues.

Code
0.229 (mame0229-61-g91c650a5c14)
Pass 1 

GDI 
mame.exe -video gdi -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 323.58% (89 seconds)
 
D3D 
mame.exe -video d3d -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 670.01% (89 seconds)
 
D3D HLSL 
mame.exe -video d3d -nofilter -hlsl_enable -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 587.93% (89 seconds)
 
OpenGL 
mame.exe -video opengl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.51% (89 seconds)
 
BGFX OpenGL 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend opengl -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 543.97% (89 seconds)
 
BGFX D3D11 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d11 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.56% (89 seconds)
 
BGFX D3D12 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d12 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
BGFX Vulkan 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend vulkan -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 325.92% (89 seconds)
 
BGFX Auto 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
 
Pass 2 
GDI 
mame.exe -video gdi -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 323.03% (89 seconds)
 
D3D 
mame.exe -video d3d -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 693.83% (89 seconds)
 
D3D HLSL 
mame.exe -video d3d -nofilter -hlsl_enable -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 587.86% (89 seconds)
 
OpenGL 
mame.exe -video opengl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.51% (89 seconds)
 
BGFX OpenGL 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend opengl -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 542.58% (89 seconds)
 
BGFX D3D11 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d11 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
BGFX D3D12 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d12 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.56% (89 seconds)
 
BGFX Vulkan 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend vulkan -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 326.41% (89 seconds)
 
BGFX Auto 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
 
Pass 3 
GDI 
mame.exe -video gdi -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 326.03% (89 seconds)
 
D3D 
mame.exe -video d3d -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 690.47% (89 seconds)
 
D3D HLSL 
mame.exe -video d3d -nofilter -hlsl_enable -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 588.21% (89 seconds)
 
OpenGL 
mame.exe -video opengl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.51% (89 seconds)
 
BGFX OpenGL 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend opengl -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 543.17% (89 seconds)
 
BGFX D3D11 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d11 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.56% (89 seconds)
 
BGFX D3D12 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d12 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
BGFX Vulkan 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend vulkan -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 314.50% (89 seconds)
 
BGFX Auto 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.56% (89 seconds)
 
 
0.229 (mame0229)
Pass 1 

GDI 
mame.exe -video gdi -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 325.54% (89 seconds)
 
D3D 
mame.exe -video d3d -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 761.22% (89 seconds)
 
D3D HLSL 
mame.exe -video d3d -nofilter -hlsl_enable -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 521.65% (89 seconds)
 
OpenGL 
mame.exe -video opengl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 623.84% (89 seconds)
 
BGFX OpenGL 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend opengl -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 120.92% (89 seconds)
 
BGFX D3D11 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d11 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
BGFX D3D12 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d12 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
BGFX Vulkan 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend vulkan -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 311.77% (89 seconds)
 
BGFX Auto 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
 
Pass 2 
GDI 
mame.exe -video gdi -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 328.77% (89 seconds)
 
D3D 
mame.exe -video d3d -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 761.09% (89 seconds)
 
D3D HLSL 
mame.exe -video d3d -nofilter -hlsl_enable -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 522.14% (89 seconds)
 
OpenGL 
mame.exe -video opengl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 623.12% (89 seconds)
 
BGFX OpenGL 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend opengl -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 121.41% (89 seconds)
 
BGFX D3D11 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d11 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
BGFX D3D12 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d12 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
BGFX Vulkan 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend vulkan -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 320.65% (89 seconds)
 
BGFX Auto 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
BGFX Auto 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
BGFX Auto 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
Pass 3 
GDI 
mame.exe -video gdi -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 325.05% (89 seconds)
 
D3D 
mame.exe -video d3d -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 754.10% (89 seconds)
 
D3D HLSL 
mame.exe -video d3d -nofilter -hlsl_enable -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 528.52% (89 seconds)
 
OpenGL 
mame.exe -video opengl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 620.45% (89 seconds)
 
BGFX OpenGL 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend opengl -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 121.38% (89 seconds)
 
BGFX D3D11 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d11 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
BGFX D3D12 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend d3d12 -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 
BGFX Vulkan 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_backend vulkan -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 313.29% (89 seconds)
 
BGFX Auto 
mame.exe -resolution0 1920x1080 -video bgfx -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none umk3 
Average speed: 109.55% (89 seconds)
 

Joined: Mar 2004
Posts: 668
Senior Member
OP Offline
Senior Member
Joined: Mar 2004
Posts: 668
This is very helpful, thanks! Looks like a driver issue indeed. For comparison this is what I am getting on my another machine (Ryzen 5 5600x, NVIDIA RTX 2070). X.org only as there is no Wayland for nvidia yet:
Code
$ mame -video bgfx -bgfx_backend vulkan -bgfx_screen_chains default -window -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 928.13% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -bgfx_screen_chains default -nowindow -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 900.49% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -bgfx_screen_chains hlsl -window -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 917.46% (89 seconds)
$ mame -video bgfx -bgfx_backend vulkan -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 843.10% (89 seconds)
$ mame -video bgfx -bgfx_backend opengl -bgfx_screen_chains default -window -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 933.27% (89 seconds)
$ mame -video bgfx -bgfx_backend opengl -bgfx_screen_chains default -nowindow -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 898.42% (89 seconds)
$ mame -video bgfx -bgfx_backend opengl -bgfx_screen_chains hlsl -window -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 920.90% (89 seconds)
$ mame -video bgfx -bgfx_backend opengl -bgfx_screen_chains hlsl -nowindow -str 90 -nothrottle -sound none -noautosave umk3
Average speed: 890.63% (89 seconds)
Vulkan and OpenGL are within a margin of error from each other, and there is no significant cost to either hlsl chain or to going fullscreen. I guess the AMD mesa drivers have still some way to go.

Page 1 of 3 1 2 3

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
2 members (Duke, Dorando), 24 guests, and 2 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,974
Posts117,896
Members5,001
Most Online890
Jan 17th, 2020
Forum Host
These forums are hosted by www.retrogamesformac.com
Forum hosted by www.retrogamesformac.com