Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns --- Bug Reports --- Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Mame game speed problems - throttle issue?  (Read 341 times)

0 Members and 1 Guest are viewing this topic.

thet0ast3r

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 63
  • Last login:Today at 04:00:19 pm
  • Chihiro ftw
Mame game speed problems - throttle issue?
« on: February 14, 2019, 04:46:13 pm »
Hi, I recently moved to linux (ubuntu 18.04 LTS) and tried mame with the game surf planet (surfplnt.zip). As i recall, I could always play it on full speed with my i7 6700k. However, I only got to 84 % of max. speed on the latest mame release. Now, having toyed with settings for some time, i got it to about 94 % speed with frameskip, etc. I just found that if i disabled the option throttle, the game would run at 160 % speed. So my cpu should not be the issue here. Could it be that this is some weird linux scheduling thing, where mame yields and doesn`t get scheduled in time again to keep up with the 100%?
Maybe its just a stupid mistake on my side ... any suggestions?

greetings :)
thet0ast3r

Doozer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 398
  • Last login:April 10, 2019, 01:27:45 am
  • Z80 ERROR
Re: Mame game speed problems - throttle issue?
« Reply #1 on: February 21, 2019, 03:23:05 pm »
Hi,

Do you have glsl enabled? Try to disable any HLSL feature, it is not fully working in current GM version.

thet0ast3r

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 63
  • Last login:Today at 04:00:19 pm
  • Chihiro ftw
Re: Mame game speed problems - throttle issue?
« Reply #2 on: February 22, 2019, 03:12:57 pm »
Thanks for your reply! I just tried it, and it seems this was the issue. I would have never come up with this :) I disabled gl_vbo , gl_pbo & gl_glsl_filter and now it runs @ 99.8% speed. Good enough.

Greetings
thet0ast3r

thet0ast3r

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 63
  • Last login:Today at 04:00:19 pm
  • Chihiro ftw
Re: Mame game speed problems - throttle issue?
« Reply #3 on: February 24, 2019, 05:33:20 am »
Just a quick update: I disabled all opengl settings in the mame config file. It worked afterwards, I was happy and went to bed. The next day, I wanted to play a little, aaand the it`s back. Speed at roughly 90%, just like before. Enabling/disabling glsl settings did not help this time.  :banghead: I cannot understand this anymore...  ???
thet0ast3r

phulshof

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 51
  • Last login:Today at 04:31:38 pm
    • Pieter's Webpage
Re: Mame game speed problems - throttle issue?
« Reply #4 on: February 25, 2019, 07:53:55 am »
Which version of MAME are you running, and can you show us your mame.ini file? Are you sure you're using $HOME/.mame/mame.ini, and not a local one by accident?

Sent from my SM-G950F using Tapatalk


thet0ast3r

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 63
  • Last login:Today at 04:00:19 pm
  • Chihiro ftw
Re: Mame game speed problems - throttle issue?
« Reply #5 on: February 25, 2019, 10:23:29 am »
I`m using version 0.195

renamed the mame.ini to mame.txt due to upload restrictions.

Here`s some extra information:

Available videodrivers: x11 mir wayland dummy
Current Videodriver: x11
   Display #0
      Renderdrivers:
             opengl (0x0)
          opengles2 (0x0)
           software (0x0)
   Display #1
      Renderdrivers:
             opengl (0x0)
          opengles2 (0x0)
           software (0x0)
Available audio drivers:
   pulseaudio         
   alsa               
   sndio               
   dsp                 
   disk               
   dummy               
Build version:      0.195 (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=2008 USE_OPENGL=1
Compiler defines A: __GNUC__=7 __GNUC_MINOR__=3 __GNUC_PATCHLEVEL__=0 __VERSION__="7.3.0"
Compiler defines B: __amd64__=1 __x86_64__=1 __unix__=1
Compiler defines C: __USE_FORTIFY_LEVEL=0
Enter init_monitors
Adding monitor screen0 (1920 x 1080)
Adding monitor screen1 (1680 x 1050)
Leave init_monitors
Enter sdlwindow_init
Using SDL multi-window OpenGL driver (SDL 2.0+)

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
OpenGL: X.Org
OpenGL: AMD PITCAIRN (DRM 2.50.0, 4.15.0-45-generic, LLVM 7.0.0)
OpenGL: 4.4 (Compatibility Profile) Mesa 18.2.2
OpenGL: texture rectangle supported
OpenGL: non-power-of-2 textures supported (new method)
OpenGL: vertex buffer supported
OpenGL: pixel buffers supported
OpenGL: framebuffer object supported
OpenGL: GLSL supported, but disabled
OpenGL: max texture size 16384 x 16384
Leave renderer_ogl::create
Audio: Start initialization
Audio: Driver is pulseaudio
Audio: frequency: 48000, channels: 2, samples: 512
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
Joystick: Start initialization
Joystick: End initialization
Searching font Liberation Sans in -/usr/share/games/mame/fonts path/s
Matching font: /usr/share/fonts/truetype/liberation2/LiberationSans-Regular.ttf
OpenGL: VBO supported
OpenGL: PBO supported
OpenGL: FBO supported
OpenGL: using vid filter: 1
Region ':user1' created
Starting No Driver Loaded ':'
  (missing dependencies; rescheduling)
Starting Video Screen ':screen'
Starting No Driver Loaded ':'
Attempting to parse: default.cfg
Attempting to parse: ___empty.cfg
sdl_kill: closing audio
Enter sdlwindow_exit
Leave sdlwindow_exit
thet0ast3r