Repository navigation
Make NVIDIA threaded optimization setting configurable - #3105
Merged
riccardobl merged 4 commits intoDec 6, 2026
Merged
Conversation
## Summary The LWJGL3 backend currently forces `__GL_THREADED_OPTIMIZATIONS=0` for every platform, overriding values supplied by developers. This change applies the default only on Linux and asks SDL to set it only when the variable is unset, retaining the existing NVIDIA workaround without taking control away from users who configure it themselves. ## Validation - `./gradlew :jme3-lwjgl3:compileJava` completed successfully in the interactive workspace. - `git diff --check` passed for the patch.
jaime-jmebot
marked this pull request as ready for review
December 6, 2026 09:50
Member
|
@jaime-jmebot when __GL_THREADED_OPTIMIZATIONS fails to set, make it print a warning instead of throwing |
jaime-jmebot
marked this pull request as draft
December 6, 2026 10:32
Contributor
Author
|
Thanks for the suggestion! I’ve updated the Linux default-setting failure path to log a warning with SDL’s error message rather than throwing and interrupting initialization. The existing Linux-only and preserve-user-value behavior is unchanged. The LWJGL3 compile check passed, and the change is in commit |
riccardobl
marked this pull request as ready for review
December 6, 2026 10:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tracks #3104
Implementation plan
Progress summary
Apply the validated change to LwjglWindow: only default __GL_THREADED_OPTIMIZATIONS to 0 on Linux and never overwrite an existing value.
Tests
1 approved test command(s) completed successfully in the sandbox
Result
Summary
The LWJGL3 backend currently forces
__GL_THREADED_OPTIMIZATIONS=0for every platform, overriding values supplied by developers. This change applies the default only on Linux and asks SDL to set it only when the variable is unset, retaining the existing NVIDIA workaround without taking control away from users who configure it themselves.Validation
./gradlew :jme3-lwjgl3:compileJavacompleted successfully in the interactive workspace.git diff --checkpassed for the patch.