The use of Foreign Memory API in game engine
jMonkeyEngine Hub
April 27, 2026
Hello and welcome to the community!
For foreign memory, we’re currently waiting on lwjgl4, which I understand is waiting on project valhalla to be finalized. There is also some question of if we should drop java 8 support or not. So I think the foreign API is a bit further down the road, but I could be wrong.
In the meantime, lwjgl3 provides a couple memory management APIs that are reasonably performant and don’t rely on direct buffer allocation, which we are using for lwjgl3 apps. Here’s a blog post that goes into more detail if you’re interested.
Discussion in the ATmosphere