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.

Page 1 of 3 1 2 3

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
1 members (Vas Crabb), 28 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