Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - React52

Pages: [1]
1
Heyo just returning to the game after..oh god 3 years? I did mod the game back then, but didn't run into this many problems. So if you're suffering from the aforementioned issues, this is for you. I'm only making this as someone who uses mods, not creates them. The included issues are Permgen Crashes/Eventual FPS slow down

Let's go over the things I had to set to make this game work properly with a ridiculous amount of mods. Let's talk about vmparams, It's been noted in multiple places to change the XMS for memory.

So people recommend changing it to 8 gigs or -Xms8000m -Xmx8000m, personally I'm crazy and have it set to 14000 because I have 16 gb's of ram. It's not recommended doing this because it may cause instability, but I haven't experienced this.

Eventually you'll run into a crash with an error called Permgen, or something like that. So now you need another command. This is from another thread

It's definitely correlation - music stuff is on another thread so it's just sprinkled in the log wherever.

You could try adding this to your vmparams:
-XX:PermSize=512m -XX:MaxPermSize=512m

That may resolve the issue, unless it's somehow caused by a leak, in which case it might only delay it instead, or even simply cause it to manifest differently.

You need -XX:PermSize=512 naturally I put XX:PermSize=4000m -XX:MaxPermSize=4000m probably not recommended, but it works for me, but try 512m first. Be careful putting this in your vmparams, if you mess up the - the entire game will fail to start. So this is what mine looks like

Xms14000m -Xmx14000m -Xss2048k -XX:PermSize=4000m -XX:MaxPermSize=4000m -etc etc

..Please don't actually copy that, unless you really want to. I don't know if such high values will cause issues, it's been fine for me and I just wanted the game to keep running..forever. Or at-least until I'm too tired, which, worked.

This isn't over either..there's more. Eventually you may run into the game slowing down after..a big fleet war. The FPS will get shredded, so we need another solution. Thankfully someone can help us with that.

Quote
Mini-guide: Switching to Java 8 to prevent the post-battle slowdown
Not officially supported, may cause unrelated issues, do at your own risk and please report back if you do notice it causing problems.

Symptoms
- After some time playing and immediately after a battle, the game FPS will plummet (eg from 60 to 15-25) and usually only go back to normal after a game restart.
- Saving/loading takes 5x longer than usual.
- Using at least one mod (that adds new sprites? incl. GraphicsLib).

Fix (slow down and read this part carefully)
1. Go to your starsector install and rename the jre folder to jre7.
2. Download either of the following (both are the same JRE 8 v271) (Mac/Linux users look below for download link):
    - (72 MB .zip) https://drive.google.com/file/d/1CGRtnv5hIGCtcdlvZXFO0F58VXqYUo6x/view?usp=sharing
    - (48 MB .7z) https://drive.google.com/file/d/155Lk0ml9AUGp5NwtTZGpdu7e7Ehdyeth/view?usp=sharing
3. Extract that into your game folder so you have a folder named jre. You'll now have both jre (with java 8 ) and jre7.
4. Make sure that your starsector/starsector-core/data/config/settings.json allowAnyJavaVersion is set to true. Then launch the game as normal.


Potential issues
- Game+launcher is zoomed in/off-center.
    Fix: Right-click Starsector, Properties, Compatibility, Change high DPI settings, tick checkbox for "Override...Scaling performed by Application"
    Thanks to Normal Dude for the fix.

* Mac/Linux JRE 8 downloads:
Linux: https://drive.google.com/file/d/1TRHjle6-MOpn1zJhtSA9yvwXIQip_F_n/view?usp=sharing
MacOS: https://drive.google.com/file/d/1PW9v_CL719buKHe69GaN9fCXcPIqDOIi/view?usp=sharing


I have no idea who this quote comes from..but that did fix the eventual FPS drops that I had. And now I can finally run star sector with a crazy ton of mods, with no crashes and as long as I want. Enjoy huge fleet battles without my FPS being tanked soon after. I wanted to make a thread like this, because these fixes were on multiple threads, and never in one place. Sure the memory tweaks are public knowledge, but the rest of this..a bit hard to find so it will be easier if they're in one place. This java 8 edition fix fixed all of that though, saving is fluid every time, no fps drops, just able to enjoy the game.

Apparently these fixes can cause unforeseen consequences, but I am using them and have had 0 issues..so idk? use at your own discretion? 

Also as a note, I have an I7-7700k with an RTX 2070 Super so I can run with a ridiculous amount of mods. Only really do this if you know your pc can handle it.

There is the ClearCommands mod which may help you if you have performance issues, but those performance issues may be tied to the version of java you're using. I tried ClearCommands while my fps was getting destroyed, didn't work, so the java issue is a completely separate issue from this. I've never had any performance issues in the game besides the java issue.

Using all these fixes worked for me, have resulted in no more crashes, can play game for long time, me happy. :) I don't know if there is a memory leak, and if eventually, this would lead your game to crash. I haven't ran into that, last night I played for hours, huge ship battles, everything you could possibly think of to crash, just smooth like butter after doing all of this. I can't guarantee that this will work for everyone, it depends on your hardware. You may still have performance issues if simply your pc can't handle the game with so many mods. If you have a beast pc, which It's 2022, I'd imagine a-lot of you do..probably, give it a go.








2
General Discussion / Diable avionics mod doesn't give a paying salary?
« on: September 15, 2019, 05:10:50 PM »
I did a new game starting out with them, but I have no salary. This mod/faction doesn't pay a monthly salary?

3
General Discussion / Are there any mods that add ridiculously huge ships?
« on: September 12, 2019, 08:40:51 PM »
I do mean bigger than capital ships . I feel like capital ships aren't big enough (I expected capital ships to be at-least 3x bigger than every other ship) so I am wondering if there is a mod or mods that add really really huge ships that cost probably millions to buy.


4
Been wanting to make a much bigger battle size (you guys may think I'm crazy but I want to go up to the thousands). I have allocated the ram to the game already (have 16gb's of ram)

Pages: [1]