Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: optimal vmparams settings for me?  (Read 19211 times)

n3xuiz

  • Commander
  • ***
  • Posts: 221
    • View Profile
optimal vmparams settings for me?
« on: December 14, 2019, 05:29:45 AM »

my vmparams file right now:
Spoiler
java.exe -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt -Djava.library.path=native\\windows -Xms2500m -Xmx4000m -Xss1024k -classpath janino.jar;commons-compiler.jar;commons-compiler-jdk.jar;starfarer.api.jar;starfarer_obf.jar;jogg-0.0.7.jar;jorbis-0.0.15.jar;json.jar;lwjgl.jar;jinput.jar;log4j-1.2.9.jar;lwjgl_util.jar;fs.sound_obf.jar;fs.common_obf.jar;xstream-1.4.10.jar -Dcom.fs.starfarer.settings.paths.saves=..\\saves -Dcom.fs.starfarer.settings.paths.screenshots=..\\screenshots -Dcom.fs.starfarer.settings.paths.mods=..\\mods -Dcom.fs.starfarer.settings.paths.logs=. com.fs.starfarer.StarfarerLauncher
[close]

especially intersting for me:
-Xms2500m -Xmx4000m -Xss1024k
these are the only values i changed. because due to my modlist i had issues with a full memory that didn't allow me to save. now this problem is gone and i'm looking to optimize my settings. i run 500 battle size as of today and don't plan on reducing it.

my specs:
i5-8600k, 16GB DDR4-2400, Samsung 970 EVO 512GB (C:/) <- Starsector is here, GTX 970 with 4GB VRAM
Logged

Serenitis

  • Admiral
  • *****
  • Posts: 1468
    • View Profile
Re: optimal vmparams settings for me?
« Reply #1 on: December 14, 2019, 07:06:38 AM »

-Xms4096m -Xmx4096m -Xss1024k

Xms and Xmx should be the same.
Xss doesn't really need to be changed.

Don't know if it's required, but I like to have all values be multiples (or fractions) of 1024.
So for 4 Gb allocated, that's 4096.

With that much memory, you could quite comfortably allocate 6 Gb (6144).
« Last Edit: December 14, 2019, 07:09:38 AM by Serenitis »
Logged

NorthernWatch

  • Ensign
  • *
  • Posts: 23
    • View Profile
Re: optimal vmparams settings for me?
« Reply #2 on: December 21, 2019, 02:55:11 PM »

I give 90% ram to my game with my 16GB lol
Logged

Midnight Kitsune

  • Admiral
  • *****
  • Posts: 2847
  • Your Friendly Forum Friend
    • View Profile
Re: optimal vmparams settings for me?
« Reply #3 on: December 22, 2019, 12:09:28 PM »

I give 90% ram to my game with my 16GB lol
That's stupid as to much ram is just as bad as too little. This isn't Mincraft. 8GBs is the max you should allow.
Logged
Help out MesoTroniK, a modder in need

2021 is 2020 won
2022 is 2020 too

Schwartz

  • Admiral
  • *****
  • Posts: 1453
    • View Profile
Re: optimal vmparams settings for me?
« Reply #4 on: December 26, 2019, 08:14:00 AM »

-Xms4g -Xmx4g is fine for about two dozen mods. But it depends on which mods you use. You'll get a warning during gameplay or when saving if it's not enough. You'd have to really pile on the heavy mods to make the game require more than 6 GB.
« Last Edit: December 26, 2019, 08:15:40 AM by Schwartz »
Logged