wheybags / freeablo

[ARCHIVED] Modern reimplementation of the Diablo 1 game engine
GNU General Public License v3.0
2.16k stars 195 forks source link

macOS Metal port #463

Open grantramsay opened 4 years ago

grantramsay commented 4 years ago

macOS has deprecated OpenGL, at some point they will drop support and freeablo will require a Metal graphics backend.

Probably shouldn't be done until:

wheybags commented 4 years ago

Mypreference would be to eventually drop opengl on all platforms, and just use vulkan. On osx we can use moltenvk.

oleid commented 4 years ago

Another option would be using webgpu. That works fine on desktop as well and uses native graphic apis on the corresponding platform, i.e DirectX 12 or Vulkan on windows, vulkan on Linux and Metal on Mac OS.

It is a safe api similar to Vulkan. Performance is somewhere between OpenGL and highly optimized Vulkan.

An opengl backend for WebGPU is also on the Roadmap, but I wouldn't count on it.

Oh,and of course Webgpu will work in your favorite browser.So a web port of this game would be possible:)

oleid commented 4 years ago

Forgot a link: https://github.com/gfx-rs/wgpu-native/blob/master/README.md

sleepyspider1 commented 3 years ago

There's also bgfx as well. https://github.com/bkaradzic/bgfx