Starsector: Difference between revisions
Added a page about Starsector and a work around to let the game use more RAM. |
Made it more clear, how to use the workaround. |
||
| Line 10: | Line 10: | ||
== Tips and tricks == | == Tips and tricks == | ||
To change the amount of memory, the starsector game can use, add the following command to NixOS.<syntaxhighlight lang="nixos"> | To change the amount of memory, the starsector game can use, add the following command to NixOS.<syntaxhighlight lang="nixos"> | ||
(starsector.overrideAttrs ({ ... }: { | environment.systemPackages = [ | ||
# overrides the NixOS package, starsector, see: https://wiki.nixos.org/wiki/Starsector | |||
(starsector.overrideAttrs ({ ... }: { | |||
postInstall = '' | |||
cp ${dotfiles/starsector/settings.json} $out/share/starsector/data/config/settings.json | |||
substituteInPlace $out/share/starsector/.starsector.sh-wrapped \ | |||
--replace-fail "Xms1536m" "Xms8192m" \ | |||
--replace-fail "Xmx1536m" "Xmx8192m" | |||
''; | |||
})) | |||
]; | |||
</syntaxhighlight>This commands takes the <code><code>settings.json</code></code> and changes the commandline parameters:<code>Xms</code> <code>Xmx</code> to take <code>8192m</code> or <code>8GiB</code> of RAM. | </syntaxhighlight>This commands takes the <code><code>settings.json</code></code> and changes the commandline parameters:<code>Xms</code> <code>Xmx</code> to take <code>8192m</code> or <code>8GiB</code> of RAM. | ||
[[Category:Guide]] | [[Category:Guide]] | ||
[[Category:Gaming]] | [[Category:Gaming]] | ||