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-backup*.
MacOS users: the jre folder is called Home, so use that instead of jre, and is located in Starsector.app/Contents.
Linux users: the jre folder is called jre_linux, so use that instead of jre.
2. Download one of the following:
Note: all are the same JRE 8 v271.
- Windows .zip (72 MB)
https://drive.google.com/file/d/1CGRtnv5hIGCtcdlvZXFO0F58VXqYUo6x/view?usp=sharing - Windows .7z (48 MB, requires 7zip or equivalent)
https://drive.google.com/file/d/155Lk0ml9AUGp5NwtTZGpdu7e7Ehdyeth/view?usp=sharing - 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=sharing3. Extract that into your game folder so you have a folder named jre. You'll now have both jre (with java
and jre7-backup.
4. Read the Potential Issues section below (your game+launcher may be zoomed in/off-center).
5. 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.
This is caused by the game or JRE not handling Windows scaling properly.
Afterwards, for even better performance
See G1GC VMParam Collection, made by @Cieve-san. The latest version should be available by searching: in:#mod_updates vmparam.
* So that, if anything goes wrong, you can rename the folders to go back to the original jre.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Performance Survey Results:
https://docs.google.com/forms/d/1Tc6hb0nW3AGoxG1cUQPJITwN_SobJphdiYeGxPACwtc/viewanalyticsTestimonial:
JRE 8 rocks, here's my endorsement if anyone is struggling with FPS issues or post-battle lag - Askar#5535