logoalt Hacker News

Minecraft: Java Edition now uses SDL3

332 pointsby ObviouslyFlameryesterday at 11:48 AM214 commentsview on HN

Comments

malteeezyesterday at 3:50 PM

The lwjgl bindings for this were written by a member of the GTNH modpack team, thereby completing the chain of vanilla->modded->vanilla once more https://github.com/LWJGL/lwjgl3/pull/1033

show 3 replies
bondolotoday at 3:56 AM

I recently converted a game, Tribal Trouble (https://github.com/bondolo/tribaltrouble) from GLFW to SDL3. It was mostly a painless refactor though I did have some issues with full screen exclusive modes and desktop full screen but was eventually able to resolve those.

I ended writing a demo for screen mode handling to test and document the fiddly bits.

https://github.com/bondolo/SDL3-Fullscreen-Demo

The game is Java, like Minecraft, the demo is C because I wanted to keep it as simple as possible.

show 2 replies
shaknayesterday at 1:02 PM

> Known Issues

> Exclusive fullscreen mode on Windows may cause the game to crash in certain situations, especially when using multiple monitors

> Entering Exclusive fullscreen mode crashes the game on Wayland

Those, together, kinda seem like the kind of blocking bug that would usually delay a snapshot... Lets hoping it gets fixed before release lands...

show 5 replies
velcrovanyesterday at 1:46 PM

Anyone got any advice for a techy dad with no (zero) Minecraft experience who wants to set up a Minecraft server for the family in 2026? Kids right now are playing on their iPads, and (sometimes) old macbooks/windows PCs.

show 41 replies
hiccuphippoyesterday at 4:13 PM

Icculus has some great videos of porting games from SDL2 to 3, here's the one porting Doom: https://www.youtube.com/watch?v=ixdeGhsoxy8

show 1 reply
LelouBilyesterday at 3:06 PM

It's really amazing how much Minecraft is becoming more and more a game engine on it's own rather than just a game.

show 2 replies
mort96yesterday at 1:49 PM

Is the rationale for switching away from GLFW documented anywhere? I'd love to read about it, I have some projects which use GLFW myself and I'm always wondering whether or not SDL would be better

show 6 replies
nekiwoyesterday at 1:10 PM

osu (the rhythm game) also recently switched to SDL3, from SDL2, and it came with significant performance/latency improvements. SDL3 adoption is a bit slow it seems. Though, I'm surprised Minecraft used GLFW all this time.

One notable thing is that switching to SDL3 eliminated lag from having Discord client open while playing osu. Pretty sure this was from their devlog on YouTube.

show 3 replies
hizyyoyesterday at 9:31 PM

SDL3 switch makes sense given how much SDL2 was showing its age around GPU API abstraction (Vulkan/Metal support especially). Curious if this fixes any of the longstanding input lag / alt-tab issues that Java Edition has had on Linux, since that's usually where the windowing/input layer causes the most pain.

show 1 reply
LelouBilyesterday at 8:36 PM

Honestly, it seems like the way to go to have a very moddable game is a language that's easily decompiled and modified at runtime like Java or C# (or just JVM and .NET CLR if you prefer).

When they do internal modifications, but also have modders in mind, you get to have an amazing modding API basically "for free".

show 1 reply
delducayesterday at 1:46 PM

SDL always had a great API design, but in SDL3... Goddamnn!

show 1 reply
philipallstaryesterday at 7:05 PM

> Entering Exclusive fullscreen mode crashes the game on Wayland

Pretty good for Wayland.

q2dgyesterday at 5:09 PM

Luanti is the answer

yonistoyesterday at 3:35 PM

I'm teaching my son python programming.

Anyone with experience on programming Minecraft with python? Tips?

show 1 reply
andrewshadurayesterday at 2:58 PM

> Armadillos no longer try to roll up when submerged in liquids

This sounds hilarious out of the context :D

kyo5ukeyesterday at 5:00 PM

[flagged]

quotelyappyesterday at 3:10 PM

[dead]

tempaccountabgdyesterday at 5:47 PM

[dead]

metalbirdsyesterday at 2:44 PM

[flagged]

maxlinyesterday at 8:51 PM

With the regressions this reads like an april fools post...

nottorpyesterday at 2:28 PM

I honestly went and read those release notes just to check if they're using this transition as an excuse to make the game less cross platform.

show 1 reply
nealsyesterday at 5:20 PM

They still update that? I thought it's all bedrock now?

show 4 replies
revengerwizardyesterday at 1:13 PM

I kind of don't see the benefit, as it's still going to use only the window, input and platform integrations features, while SDL3 has a whole software renderer built-in and much more.

show 3 replies