Skip to content

Fix macOS rendering issues#393

Merged
wyskoj merged 1 commit into
masterfrom
fix-macos-rendering
Mar 8, 2026
Merged

Fix macOS rendering issues#393
wyskoj merged 1 commit into
masterfrom
fix-macos-rendering

Conversation

@wyskoj
Copy link
Copy Markdown
Owner

@wyskoj wyskoj commented Mar 8, 2026

Resolves #358, #391

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to resolve macOS-specific rendering failures (black/unrendered window) by adjusting the desktop renderer backend selection and simplifying how the macOS renderer subprocess is launched.

Changes:

  • Add jme3-lwjgl to the Gradle version catalog.
  • Select jme3-lwjgl on macOS and jme3-lwjgl3 on other platforms in desktop dependencies.
  • Remove -XstartOnFirstThread from the macOS renderer subprocess command.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
gradle/libs.versions.toml Adds a version-catalog entry for the LWJGL2-based jME backend (jme3-lwjgl).
app/build.gradle.kts Chooses LWJGL2 vs LWJGL3 backend based on OS during dependency resolution.
app/src/desktopMain/kotlin/org/wysko/midis2jam2/domain/ApplicationService.desktop.kt Updates the renderer subprocess command-line arguments used on macOS.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread app/build.gradle.kts
Comment on lines +124 to +129
val os = System.getProperty("os.name").lowercase()
if (os.contains("mac")) {
implementation(libs.jme3.lwjgl)
} else {
implementation(libs.jme3.lwjgl3)
}
Copy link

Copilot AI Mar 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This uses System.getProperty("os.name") during configuration to choose dependencies. With org.gradle.configuration-cache=true, reading system properties directly in build scripts can make the configuration cache non-reusable or trigger configuration-cache warnings. Prefer Gradle's Provider API (e.g., providers.systemProperty("os.name")) or an OS-detection helper that is configuration-cache friendly, then base the dependency selection on that value.

Copilot uses AI. Check for mistakes.
@wyskoj wyskoj merged commit de9109a into master Mar 8, 2026
7 checks passed
@wyskoj wyskoj deleted the fix-macos-rendering branch March 8, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Black or unrendered window on macOS

2 participants