mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-11-04 10:13:59 +00:00
build: raise the desktop heap ceiling to 1 GB
384 MB left little headroom for large libraries and long sessions. It is a ceiling, not a reservation: the serial GC only grows the heap to what is live.
This commit is contained in:
parent
8537718225
commit
f23c66c0c5
@ -449,7 +449,7 @@ nucleus.application {
|
|||||||
"--enable-native-access=ALL-UNNAMED", // need for JNA for compose-webview (wry) to work
|
"--enable-native-access=ALL-UNNAMED", // need for JNA for compose-webview (wry) to work
|
||||||
// --- ADD THESE FOR SPEED & LOW RAM ---
|
// --- ADD THESE FOR SPEED & LOW RAM ---
|
||||||
"-Xms64m", // Start with a tiny heap (prevents grabbing 500MB upfront)
|
"-Xms64m", // Start with a tiny heap (prevents grabbing 500MB upfront)
|
||||||
"-Xmx384m", // Cap the max heap (VLC and WebView need a bit of room)
|
"-Xmx1g", // Ceiling, not a reservation: the heap only grows to what is live (#3200, #3193)
|
||||||
"-XX:TieredStopAtLevel=1", // Disables the heavy C2 compiler. Huge startup speedup!
|
"-XX:TieredStopAtLevel=1", // Disables the heavy C2 compiler. Huge startup speedup!
|
||||||
"-XX:+UseSerialGC" // The Serial GC is the most efficient for heaps under 512MB
|
"-XX:+UseSerialGC" // The Serial GC is the most efficient for heaps under 512MB
|
||||||
)
|
)
|
||||||
@ -556,7 +556,7 @@ nucleus.application {
|
|||||||
// ProGuard is not used for native images; -Os is the size equivalent
|
// ProGuard is not used for native images; -Os is the size equivalent
|
||||||
optimization = NativeImageOptimization.SIZE
|
optimization = NativeImageOptimization.SIZE
|
||||||
// Same ceiling as the JVM distribution's -Xmx
|
// Same ceiling as the JVM distribution's -Xmx
|
||||||
maxHeapSize = "384m"
|
maxHeapSize = "1g"
|
||||||
// Skiko is loaded from lib/ next to the binary (Nucleus copies it there); don't embed
|
// Skiko is loaded from lib/ next to the binary (Nucleus copies it there); don't embed
|
||||||
// a second ~30 MB copy as a resource
|
// a second ~30 MB copy as a resource
|
||||||
buildArgs.add("-H:+UnlockExperimentalVMOptions")
|
buildArgs.add("-H:+UnlockExperimentalVMOptions")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user