Upgrade Starsector for Next-Gen Hardware | Starsector Java 8, vmparams, and settings guide
Vložit
- čas přidán 15. 06. 2024
- Subscribe to the channel here: / ironcladlion
In this video, we go over several extremely important tools to increase your performance in Starsector! This information has been hidden across the internet, with only the most dedicated players managing to implement the full upgrades. Today, we change that.
Included, is a guide on how to upgrade to Java 8, increase ram allocation, and increase Battlesize for a bigger and smoother Starsector experience!
If you would like a written guide, Wisp has an excellent guide on the Starsector forum: fractalsoftworks.com/forum/in...
#starsector #starsectorgame #IroncladLion
-----------------------------------------------------------------------------
Starsector Upgrade Guide Sections:
Intro: (0:00)
Background: (0:23)
Java JRE 8: (1:07)
vmparams: (5:25)
Max Battle Size: (8:35)
Fast Engine Rendering: (9:32)
A Deal's A Deal Starfarer: (10:09)
Credits: (11:14)
-----------------------------------------------------------------------------
IroncladLion Channel Links:
Other platforms:
Twitch: / ironcladlion
Twitter: / ironcladlion
Help me stay independent:
Patreon: / ironcladlion
-----------------------------------------------------------------------------
Java 8 Download Links:
Oracle (Official Website of Java, need account):
www.oracle.com/java/technolog...
Windows 64bit downloads:
Windows .zip (from Wisp's Starsector forum guide, cozy & secure)
github.com/wispborne/JRE/rele...
Filehorse (Website used in video):
www.filehorse.com/download-ja...
Linux downloads:
Github .gz (from Wisp's forum guide)
github.com/wispborne/JRE/rele...
MacOS downloads:
Github .zip (from Wisp's forum guide)
github.com/wispborne/JRE/rele...
!!! Make sure you download the correct Java for YOUR operating system !!!
-----------------------------------------------------------------------------
There has been a recent breakthrough! Starsector user "Mikohime" has managed to convert Java 23 into a playable version for Starsector, resulting in a MASSIVE increase in FPS and general performance. It's some tech wizardry that I lack the credentials to explain properly but I'll post the links with instructions.
Requires : Starsector 0.97a-RC11
Required Java : github.com/adoptium/temurin23...
Download Link : github.com/Yumeris/Miko_repo/...
First link is to the required Java 23. The second link is to Miko's wizardry, which includes the instructions needed to get it all working. I have tested this myself, and can confirm it works, at least with vanilla. I'll be testing with additional mods in time once I get some more time.
-----------------------------------------------------------------------------
vmparams - Smooth brain copy & paste edition:
java.exe -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt -Djava.library.path=native\\windows -Xms8192m -Xmx8192m -Xss2048k -XX:PermSize=512m -XX:MaxPermSize=512m -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
-----------------------------------------------------------------------------
Fast Engine Rendering mod by tomatopaste:
fractalsoftworks.com/forum/in...
Seriously, this mod is great. I don't know why it doesn't get more attention, so here I am... Giving it attention.
-----------------------------------------------------------------------------
Thumbnail artwork by CY / Milkydromeda, featuring the Exoscar from the United Aurora Federation (UAF) mod.
Twitter: / c_yukimaru
Twitch: / c_yukimaru
UAF Mod Page: fractalsoftworks.com/forum/in...
-----------------------------------------------------------------------------
Video made using Sony Vegas Pro 14
Music by Dark Fantasy Studio and from Music Mania Bundle
Emotes from Omega Strikers (amazing game by the way) - Hry
IMPORTANT PLEASE READ (updated 2/21/2024):
-After switching to java 8, if you are having issues with the launcher / resolution / screen fuckery: Right-click Starsector.exe -> properties -> compatibility -> change high DPI settings -> tick checkbox for "Override...Scaling performed by Application". -Thanks Wisp!
-You can change a LOT in the config settings file, including max player level (40 is absolute max, as there are 40 skills total), max ships allowed in fleet (30 is default), and even the fps limit (default 60). Tinker with these at your own discretion.
-You may have to reset your game settings and re-enter your Starsector license upon Java 8 upgrade.
-There has been a recent breakthrough! Starsector user "Mikohime" has managed to convert Java 23 into a playable version for Starsector, resulting in a MASSIVE increase in FPS and general performance. It's some tech wizardry that I lack the credentials to explain properly but I'll post the links with instructions.
Require : Starsector 0.97a-RC11
Required Java : github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B7-ea-beta/OpenJDK-jdk_x64_windows_hotspot_ea_23-0-7.zip
Download Link : github.com/Yumeris/Miko_repo/releases/download/R26.3/Mikohime.23.release_26.3.zip
First link is to the required Java 23. The second link is to Miko's wizardry, which includes the instructions needed to get it all working. I have tested this myself, and can confirm it works, at least with vanilla. I'll be testing with additional mods in time once I get some more time.
Thank for video ❤
Had something similar happen even while using similar version. Using the Legacy launcher worked but I found it weird I didnt get the same results.
There is no need to downgrade your launcher to fix that problem.
Right-click Starsector.exe, Properties, Compatibility, Change high DPI settings, tick checkbox for "Override...Scaling performed by Application".
This is covered in the Java 8 + vmparams update guide pinned by Alex on the forum.
Pin this Comment
Thanks!
Its almost as if I can feel a thousand Semibreves blowing up at the same time... without losing a frame across the Sector.
Excellent.
You really got an unhealthy obsession with nukes... I like it !
Megabreve when?
Through the years, 2 things were always driving technological progress of computers
One is ever increasing needs of dwarf fortress since few cats decided to adopt dwarves and were ignored for too long
And other is neverending need to render more of and bigger explosions
Imagine if the Breves had Final Fantasy Flare scales.
Breve.
Megabreve.
Gigabreve.
*Terabreve.*
*_Zettabreve._*
@@IDESTROYER236 Zettabreve and it resets your entire game but something is different every reset ff14 style
One big problem with newer versions of Notepad:
If ''word wrap'' is enabled and a line wraps around, Notepad will save the file exactly like this, creating a 'new line' symbol wherever necessary. This WILL mess up your VMparams and any other file that requires very specific formatting.
The fix is pretty simple: disable word wrap, put everything back onto one line and save again.
I'm using Notepad++ as a replacement, which doesn't have this issue, but there are more options available.
There is chaos in the control room.
I think anyone who's been around starsector for... uhh... couple... dozen... hundred... hours does this automatically almost. Still, props to you Lion for making a compact easy guide for people who may not know about the kinks of this little game. I know I didn't know about JRE8 for literal years until stumbling upon a forum post completely at random.
It should be also mentioned, larger battles kind of devolve the battlefield into a big blob of ships without much sense of command anywhere on the battlefield, for some that's okay, for those that enjoy giving out orders, it might be reasonable to say, do not go overboard with the battle size. Oh yeah and just in case you do... I'm just going to... hold on...
"maxShipsInFleet":30,
"maxShipsInAIFleet":30,
You might want to "adjust" these settings a bit higher, my settings are 40/60, 40 for me, 60 for the AI.
Now excuse me, I've a lots of big explosions to enjoy.
So everyone does it? that is good to know :D
@@MithrilRoshi Yeah - Alex (the dev) himself pinned a guide on the official forum with (almost) these exact steps.
big battles devolve into a game of beyblade with too many players thanks to the lyora
it's great
I genuinely laughed at "if you're on Mac, get a better OS"
*Laughs in Linux*
Love the Omega Strikers emotes, and the tutorials are wonderful and clear, appreciate the work put into the video!
7:48 The xms and xmx are your lower and upper limit of what you told to your computer to allocate RAM for. Ex
-xms2048m -xmx8192m is for allocating AT LEAST 2GB of ram and AT MOST 8GB of RAM for whatever java runtime you running, either it be starsector or something else.
PS. If you want to shorten 8192m, try using 8G (case sensitive. Do not change 8G into 8g)
great tip, writing 8g may flatten your PC into a pancake depending on the structural integrity of your case.
@@danilooliveira6580 why i cant save this file if i am the admin, it shows that i have no acces to such operation in this folder but can can edit any other file?
@@IsweepI Same problem for me.
@@fuzclock8561 Don't know about notepad but i', using notepad++ and to save the changes it asked me to run notepad++ as an administrator.. I believe the admin privileges must hinder you as well.
Note for future viewers, lowercase g is also perfectly fine. Oracle docs actually use lowercase g for gigabytes, both do the same thing.
My guy, your videos are
1: Fun to watch
2: VERY well made in terms of Audio and Video quality
3: Informative and concise
Thank you! And I hope you keep it up
My game was down to like 13fps on battle size of 400. I have a Ryzen 5 5600x, 32gb ram, and an RTX 3080. I couldn't believe this game was straining that. Anyway this video saved me.
Thanks!
Switching to JRE8 definitely improves performance and the Vmparams changes help when using lots of mods. The before and after for me using these changes is like a caveman discovering fire.
This saved me, my battles with capital ships would go down to 10-15 fps, when facing [REDACTED] ships it would be so bad it would go to 5 fps and a single skirmish with an Ordo would take 10-20 minutes. Now I went against a [REDACTED] Nexus and it was smooth as butter maintaining 50-60 fps only dipping on large explosions. Thank you so much!
That's awesome, cheers friend!
Confirmed on twitter that the next update or so will be on Java 17 LTS, which will be a huge increase in perf
I never even thought to upgrade the java version like this. I can't wait to REALLY throw my starsector into overdrive. Thanks for this guide! (:
Hey man, thanks for upgrading my Starsector experience. I can tell this works when I've launched a couple semibreves against a battlestation and see no FPS drops. I can play with more ships on screen. I haven't had this much fun in ages!
I can finally make use of a majority of that mods you had showcased in that other video. I used to not use it cuz of the slowdowns it'd cause, but not anymore! I'mma go crazy with the amount of mods I can use safely now that my FPS can take it.
I carefully followed the instructions and it has breathed new life into Starsector for me. I had all sorts of mods but long suffered from lag/stuttering in larger battles, slow save times and the inevitable long term death of saves when the chugging became too much and it would no longer be able to save or load. Now, other than some slight slowdown in 1000 point fleet battles it is like a Starsector 2.0 release. ^_^ Thanks dude.
The Java garbage collector is an interesting beast. It slams the universe to a halt to do its job, so making the heap too large can reasonably be expected to cause issues. Thanks for sharing a guide on this.
Can't say I blame him for nor wanting to develop for the newer version. a lot of the recent Java features just break the historical conventions of the language. I don't really care for it myself.
Streams for instance, those are functional programming, but what's faster (for big collections), looping through an array or doing it with streams ;D
@@123FireSnake Efficient? Yes, easy to read or maintain? God awful. Java is a do everything everyhow language at this point. The advantage is flexibility of implementation. Unfortunately, that flexibility can cut both ways.
Java is remarkably efficient. It still loses out a little compared to compiled languages, but the margin is pretty thin at this point.
@@dtaggartofRTD well quite a bit can be solved by proper code formatting for streams every operation on a new line for instance
.filter
.map
.filter
.collect
sadly in many languages efficient stuff get's difficult to read as it's not spelled out anymore. Pointer magic in C++ Comprehensions of comprehensions in python and so on
@@123FireSnake I'm not sure there's a good way to format that stuff. Even breaking it out by line that way does little to deobfuscate what the hell a stream operation chain is doing. It just doesn't match anything else in the language.
Yep, bigger heap isn’t always better. Remember seeing a deep dive into optimizing G1GC for games (in particular minecraft), and there are ways to counter-act this issue… but it’s been years. ZGC and Shenandoah are fun to play around with as well if you can run newer JREs, but they have their issues as well.
Man Iron dropping relevant info and blowing up the sector like the Ludd tankers that just rammed your supercaptial.
Great video! I can add two more speedup tips that might apply only to some players. If your game is extremely slow or simply doesn't start properly due to an "IWJGL" error, your copy of Java might be running off an integrated graphics card rather than a high performance dedicated one. I have a guide on the forums in the last post of "Exception in LWJGl initialization error" that shows how to fix this on a windows machine.
Also, if you encounter a huge framerate drop when using the targeting feed ship system, you could be running into a rendering bug on an AMD card. Installing my mod "Targeting Feed Slowdown Fix v1.1" should fix it.
It's hilarious that you kept the thumbnail CY made in his stream, deffinetly needed this video to stop the vram alert and memory leaks :D
For people wiyth scaling issue (game/launcher showing off-center and looks wired):
Right click starsector → property → compatibility → Change high DPI setting → then tick box for "Override scaling performed by applications"
Thx a lot
Many thanks friend...
Bout 2 thirds in the vid and I just noticed the Omega Strikers emotes. Thanks for the tutorials and videos; You've got great taste!
Most excellent. I will be doing this little upgrade soon. Also wasn't expecting the Mustard Gas line. Got a good chuckle out of it. I also see you are a man of culture with Omega Strikers emotes, love em.
Could've probably also added raising the FPS cap for people with higher refresh rate monitors. It's the first line in settings.json iirc
0:44 - "It's be far too costly to switch game engines"
...And in an alternate universe where Fractal Software used Unity, they now owe Unity... $15 million dollars in fees.
Thankfully Starsector follows the old design of "build your own gorram engine"
@@BlackTempleGaurdian
Also... Fractal Software made Starsector on Java. Last I checked, Alex is not a billionaire that also owns Java.
@@matchesburn What's Starfield got to do with anything?
Starsector was coded in Java, but Java is a language, not an engine.
Nice.
Found your channel very recently by searching for a "Mount and blade in space" Game and you immediately made me buy and download Starsector together with the UAF and the Sindrian Fuel Company mods.
Just thought about performance yesterday and increased the RAM but i didn't know about the Java Version.
The download link commitment even gets a comment from me, to feed the algorithm. Thank you sir
Thank you for this. I knew most of this stuff already from scattered sources on the forum and discord but it is very nice having it all in one place I can easily come back to.
Dude your style is perfect for guide videos like this! Keep it up
Lion is a godsend! Just yesterday i lost all my progress on my new file due to running out of vram and not being able to save the game, this video helps A LOT with performance.
Thanks alot for the tutorial Iron, I would of never know this was even an option without this video
Absolutely crucial video. It maybe not bring you many views, but i am so glad you decided to do it. Thank you very much:)
haven't played starsector in quite a while. watched 2 videos of you and updated the game and mods directly for tomorrow after work. nice summarized informations worth an abo and like. keep the quality going
Just finally updated my java! Holy shit this has made it so much better and smoother! Keep up the great work and THANKS
as a java dev there are so many things that trigger my OCD in the video )
first of all you dont need to upgrade to quite old java 8, you can straight up go to latest java 21 or whatever it is now... since youre upgrading the JRE (environment) not JDK (Development Kit)...
Also you dont need to keep it powers of 2 for memory settings you can give it any number, and you can use g for gigabytes so -xmx8g is the same as giving it maximum of 8 GB memory...
Thanks for sharing and compiling all of this together!
Well done Lion, Thank you and safe travels in the sector
New player here, started playing because of your videos. Thanks for this one too!
Thanks for the guide! Now I can play to the late game without worrying about tanking my FPS too much
Thanks for this, guide. Looking forward for more content!
Perfect! Just as I decided to download new version yesterday, thanks!
Damn you Lion. Watching a StarSector video makes me want to put another 100 hours in.
hi there sir,
you got yourself a subscription thx for keeping the links updated
Already did the upgrade, the main advantage is fixing the slowdowns during campaign. Performance is better overall but not by a large amount, at least on my pc. It probably works better with larger battles that my 560 can't support
Thanks. i never knew i could slap in a newer java before this. i learned a lot about star sector from your channel.
Awesome video! Thanks bro.
2:20 so subtle 👌👌
You can tell a game is loved by its community when they know how to edit the files and OS its running on.
Thanks a lot for the engine update tutorial.👍
You have gained a subscriber now.
Thank you so much for this video ! It's so useful, my saving time went from 20 to 5 seconds. Just some problems with the launcher, when I tried to execute starsector as administrator a log told me it couldn't read the vmparams file. But after tweaking the properties and reinstalling the game, it worked.
what di you do i cant get it work at all
@@magnusburgone5998I have to admit I've done it completely at random, ask someone more experienced than me because if I try to help you it will, at best, not advance and at worst it will completely break your game.
Awesome video man!
Thanks for the guide!
Excellent tutorial, commenting to help with engagement
I'm probably gonna come back to this vid every time I update Starsector. XD
That made a massive difference, thank you!
Very useful. Thanks for the guide.
You practically forced me to subscribe with this one
this is fantastic thank you. My game used to loose frames after 20 minutes and saves took for ever. but now its all running fine even after few hour game session.
but one interesting thing. i'm still on 95a cause of mod compatibility and vmparams doesn't have the XX:Permsize and adding these lines still worked.
This was helpful.
Thank you.
Nice!
Thx for the video!
Great tutorial, clear and well explained
Thank you for this!
Something you should to know: your voice is great! ^.^
You're a Godsend for the Starsector Community
Big thanks my friend, this community is blessed
switching to 165fps feels sooOOoOOoooO good, thanks brother
Great video! Thanks a lot!
I'll name my captial ship after you as a gratitude. (and try to not loose it, no promises :D )
Great tutorial! Subbed!
Imp *PLAP-PLAP-PLAP*, GET MODDED GET MODDED GET MODDED. PS thanks for the guide. Didnt know you need to change the java version in the game file. only done the ram part
Hey! Hey! I already subscribed SO THERE! Keep up the great work dude!
Take my subscribe you wonderful person!
It worked! Thanks bro!
Interestingly enough, the setting "AllowAnyJavaVersion" is already set to *true* in Starsector 0.96a RC10 .
Thank you, Oh Great One!
My loading time is still shite but i changed it to java 8 with only minor issues. Thanks for the guide
Java 8 won't help with initial load time, that's mostly based on the amount of mods installed. But it should help with saving times while you are in-game. Thanks for the comment!
as someone who dedicated their life to the queen of Auroria, dangerously overrides any safety in my ships like an Andrada on Steroids. This video is a 10/10 guide.
may the semibreves never hit you, or your general vicinity
you're the hero we don't deserve
Your voice . . . Oh my God, your voice is . . .
Your voice takes my breath away.
it took me from 0.91 to 0.95 to figure out how to upgrade the dam java for the game now this video is 10/10 good job and am saving it
Hey hey people, the brilliant people modding starsector just figured out how to have it run on java 23.
It's amazing, give it a try it's in the description.
Thanks, I hardly lose any frames even after long play sessions since these small modificaitons.
Good guide.
Thank you sir!
Getting the right Java version...this made my life so much better.
Okay I subscribed!
1:11 a man of culture i see 😉
Good thing I found this, it's been years since I played and I had forgotten about the java upgrade and wasn't aware of the other steps, all I did was increase the dedidated wam.
The game still slows down to a crawl often, restarting helps but these steps should help. I was wondering how my modern beefy pc struggled where my 2015 piece of shit handled Starsector just fine. Thanks!
Finally it is here
*Cries in 15fps*
thank you so much ♥
Update starsector to nextgen? ludd may want a word with you ironclad.
Yo , clad thx for the video
sadly my starsector just dont open now haha,i am figuring out why tho love you vid!!
Done 👍✅
You're doing Ludds work my friend
Me, already subscribed, "I'm doing my part!"
Subscribed
Thanks 🙏
Thx very much
Thank you for help
Good little helpful video, had to play it at 2x speed though. :)
Just get my subscribe and like. You deserve it!
Nice guide now i won't need to restart every hour to fix my lag :D
Love your voice man