Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
Mojave major video issues #114030
10/02/18 04:16 PM
10/02/18 04:16 PM
Joined: Sep 2000
Posts: 202
DC, USA
W
will Offline OP
Senior Member
will  Offline OP
Senior Member
W
Joined: Sep 2000
Posts: 202
DC, USA
Managed to compile MAME 0.202 on my Mac running Mojave. Thanks for the Genie fix!

However when I start a game the display stays black! I found -video bgfx works but -video soft and video OpenGL do not work at all for my setup.

If I disconnect my second monitor then all video modes appear to be working normally.

With my 2 displays attached again, I tried -numscreens 0 and -numscreens 1 with solid black screen, and with -numscreens 2 I just get a solid red display.

Even with -video bgfx enabled, dual screen games are totally broken now. The two displays show up overlapping each other on the main screen and then I get a crash, segmentation fault 11

I have an iMac Retina 5K 27" from 2017 with 4.2GHz Intel Core i7 and Radeon Pro 580 8192MB running macOS Mojave 10.14

Including relevant section of -verbose

Code

Setting SDL_VIDEO_GL_DRIVER = '/System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib' ...
Available videodrivers: cocoa dummy 
Current Videodriver: cocoa
	Display #0
		Renderdrivers:
			    opengl (0x0)
			  software (0x0)
	Display #1
		Renderdrivers:
			    opengl (0x0)
			  software (0x0)
Available audio drivers: 
	coreaudio           
	disk                
	dummy               
Build version:      0.202 (unknown)
Build architecure:  
Build defines 1:    SDLMAME_UNIX=1 SDLMAME_MACOSX=1 SDLMAME_DARWIN=1 
Build defines 1:    LSB_FIRST=1 PTR64=1 
SDL/OpenGL defines: SDL_COMPILEDVERSION=2007 USE_OPENGL=1 
Compiler defines A: __GNUC__=4 __GNUC_MINOR__=2 __GNUC_PATCHLEVEL__=1 __VERSION__="4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.2)" 
Compiler defines B: __amd64__=1 __x86_64__=1 
Compiler defines C: _FORTIFY_SOURCE=2 
Enter init_monitors
Adding monitor screen0 (2560 x 1440)
Adding monitor screen1 (1920 x 1200)
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



=will=
Re: Mojave major video issues [Re: will] #114031
10/02/18 04:29 PM
10/02/18 04:29 PM
Joined: Mar 2001
Posts: 16,070
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,070
USA
Just to clarify: this configuration is broken on Mojave but it worked on High Sierra?

Re: Mojave major video issues [Re: will] #114032
10/02/18 05:29 PM
10/02/18 05:29 PM
Joined: Sep 2000
Posts: 202
DC, USA
W
will Offline OP
Senior Member
will  Offline OP
Senior Member
W
Joined: Sep 2000
Posts: 202
DC, USA
Just tried MAME 0.201 with Mojave and all video modes are working fine. With 0.202 the only mode that works is -video bgfx

Dual monitors appears to be broken with both MAME versions under Mojave. Could also be the rolling back SDL framework.


=will=
Re: Mojave major video issues [Re: will] #114033
10/02/18 05:53 PM
10/02/18 05:53 PM
Joined: Mar 2001
Posts: 16,070
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,070
USA
Ok. 0.201 works and 0.202 doesn't, with the same SDL version? That's really strange because the OpenGL path wasn't touched in 0.202.

Multiple monitors is broken on all OSes right now, including Windows. Most developers switched to a single large 4k or 5k display a long time ago so it's hard to get quality debugging on multiple display setups.

Re: Mojave major video issues [Re: will] #114035
10/02/18 08:56 PM
10/02/18 08:56 PM
Joined: Sep 2000
Posts: 202
DC, USA
W
will Offline OP
Senior Member
will  Offline OP
Senior Member
W
Joined: Sep 2000
Posts: 202
DC, USA
Yes I'm sticking with SDL 2.0.7 until told otherwise. So yes 0.202 does not work (except for bgfx) while 0.201 does work with any video option.

