Skip to content

Conversation

@SiboVG
Copy link
Member

@SiboVG SiboVG commented Feb 20, 2025

This PR fixes #1667, the infamous window ghosting bug for Windows users. The fix involves adding these JVM arguments when running the JAR, as taken from here:

"-Dsun.java2d.noddraw=true"
"-Dsun.java2d.d3d=false"
"-Dsun.java2d.ddforcevram=true"
"-Dsun.java2d.ddblit=false"
"-Dswing.useflipBufferStrategy=True" 

The fix has been confirmed by users CoreCount and Catalyst on the r/rocketry server, thanks for the help!

Today is a good day :)

@neilweinstock
Copy link
Contributor

I'm gonna have to try this and see if it improves any of the other (far less serious) problems on MacOS.

@SiboVG
Copy link
Member Author

SiboVG commented Feb 20, 2025

I'm gonna have to try this and see if it improves any of the other (far less serious) problems on MacOS.

If you want to test this, you have to either run from my branch using gradle run (this auto-includes the JVM arguments), or run the JAR with java -Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false -Dsun.java2d.ddforcevram=true -Dsun.java2d.ddblit=false -Dswing.useflipBufferStrategy=True -jar <OpenRocket.jar>.

From what I've read, the arguments should have minimal influence on other OS'es.

@neilweinstock
Copy link
Contributor

Oh, in that case I guess I'll just wait. Not a big deal either way.

@SiboVG SiboVG merged commit 8f46caf into openrocket:unstable Feb 23, 2025
1 check passed
@SiboVG SiboVG deleted the issue-1667 branch February 23, 2025 14:05
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.

Open Rocket GUI Glitches After Accessing Menu

2 participants