News for hackers. Stuff that matters.
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by bzb3 on Friday May 08, 2020 @03:58AM (#23112463)
From my experience with open source projects: nobody in the team owns a Mac.
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by q92z8oeif on Friday May 08, 2020 @09:17AM (#23114514)
I wonder if a forum outside of the silicon valley bubble would have so so many apple apologists like we have in this thread.

---

apple is bullish on metal vs vulkan because they want to lock in apps. and they have the upper hand because by not implementing vulkan, they force everyone to chose between the money on IOS or everything else. it's not a technical decision.

middle ware provide only the minimum common denominator, or expensive translation functions, it is not even close to providing the flexibility and speed modern emulators need.

absolutely nobody plays on apple hardware. specially not the people that are into gaming enough to write an emulator. no matter how much you personally want to believe the opposite.

Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by pjmlp on Friday May 08, 2020 @02:22PM (#23117833)
Yes, in game developers forums and magazine articles like Gamedev, IGDA, Gamasutra, EDGE, MCV Develop, MakingGames, GDC talks, Gamasutra, the long gone Flipcode, demoscene discussion forums, the media meetings at many Game Design schools.

Usually I only find this anti-Apple argumentation in pro FOSS forums.

Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by mehmetoguzderin on Friday May 08, 2020 @10:03AM (#23114961)
Metal is pretty nice, to be honest, with MSL being a real treat. And it is not too extra for a company with its custom GPU architecture to have its API too.
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by john_alan on Friday May 08, 2020 @04:10AM (#23112523)
I disagree with that. macOS is basically BSD and it’s great for Dev. Most of the devs I work with use it.
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by Jonnax on Friday May 08, 2020 @04:29AM (#23112638)
You have to define what kind of developers you're talking about.

Do they work with graphics? OSX doesn't really have many native games running on it. So clearly there's a whole group of developers who aren't Mac first.

Like OSX is enjoyed by a lot of developers because it's similar to Linux.

However Apple deprecated openGL, aren't using Vulkan but have their own thing called Metal. So that makes it quite OSX specific.

Edit:

Looks like someone is working on it: https://github.com/PCSX2/pcsx2/issues/18

Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by snickerbockers on Friday May 08, 2020 @04:51AM (#23112766)
Apple ditched OpenGL and Vulkan for their own exclusive 3D graphics API. They're a terrible platform to develop for.
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by oarsinsync on Friday May 08, 2020 @05:39AM (#23112969)
Apple ditched OpenGL for their own exclusive 3D graphics API that they had released in production before Vulkan was even announced.

That they don't bother with supporting Vulkan is incredibly frustrating for me personally, but not even remotely surprising given Apple's mode of business.

Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by stephen_g on Friday May 08, 2020 @11:32AM (#23115890)
Does MoltenVK not do what you want?
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by aspenmayer on Friday May 08, 2020 @04:21PM (#23118996)
For reference:

"MoltenVK is a Vulkan Portability implementation. It layers a subset of the high-performance, industry-standard Vulkan graphics and compute API over Apple's Metal graphics framework, enabling Vulkan applications to run on iOS and macOS." [1]

[0] https://moltengl.com/moltenvk/

[1] https://github.com/KhronosGroup/MoltenVK

Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by pjmlp on Friday May 08, 2020 @07:03AM (#23113408)
All major middleware already does Metal, even non gaming stuff like Flutter.
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by ddevault on Friday May 08, 2020 @08:39AM (#23114144)
Most emulators don't use middleware, because it doesn't afford them anywhere near enough flexibility or performance.
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by pjmlp on Friday May 08, 2020 @08:49AM (#23114241)
As anyone from Flipcode and Gamedevnet days knows, middleware can be as thin as couple of function pointers with shared libraries loaded on demand for the desired 3D API.

The approach taken by AAA game engines, although nowadays it looks more like a bunch of abstract classes/interfaces, depending on the language.

When you look into a game engine, typically 3D API abstractions are like 10% of the whole codebase.

Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by hexmiles on Friday May 08, 2020 @11:20AM (#23115760)
The way some emulator use the gpu can be quite different from the way pc games use it.

You can look at this article: https://dolphin-emu.org/blog/2017/07/30/ubershaders/ for an example how console graphics programming differ.

Middleware designed for games don't allow nearly enough flexibility to handle all the possible edge case that can arise. Console gpu (and graphics api) and computer gpu don't map one-to-one and they need all the feature and support from the underlying api that they can get for replicating the console way of doing things, supporting a new graphics backend is a lot of work for this reason. middleware try to abstract common pattern and flows, but every console is quite unique (in some way) middleware are not build for that and often are (a form of) a lowest common denominator for graphics api. Which is fine... for games.

edit: some clarification

Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by pjmlp on Friday May 08, 2020 @12:11PM (#23116372)
That doesn't forbade loading shared libraries as function pointers though.

Even if you stay, lets say OpenGL only, there are multiple execution paths with driver and graphics card specific code paths.

3D libraries like OpenGL/Vulkan are only portable up to a certain extent.

When you are coding at the ultimate performance level, you are also going into that rabbit hole of graphic card specific code paths and driver specific extensions.

So, it is hardly different than having your own plugable abstraction layer.

Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by throwaway2048 on Friday May 08, 2020 @11:06AM (#23115588)
If its so trivial, I'm guessing the developers would welcome patches.
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by pjmlp on Friday May 08, 2020 @01:39PM (#23117373)
Nowhere did I used the word trivial.

I wouldn't mind to contribute if paid accordingly.

Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by shrewduser on Friday May 08, 2020 @07:28AM (#23113561)
Flutter only just did that the other day and it's because iOS is a huge part of their pitch as a cross platform framework.
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by pjmlp on Friday May 08, 2020 @08:43AM (#23114183)
Which doesn't invalidate the point that anyone that cares has already done the work.
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by john_alan on Friday May 08, 2020 @05:38AM (#23112967)
...if you're writing cross-platform games. FTFY
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by snickerbockers on Friday May 08, 2020 @05:46AM (#23113001)
OP is literally asking why PCSX2 isn't cross-platform.
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by majewsky on Friday May 08, 2020 @05:50AM (#23113023)
> if you're writing cross-platform games and not using one of the established game engines that wrap OpenGL/Metal/Vulkan

FTFY

Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by izacus on Friday May 08, 2020 @07:04AM (#23113413)
Even if you're developing with a game engine, you'll soon have to write your own shaders or at least deal with their bugs. And for that, you'll need your users' hardware (there are no nVidia macs anymore), youre users' driver (which is predominantely Windows) and the ability to debug it.

Mac just doesn't make sense for this use-case beyond "I want an Apple logo!". Most people buy a tool to solve a problem, not hammer the problem to fit a brand.

Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by pjmlp on Friday May 08, 2020 @02:41PM (#23118015)
Same applies even if using something like OpenGL, Vulkan, which is why browsers black list GPUs.
Re:PCSX2 PS2 Emulator: Progress report Q3 2019 to Q1 2020 by ac29 on Friday May 08, 2020 @11:59AM (#23116235)
Thats a strawman - the poster didnt say macOS is bad for development, just that no one in the PCSX2 project uses it.