So OpenGL aside, how come software rendering does not work? For me, with 2 monitors attached, -video soft works with 0.201 but not 0.202.


=will=
Re: Mojave major video issues [Re: will] #114036
10/02/18 09:04 PM
10/02/18 09:04 PM
Joined: Mar 2001
Posts: 16,070
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,070
USA
I don't know. soft and opengl were not changed in MAME to my knowledge between 0.201 and 0.202, although I'll double-check that.

Re: Mojave major video issues [Re: will] #114037
10/03/18 01:07 AM
10/03/18 01:07 AM
Joined: Mar 2001
Posts: 16,070
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,070
USA
Ok. First off, for -video soft and -video opengl on Mojave, you need SDL 2.0.9, which is currently in beta. You can get the beta here: http://www.libsdl.org/tmp/download-2.0.php

The good news is that you don't need to recompile to get the Mojave fixes, just overwriting your existing /Library/Frameworks/SDL.Framework with the new one will get MAME running.

Secondly, to compile against SDL 2.0.8 and later on the Mac, you'll need this fix: https://github.com/mamedev/mame/commit/4148447f3af189595e6344e134a724311fa23063

Re: Mojave major video issues [Re: will] #114042
10/03/18 05:12 PM
10/03/18 05:12 PM
Joined: May 1999
Posts: 546
Luxembourg
Carbon Offline
Senior Member
Carbon  Offline
Senior Member
Joined: May 1999
Posts: 546
Luxembourg
I replaced my SDL framework with version 2.0.9. When I start MAME the UI is displayed and woorks fine, but when I launch a game, the screen stays black, but emulation is running (I can insert coins, I hear the noises and music is played). When I stop the emulation, the window resizes to UI width and height, but it stays black from then on. I have to restart MAME to display at least the UI again. Sometimes 2 restarts are needed.

I also tried to recompile MAME with the new version of SDL installed, but that resulted in the exact same executable and same results when running.

This is on a iMac Pro running Mojave.

Re: Mojave major video issues [Re: will] #114043
10/03/18 05:33 PM
10/03/18 05:33 PM
Joined: Mar 2001
Posts: 16,070
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,070
USA
I'm not sure what to tell you - SDL 2.0.9 is specifically advertised as "fix black screen on Mojave", and it worked for me, 100% of the time, before and after in 10 tests each.

Re: Mojave major video issues [Re: will] #114044
10/03/18 06:25 PM
10/03/18 06:25 PM
Joined: May 1999
Posts: 546
Luxembourg
Carbon Offline
Senior Member
Carbon  Offline
Senior Member
Joined: May 1999
Posts: 546
Luxembourg
The SDL framework I downloaded is from October 1st, 2018 and is marked as stable.

Is there a newer beta perhaps as you stated in your post it'd be still in beta?

Re: Mojave major video issues [Re: will] #114045
10/03/18 06:37 PM
10/03/18 06:37 PM
Joined: May 1999
Posts: 546
Luxembourg
Carbon Offline
Senior Member
Carbon  Offline
Senior Member
Joined: May 1999
Posts: 546
Luxembourg
OK, found the culprit: I replaced my BGFX folder with the one from the 0.202 distribution. Everything works now fine.

Sorry for the confusion.

