Skip to content

Commit 65ac71c

Browse files
committed
Update old LWJGL 3 post
1 parent da7f832 commit 65ac71c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_posts/2021/2021-07-24-devlog-7-lwjgl3.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ tags:
2020
categories: news
2121
---
2222

23+
_(Last updated: 15 June 2025)_
24+
2325
In the next release of libGDX we are switching our default desktop backend from LWJGL 2 to LWJGL 3. This Status Report is meant to provide some background information on this change.
2426

2527
### What is LWJGL?
@@ -80,15 +82,15 @@ You can either run the JVM with the [`-XstartOnFirstThread`](https://github.com/
8082
jvmArgs = ['-XstartOnFirstThread']
8183
```
8284

83-
Alternatively, you can use a custom experimental implementation of the GLFW library by adding this code snippet to the start of your `main()` method:
85+
Alternatively, you can use an [experimental](https://github.com/libgdx/libgdx/pull/7361#issuecomment-1986915854) implementation of the [GLFW library](https://javadoc.lwjgl.org/org/lwjgl/glfw/package-summary.html#using-glfw-on-macos-heading) by adding this code snippet to the start of your `main()` method:
8486

8587
```java
8688
if (SharedLibraryLoader.isMac) {
8789
Configuration.GLFW_LIBRARY_NAME.set("glfw_async");
8890
}
8991
```
9092

91-
A third option, especially viable for _outside of your development environment_, is to just programatically restart the JVM if the argument is not present (see [here](https://github.com/crykn/guacamole/blob/master/gdx-desktop/src/main/java/de/damios/guacamole/gdx/StartOnFirstThreadHelper.java#L69) for a simple example).
93+
A third option, especially viable for _outside of your development environment_, is to just programatically restart the JVM if the argument is not present (see [here](https://github.com/crykn/guacamole/blob/82a66078e190a563afd60de8804274904744d4d2/gdx-desktop/src/main/java/de/damios/guacamole/gdx/StartOnFirstThreadHelper.java#L78) for a simple example).
9294

9395
### Are there any other things I need to be aware of?
9496
- Whenever your **application is minimised**, the LWJGL 3 backend calls `ApplicationListener#resize(0, 0)`. This can lead to unexpected issues, in particular if you are (re)building framebuffers whenever the application is resized.

0 commit comments

Comments
 (0)