Previous Thread
Next Thread
Print Thread
Page 2 of 2 1 2
Re: Mojave major video issues [Re: will] #114045
10/03/18 06:37 PM
10/03/18 06:37 PM
Joined: May 1999
Posts: 554
Luxembourg
Carbon Offline
Senior Member
Carbon  Offline
Senior Member
Joined: May 1999
Posts: 554
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: 180
Turin, North Italy
M
MacBox360 Offline
Senior Member
MacBox360  Offline
Senior Member
M
Joined: Jan 2007
Posts: 180
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,235
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,235
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: 180
Turin, North Italy
M
MacBox360 Offline
Senior Member
MacBox360  Offline
Senior Member
M
Joined: Jan 2007
Posts: 180
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.
Re: Mojave major video issues [Re: will] #114510
12/30/18 08:21 PM
12/30/18 08:21 PM
Joined: Jan 2007
Posts: 180
Turin, North Italy
M
MacBox360 Offline
Senior Member
MacBox360  Offline
Senior Member
M
Joined: Jan 2007
Posts: 180
Turin, North Italy
I join again this thread because I found an issue on SDLmame for OSX compared to the Windows binary: the impossibility to have a smooth 60Hz refresh on all games.
Here are the settings I use on Windows x64 SDLmame (MacMini late 2011 i7 with clean Win7 install) for a perfect smooth 60 Hz screen refresh:

throttle disabled
syncrefresh enabled
waitvsync enabled

The very same settings on OSX seems to ignore the "syncrefresh" argument and the game speed goes over the 100% (as expected with "throttle" disabled but "syncrefresh" should override that value), this is very annoying expecially on those games that uses a lot of screen scrolling where a smooth movement would be highly desirable. The other options "throttle" and "waitvsync" instead works correctly.

Last edited by MacBox360; 12/30/18 08:21 PM.
Re: Mojave major video issues [Re: will] #114511
12/30/18 08:33 PM
12/30/18 08:33 PM
Joined: Mar 2001
Posts: 16,235
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,235
USA
My understanding is that you can't change the refresh rate on macOS (Apple barely lets you even change the resolution these days), so syncrefresh will just run the game at 75 Hz or whatever your desktop is set to.

Re: Mojave major video issues [Re: R. Belmont] #114512
12/30/18 08:54 PM
12/30/18 08:54 PM
Joined: Jan 2007
Posts: 180
Turin, North Italy
M
MacBox360 Offline
Senior Member
MacBox360  Offline
Senior Member
M
Joined: Jan 2007
Posts: 180
Turin, North Italy
Yes, the refresh rate is not more available as choice on later OSX versions but my actual setup is 1920x1080@60Hz, I am quite sure about the refresh frequency value because it is an info I can read on OSD display menu of my monitor.
Also, if the desktop refresh would be 75 Hz (instead of 60 Hz) I shoud have a 75/60 = 125% speed increase while on Frogger (for example) I have a speed up of 774% so iI guess the "syncrefresh" switch is simply ignored on OSX (or at least under Mojave).

Last edited by MacBox360; 12/30/18 09:08 PM.
Re: Mojave major video issues [Re: will] #114515
12/30/18 11:17 PM
12/30/18 11:17 PM
Joined: Feb 2004
Posts: 2,051
Sydney, Australia
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,051
Sydney, Australia
The "waitvsync" option behaves differently on Mac to Windows. On Windows it literally blocks until vsync when the application draws a frame, so it will limit the maximum application frame rate to the monitor's refresh rate. However on Mac it's effectively transparent buffering - it lets the application draw as fast as it wants and "samples" a frame every vsync, so it just drops frames if the application draws them faster than the refresh rate.

Re: Mojave major video issues [Re: Vas Crabb] #114517
12/31/18 07:15 AM
12/31/18 07:15 AM
Joined: Jan 2007
Posts: 180
Turin, North Italy
M
MacBox360 Offline
Senior Member
MacBox360  Offline
Senior Member
M
Joined: Jan 2007
Posts: 180
Turin, North Italy
Perfectly clear but... do this means (if I understand well) that on Mac a perfect smooth scrolling is not more possible? I remember well that in the past releases of SDLmame I could have the very same behaviour of Windows also with the Mac version of SDLmame, I could be wrong but I suspect that this is an issue with Mojave mainly.
The problem for me is not really "waitvsync" (it works well, it effectively fixes screen tearing) but "syncrefresh" that does not throttle the framerate lke the Windows version do.

Last edited by MacBox360; 12/31/18 09:48 AM.
Page 2 of 2 1 2

Moderated by  R. Belmont 

Who's Online Now
2 registered members (rfka01, shattered), 120 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,666
Posts113,616
Members4,850
Most Online324
Dec 20th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.069s Queries: 16 (0.047s) Memory: 5.7134 MB (Peak: 5.9280 MB) Zlib enabled. Server Time: 2019-07-22 21:04:16 UTC