-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS (and arm64) Support - Feature Request #11
Comments
My fault, confused |
I wanted to reopen this issue to inform future users that this mod isn’t fully supported on macOS. While it does work on M series Macs due to the platform-independent nature of JAR files (which can run on almost anything, even Samsung Smart Fridges), the mod performs a platform check and only supports up to OpenGL 4.1 on macOS. This limitation is due to Apple’s decision to drop OpenGL in favour of the Metal API (similar to DirectX or Vulkan) back in the Mojave era, leaving OpenGL support capped at version 4.1. This is not a restriction imposed by me, Minecraft, OpenGL, GLFW, or any other entity, but Apple. |
Maybe is possible to use MetalAPI in Java |
That's an intriguing concept that I looked into a while ago. Unfortunately, it is impossible because there are no Metal Framework bindings for Java. The closest thing I could find was Project Lanai and JEP 382, but both are absolutely useless in our case because they are simply the implementation of Metal to replace OpenGL in 2D Java Applications. Additionally, it is incredibly limited and the Project Lanai wiki makes it hard to understand what it is - it's as if they're obscuring what the project actually entails. They could have simply written, "Project Lanai is the attempt to implement Metal to replace OpenGL for 2D Java Applications on macOS," but instead, it is a disorganized mess of information on an obscure, outdated wiki. I'd love to see something like Vulkan mod except Metal for macOS one day, if bindings become available. The performance impact for M series Macs would be immense. TL;DR: Can't make a Metal Mod for Minecraft because of no available bindings for Java. Looked at Project Lanai but that's only for 2D. |
Maybe is possible to use Metal APIs in Java by mixing Java with Swift https://github.com/SwiftJava or C++ |
SwiftJava would not be applicable in this instance as it only uses a bit a Java in Swift, not vice versa. However, the C++ option might be feasible because if I recall correctly, there is a Metal Library for C++ which we could potentially use using JNI. It would be a lot of work but I'm sure the developers of Vulkan mod toiled endlessly to get their mod working too, sooo... 😅😅 It would definitely be a great learning experience for me. |
If you prefer to use Swift they just announce this new package for interoperability https://github.com/swiftlang/swift-java at SwiftConf |
That seems like an interesting thing. I'll see how difficult it is when I have some spare time. |
Today i tried to use this mod on my M1 Mac but the game crash because it requires the ARM64 version
The text was updated successfully, but these errors were encountered: