fix(gui): add VM flags to fix UI ghosting (#2225)

This commit is contained in:
Skylot 2024-08-04 19:40:14 +01:00
parent 821cc668c7
commit f9da6e00ed
No known key found for this signature in database
GPG Key ID: 47A4975761262B6A
2 changed files with 7 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<module name="jadx.jadx-gui.main"/>
<option name="PROGRAM_PARAMETERS" value="-v"/>
<option name="VM_PARAMETERS"
value="-Xms128M -XX:MaxRAMPercentage=70.0 -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -Djava.util.Arrays.useLegacyMergeSort=true -Djdk.util.zip.disableZip64ExtraFieldValidation=true -XX:+IgnoreUnrecognizedVMOptions --add-opens=java.base/java.lang=ALL-UNNAMED"/>
value="-Xms128M -XX:MaxRAMPercentage=70.0 -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -Djava.util.Arrays.useLegacyMergeSort=true -Djdk.util.zip.disableZip64ExtraFieldValidation=true -XX:+IgnoreUnrecognizedVMOptions --add-opens=java.base/java.lang=ALL-UNNAMED -Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false -Dsun.java2d.ddforcevram=true -Dsun.java2d.ddblit=false -Dswing.useflipBufferStrategy=True"/>
<method v="2">
<option name="Make" enabled="true"/>
</method>

View File

@ -70,6 +70,12 @@ application {
// needed for ktlint formatter
"-XX:+IgnoreUnrecognizedVMOptions",
"--add-opens=java.base/java.lang=ALL-UNNAMED",
// flags to fix UI ghosting (#2225)
"-Dsun.java2d.noddraw=true",
"-Dsun.java2d.d3d=false",
"-Dsun.java2d.ddforcevram=true",
"-Dsun.java2d.ddblit=false",
"-Dswing.useflipBufferStrategy=True",
)
applicationDistribution.from("$rootDir") {
include("README.md")