mvn -f "$FO4/pom.xml" dependency:build-classpath -q -Dmdep.outputFile=target/cp.txt
echo "==> starting Aukio 3D 2 with the Fallout 4 Commonwealth"
cd "$FO4"
+ # G1 with 64 MB regions: a streaming world allocates hundreds of MB/s
+ # (textures, mesh blocks, GI epoch stores) that are "humongous" at the
+ # default 8 MB region size; each one starts a concurrent mark cycle. Measured
+ # on a 25 s flight at 1280x720 (verification/LiveFrameProbe.java): default
+ # regions p95 91-96 ms, worst 207-423 ms; 64 MB regions p95 89-92 ms, worst
+ # 141-203 ms. ZGC was measured and REJECTED — it halves the worst pause but
+ # raises p95 to 161-181 ms (concurrent work steals render threads).
exec java -Xmx20g --enable-native-access=ALL-UNNAMED \
+ -XX:+UseG1GC -XX:G1HeapRegionSize=64m \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath="$HOME/.cache/aukio/heapdumps" \
-Daukio.fo4.lodRadius=64 \