Re: Mojave major video issues [Re: will] #114148
10/31/18 03:14 PM
10/31/18 03:14 PM
Joined: Jan 2007
Posts: 177
Turin, North Italy
M
MacBox360 Offline
Senior Member
MacBox360  Offline
Senior Member
M
Joined: Jan 2007
Posts: 177
Turin, North Italy
Hello,
I am using SDLmame on two Macs, one MacPro 2012 with a Radeon HD5870 and a MacMini 2011 with dedicated Radeon 6630M, both of them running OSX 10.13.6.
I have always compiled separately the source on both machines to be sure everything was optimized for the best experience.
However I was very disappointed about the performance of some games like Ridge Racer (and Rave Racer) that are running with a heavy stuttering (no matter about the video settings, it sucks both in soft rendering and metal/opengl rendering) but since there are other 3D games that instead are running smoothly I always thought it was a driver issue, that will be solved sometimes in the near future MAME releases.
Recently I have changed the GPU in the MacPro with one required by Mojave and the Ridge Racer performance was still worse as usual. Then I installed Moajave over existing High Sierra OSX and... miracle! Suddenly all the games of Namco System 22 were running smooth as silk with a steady, rock solid 60Hz refresh (same settings as before). This with the same (0.202) SDLmame binary and SDL 2.0.8 installed.
So it seems that if I want better SDLmame performance the Mojave install is mandatory but while on the MacPro is an easy task (a GPU swap is all I needed) on the MacMini this will not possible, a new machine is required.
Since now I built all the SDLmame leaving makefile options as default, but I wonder if there are some options I need to change before compiling to have the same good performance also under OSX 10.13, this would save me from purchasing a new MacMini (or at least one of the previous generation where the Mojave install is still possible).

Any suggestion will be greatly appriciated.

Re: Mojave major video issues [Re: will] #114149
10/31/18 04:13 PM
10/31/18 04:13 PM
Joined: Mar 2001
Posts: 16,070
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,070
USA
Note that the System 22 driver has been significantly optimized (and bugfixed!) for the next release; it used to run well under 100% even on my MacBook Pro and now runs 100% no problems. So before you upgrade (even though the new MacMinis are pretty tempting!) wait for that release.

Re: Mojave major video issues [Re: will] #114153
11/02/18 10:05 AM
11/02/18 10:05 AM
Joined: Jan 2007
Posts: 177
Turin, North Italy
M
MacBox360 Offline
Senior Member
MacBox360  Offline
Senior Member
M
Joined: Jan 2007
Posts: 177
Turin, North Italy
Well, after the last SDLmame release I have done other tests and I found that almost all drivers where 3D stuff is involved have a dramatic boost in speed under Mojave while under High Sierra (and previous OSes) they are sluggish.
This is true, for axample not only for System22 games but also for the Ultra64 based Midway games, now all of them are a very really enjoyable experience so for me the Mojave upgrade has been a big thumbs up!

I don't know exactly where the problem is because both OSX 10.13 and 10.14 were installed on my Macs from scratch so no other apps or settings were slowing down the machines, also the build of SDLmame was done with the exactly same compile options and the SDL library was absolutely the same, and so the Xcode version. This happens also with binary builds from other people like the ones available, for example, from sdlmame.lngn.net so I know for sure is not a problem of my compilers.
Also is not GPU brand related because I have experienced the same thing both with a nVidia GTX680 and a ADM HD7950.

I am quite sure that this performance degradation happened since a certain MAME version on, because I remember very well that Ridge Racer was running smoothly and at a certain point it becomes stuttering both on audio and video refresh.
I also regularly checked the forum to see if other users were experiencing the same issue but no one come out to talk about this so always thought it was a driver issue to be fixed in the future.

Well, it seems in the end it has been fixed by Apple :-) Of course the Windows version of SDLmame never suffered this problem, but the very strange thing is that on OSX it made no difference for metal/opengl/soft video acceleration setting, it was like somewhere there was an handbrake on the speed of those 3D games.

Last edited by MacBox360; 11/02/18 10:06 AM.
Page 1 of 2 1 2

Moderated by  R. Belmont 

Who's Online Now
3 registered members (Pernod, 2 invisible), 119 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,606
Posts112,517
Members4,828
Most Online296
Dec 5th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.064s Queries: 14 (0.019s) Memory: 5.7639 MB (Peak: 6.0137 MB) Zlib enabled. Server Time: 2018-12-16 15:18:13 UTC