Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
MAME BGFX - metal (Mac API) crashes since MAME 0.177 ever since #1032
Hi, I have been following the BGFX development in MAME since its introduction into the official builds, and it just rocks in MAME!
However, since version 0.177, the bgfx-metal shader crashes on every Mac I tried. In my blog for MAME on Macs, I have documented the regression here:
The other bgfx shaders are not affected, so I have been constantly using bgfx-opengl without any troubles.
On Macs you should be able to reproduce the error with any game and any frontend, or just via the command line, e.g.
./mame64 -video bgfx -str 60 -noafs -bgfx_screen_chains hlsl -bgfx_backend metal -artcrop -noreadconfig -nosleep -nothrottle elevator
Please feel free to ask me for any additional information, unfortunately I have no talent for coding, but I would like to help wherever possible.
My blog on MAME in Macs with a lot of BGFX stuff: https://mameonmacs.blogspot.co.at
Many thanks, Stefan
Hi, just to let you know that in r0ni's current MAME 0.188 build, the METAL backend works with me - http://sdlmame.lngn.net (considered as official Mac MAME build). However, r0ni compiles MAME under 10.9 with an updated LLVM installed through MacPorts. His make command is make PTR=1 TARGETOS=macosx TOOLS=1 NOWERRROR=1 -j5. Whereas the official compile instructions are just make -j5. I am under 10.12, but r0ni's compile still works for me. I will try to find out whether different compile instructions make the difference. Cheers.
If you have issues like these in the future, the best would be to create simple repro inside bgfx examples, so that I can debug it. Something not working in MAME might be multiple things unrelated to bgfx, so simple repro inside bgfx examples would focus to just bgfx issue.