Run with a decent amount of memory

This avoids an annoying freeze when loading a large, advanced savegame.
This commit is contained in:
Sebastian Zhorel 2017-02-09 17:20:25 +01:00
parent ddbafff2fe
commit 3cd8b8acbd
2 changed files with 3 additions and 3 deletions

View File

@ -881,7 +881,7 @@
<!-- This is a shortcut for NetBeans, and possibly other IDEs. -->
<target name="run" depends="package" description="Runs the game">
<java jar="FreeCol.jar" fork="true">
<jvmarg value="-Xmx256M" />
<jvmarg value="-Xmx512M" />
</java>
</target>

View File

@ -6,7 +6,7 @@
<target depends="package" description="Runs the game" name="debug-nb">
<nbjpdastart addressproperty="jpda.address" name="FreeCol" transport="dt_socket"/>
<java fork="true" jar="FreeCol.jar">
<jvmarg value="-Xmx256M"/>
<jvmarg value="-Xmx512M"/>
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
</java>
@ -18,7 +18,7 @@
<!-- (more info: http://netbeans.org/kb/articles/freeform-config.html#profilej2se) -->
<target depends="-profile-check" description="Runs the game" if="profiler.configured" name="profile-nb">
<java fork="true" jar="FreeCol.jar">
<jvmarg value="-Xmx256M"/>
<jvmarg value="-Xmx512M"/>
<jvmarg line="${agent.jvmargs}"/>
</java>
</target>