Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Anubis-class Cruiser (12/20/24)

Author Topic: Changing available RAM in the "vmparams" file  (Read 4601 times)

DaMinonDrip

  • Ensign
  • *
  • Posts: 3
    • View Profile
Changing available RAM in the "vmparams" file
« on: February 14, 2021, 10:15:25 AM »

Hello, I followed the guide in one of the older threads on how to increase available RAM in the "vmparams" file for the game to use some time back, I increased it to 8gb and also increased the battle limit to 1500 (usually only get to 600 at max), but when I get into bigger fights I can see in the task manager that the game uses 4,8gb at max and wont go beyond that and because of that my performance goes down to about 20-30fps at 0% Idle. My CPU or GPU isn't bottlenecked so I really think that it's because of the RAM.
I have Nexerelin, Vayra sector with ships and weapons, Starship Legends, Console and Common Radar.

My specs:
Windows 10 64bit
I5-9400F
GTX 1060 6gb
16GB RAM
installed on SSD

I would really appreciate any help I could get because I really love this game and think that it truly has a great potential.
« Last Edit: February 14, 2021, 10:18:34 AM by DaMinonDrip »
Logged

DaMinonDrip

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: Changing available RAM in the "vmparams" file
« Reply #1 on: February 15, 2021, 07:20:20 AM »

Checked in Console where it shows that I have max available RAM of 11,5gb which is what I set it to in game files, but it always uses 2,7gb at max and never goes beyond that even when the FPS start dropping in bigger fights. VRAM always has at least 4gb free. In the console the game realizes that it has more RAM available but in actual game it still thinks that the max is 2,7gb+- and cant go beyond that.

How do I make the game realize that it has more available RAM than what it thinks it has for some reason?
« Last Edit: February 15, 2021, 07:22:04 AM by DaMinonDrip »
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4921
    • View Profile
    • GitHub profile
Re: Changing available RAM in the "vmparams" file
« Reply #2 on: February 15, 2021, 08:22:02 PM »

It seems far more likely to me that your i5 is unable to keep up with 1500 size battles than that the game needs more RAM but somehow won't use the RAM it's given. Starsector mostly runs on a single thread and your cores are only 2.9 GHz each at base (although I'm told they can be pushed up to 4.1 GHz).

Check usage of CPU cores in Resource Monitor (and VRAM usage in Win10 Task Manager while you're at it).
« Last Edit: February 15, 2021, 08:24:37 PM by Histidine »
Logged

DaMinonDrip

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: Changing available RAM in the "vmparams" file
« Reply #3 on: February 17, 2021, 09:15:24 AM »

It seems far more likely to me that your i5 is unable to keep up with 1500 size battles than that the game needs more RAM but somehow won't use the RAM it's given. Starsector mostly runs on a single thread and your cores are only 2.9 GHz each at base (although I'm told they can be pushed up to 4.1 GHz).

Check usage of CPU cores in Resource Monitor (and VRAM usage in Win10 Task Manager while you're at it).

All the tasks are divided amongst the cores, and the CPU is at 60%-70% of use at max. It's not bottlenecking my CPU nor any other part of my hardware, it always starts lagging when the game runs out of the 2,5gb of RAM, other than that its running at stable 60fps.
Logged

Dark.Revenant

  • Admiral
  • *****
  • Posts: 2806
    • View Profile
    • Sc2Mafia
Re: Changing available RAM in the "vmparams" file
« Reply #4 on: February 18, 2021, 07:01:38 PM »

My best guess is that this is a limitation of the JVM.  Very few people use such massive battle sizes, so this sort of limitation is rarely reached through battle alone.  Typically, it happens mid-campaign due to the much higher memory footprint there.  You could try downloading a newer JVM, copying the relevant folder to the Starsector folder, and modifying the run batch script to use that other JVM folder.  Does the behavior change then?  Perhaps some command line flags relating to memory management and garbage collection might make a difference as well.
Logged