Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Poll

How is your Java 23 Experience?

It's great, working just like advertised
- 101 (60.5%)
It's better than vanilla
- 38 (22.8%)
It's making my game run worse
- 3 (1.8%)
I am still using Java 8 (JRE8)
- 25 (15%)

Total Members Voted: 167


Pages: [1] 2 3 ... 7

Author Topic: [0.97a-RC11/0.96a-RC10] Mikohime Java 23  (Read 18413 times)

Himemiko

  • Ensign
  • *
  • Posts: 43
  • a very clumsy miko
    • View Profile
[0.97a-RC11/0.96a-RC10] Mikohime Java 23
« on: February 27, 2024, 08:34:10 PM »



Descriptions:
Spoiler
[close]
a Conversion Kit to run Starsector on Latest Java 23, Provides up to 90% FPS & Stability Improvement over Stock Vanilla in Campaign with SUPER STABLE COMBAT FPS, the kit came with pre-configured Modern Java GC Shenandoah to ensure smooth and long run gameplay stability.

Important Information
Game Version need to Be Matching, Please Check Your Game Version First!
Error 0xc0000000005
Check if the game accidentally use your iGPU, if you only have iGPU reduce the size you pick (you ran out of ram)
If you already changed the game into using your Dedicated GPU and its still crashing like this, check if your PC Memory is Stable

For Windows User :
Required Java :


For Version 0.97a-RC11


For Version 0.96a-RC10


For Linux Distro User :
Required Java :


For Version 0.97a-RC11


Benchmark (Campaign Nexerelin Speed Up 24x)
Methodology:
CapFrameX on 120 sec capture on Campaign with Nexerelin and Speed Up (24x)
running as fast as possible on latest Ryzen 7000





[close]

Benchmark (Glib Combat Mission)
Methodology:
CapFrameX on 60 sec capture on GraphicLib Benchmark Mission




[close]

Frequently Asked Questions & Troubleshooting


  • Where is the Instruction?
did you opened the other zip yet?, its inside there.. if you havent download the other one then please do so

  • What is Shenandoah?
a very fast concurrent garbage collector that the game needed to run well or in nerd words :
"Shenandoah is the low pause time garbage collector that reduces GC pause times by performing more garbage collection work concurrently with the running Java program. Shenandoah does the bulk of GC work concurrently, including the concurrent compaction, which means its pause times are no longer directly proportional to the size of the heap. Garbage collecting a 200 GB heap or a 2 GB heap should have the similar low pause behavior."

  • Will This Affect My Save Games?
No, changing java does not affect your ongoing saves at all

  • is this better than the other Java?
Yes however Experience May Varies, This Java & Presets is Pre-Configured & Tested personally for over 2 Years

  • What other benefit this offer?
detailed nullpointer crash reason, you can help modder to Hotfix crash faster by giving the exact reason why it crash


  • Why am i not getting performance uplift?
try changing the starsector-core\data\config\settings.json (data\config\settings.json in linux)
Edit the settings values as specified below (do not just copy the whole block into settings.json)

"vsync":false,
"fps":1000,
"forceNoVBO":false,
"useGLFlush":false,
"useGLFinish":false,

(note: you can also set said fps to 120 or sth, 1000 is just my personal one)

  • Sound Fail to initialize / OooooOOo Sound error
make sure the game version is correct, you can try rerunning the game installer to be sure

  • Error 0xc0000000005
Check if the game accidentally use your iGPU, if you only have iGPU reduce the size you pick (you ran out of ram)
If you already changed the game into using your Dedicated GPU and its still crashing like this, check if your PC Memory is Stable

  • i am seeing non-default stack size specified warning on my left screen
there is companion "mods" included to disable that or you can edit your settings.json for this two lines
    "doRAMandVRAMChecksWhenRunningWithMods":false,
    "memoryCheckVerbose":false,

  • Launcher is stuck game not launching / JVM cannot use large page memory
if you're seeing this message :
    OpenJDK 64-Bit Server VM warning: JVM cannot use large page memory because it does not have enough privilege to lock pages in memory.
use the preset inside "Alternatives VMParams" (you can also remove two LargePage line inside Miko_R3.txt)
if what you're experiencing is slow launcher startup / not showing up at all.. restarting should fix this (just Windows Large Page behaviour, it'll try to defrag it)

  • Could not load file: ..\mikohime/.rouge_owo
place mikohime folder into your starsector installation! xD

  • what magic trick you do to get 90% performance uplift?
a lot of profilling and testing for over 2 year

  • My Games Is Stuttering After Installing/Applying This
Try Increasing your VMParams Size above what you have right now, the next step you can do is using preset inside Adaptive zip.

    • Why Mikohime Previously Isnt Posted on Forums?
Limited Testing Scopes, now i have some confidence it doesnt explode.. enjoy it xD

  • Which Size Should I Use?
First Thing First you want to open your Task Manager and look at Performance Tabs -> Memory, its Recommended to use Size thats below your Free Memory. Here is my Personal Recommendation:
Below 3GB = 1GB
4GB - 6GB PC = 2GB
8GB PC = 3 or 4GB
16GB PC = 6GB
32GB PC = 8GB

  • How to add this to Steam Launcher?
some user called "lieght" shared some guide how to do this, you can follow this step :

No steam overlay:
Because we are using a .bat file, we can't just add it to steam as a non-steam game. steam only "allows" .exe files to be added as a non-steam game. We can circumvent this quite easily by just adding any random .exe file instead and then changing the target of it to be the Miko_Rouge.bat file. However, doing it like this doesn't allow us to use the steam overlay and everything else that steam has to offer, like its fps counter.

With steam overlay:
In the steam ui:
games -> Add non-steam game -> browse -> "C:\Windows\System32\cmd.exe"
After adding cmd.exe as a game, right click on it and click on properties.
In the properties give it a nice name and give it a picture that you like. You can find the picture that miko uses in: \Starsector\mikohime\ui
Change target to be:
"C:\Windows\System32\cmd.exe" /k DRIVE:\where\starsector\is\installed\Miko_Rouge.bat
for me that would be:
"C:\Windows\System32\cmd.exe" /k C:\games\Starsector\Miko_Rouge.bat
Change start in to be:
DRIVE:\where\starsector\is\installed
for me that would be:
C:\games\Starsector

for the people that don't like having the cmd/bat file open in the background (the black box):
Install the Miko_Silent.bat and put it in your starsector folder.
change target to be:
"C:\Windows\System32\cmd.exe" /C DRIVE:\where\starsector\is\installed\Miko_Silent.bat
For me that would be:
"C:\Windows\System32\cmd.exe" /C C:\games\Starsector\Miko_Silent.bat
That is all you have to do.

  • My Audio Crackling
Use this experimental addons that you can get from here
[close]

Changelogs:
R26.4b : reupload to include Miko_silent & guide to add into steam library
R26.4a : reupload to add _win & _linux suffix into zip filenames.
R26.4 : Fixed Illegal Instruction on Older CPU & Mute Debug Logging
Spoiler
[close]

Credits:

Friends: that trust my stupid jargon over 2 years and tested it for me
Helpful Modders Community: Being Poison Tester
Unnofficial Starsector Discord Server People: Tester & Feedbacks
« Last Edit: April 05, 2024, 03:14:46 AM by Himemiko »
Logged

Himemiko

  • Ensign
  • *
  • Posts: 43
  • a very clumsy miko
    • View Profile
Re: Java 23 Conversion Kit [Mikohime 26.4]
« Reply #1 on: February 27, 2024, 08:35:38 PM »

Reserved.
Logged

Mayu

  • Lieutenant
  • **
  • Posts: 54
    • View Profile
Re: Java 23 Conversion Kit [Mikohime 26.4]
« Reply #2 on: February 27, 2024, 08:42:29 PM »

Extremely helpful. Good work, himehime!
Logged

Dal

  • Commander
  • ***
  • Posts: 159
    • View Profile
Re: Java 23 Conversion Kit [Mikohime 26.4]
« Reply #3 on: February 27, 2024, 08:43:51 PM »

I was extremely fortunate to get to use this during the testing period - over the last years I've had 0 issues and fully endorse Hime's amazing work!
Logged

lili

  • Ensign
  • *
  • Posts: 28
  • a fat guy from the sea
    • View Profile
Re: [0.97a-RC11/0.96a-RC10] Mikohime Java 23
« Reply #4 on: February 27, 2024, 11:33:18 PM »

GOOD! ;D
Logged

Dadada

  • Captain
  • ****
  • Posts: 383
    • View Profile
Re: [0.97a-RC11/0.96a-RC10] Mikohime Java 23
« Reply #5 on: February 28, 2024, 03:11:29 AM »

Thank you, &%$!ing awesome! I am gonna try it out.
Logged

Bangle

  • Ensign
  • *
  • Posts: 26
  • Overdosing on mods.
    • View Profile
Re: [0.97a-RC11/0.96a-RC10] Mikohime Java 23
« Reply #6 on: February 28, 2024, 03:31:16 AM »

Used it since Discord release. Gotta say, one of the best additions to the modding list!
Logged

RoquetheRogue

  • Commander
  • ***
  • Posts: 110
  • personal text.
    • View Profile
Re: [0.97a-RC11/0.96a-RC10] Mikohime Java 23
« Reply #7 on: February 28, 2024, 12:10:52 PM »

I used to have just an awful experience with performance with the modded starsector, kept trying to lower resolutions, setting low configs in graphics lib, my obsessive impulse would also have me to going through mod folders and reducing content on some mods I liked but were generally more demanding on my game.

After I started using Java 23, I can have a vanilla-like experience in a heavily modded game and I keep asking myself, how wide can I make my modlist now? so far, I have been running 99 mods, some are obviously pushing it, but the fact I can still play the game should tell you a lot.
Logged
A mind that opens itself to a new idea never returns to it's original size.

NikoTheGuyDude

  • Commander
  • ***
  • Posts: 231
    • View Profile
Re: [0.97a-RC11/0.96a-RC10] Mikohime Java 23
« Reply #8 on: February 28, 2024, 04:06:56 PM »

Is using the .bat a strict requirement, especially if jdk-23+7 is renamed to jre, and Miko_R3.txt renamed to vmparams? Additionally, can this be ran through intellij debugger? If so, how? Run the .bat through it?
Logged

Himemiko

  • Ensign
  • *
  • Posts: 43
  • a very clumsy miko
    • View Profile
Re: [0.97a-RC11/0.96a-RC10] Mikohime Java 23
« Reply #9 on: February 28, 2024, 05:05:45 PM »

Is using the .bat a strict requirement, especially if jdk-23+7 is renamed to jre, and Miko_R3.txt renamed to vmparams? Additionally, can this be ran through intellij debugger? If so, how? Run the .bat through it?
the .bat is to reduce user-error and ensure they can launch the game normally if sth gone wrong, as for using it with IDE.. just point it through "@Miko_R3.txt" / "@../Miko_R3.txt" at the end of it or copy the txt. (please make sure you dont target 21 xD)
Logged

ddrake

  • Ensign
  • *
  • Posts: 8
    • View Profile
Re: [0.97a-RC11/0.96a-RC10] Mikohime Java 23
« Reply #10 on: February 28, 2024, 07:00:00 PM »

Both tests on system screen at 4x speed on 250% (RATs) generation with about 20 faction mods with Nex.

Shednoah (Java 8?) 25FPS.
Mikohime (Java 23) 48 FPS.

Seems to be working great for me.
Logged

Audax

  • Commander
  • ***
  • Posts: 172
    • View Profile
Re: [0.97a-RC11/0.96a-RC10] Mikohime Java 23
« Reply #11 on: February 28, 2024, 08:44:19 PM »

This works wonders, for anyone wanting to have increase performance this is probably top 1. I used to have fps drops down to around 30 fps in heavy combat now it sits around 40-60 fps depending on how heavy the fighting goes and this is running with 2x-3x speed from speed up mod while just normal speed is consistent 60 fps. Great Work!

Himemiko

  • Ensign
  • *
  • Posts: 43
  • a very clumsy miko
    • View Profile
Re: [0.97a-RC11/0.96a-RC10] Mikohime Java 23
« Reply #12 on: February 29, 2024, 10:10:12 PM »

Reuploaded to reword the Instruction.
huh.. that also reset Download Count for repo i guess
Logged

Godofchaos

  • Ensign
  • *
  • Posts: 22
    • View Profile
Re: [0.97a-RC11/0.96a-RC10] Mikohime Java 23
« Reply #13 on: March 01, 2024, 05:49:51 AM »

So the mod is like a nuclear reactor fully optimised ? my god that's a lot of power !
Logged

Heretic01

  • Ensign
  • *
  • Posts: 7
    • View Profile
Re: [0.97a-RC11/0.96a-RC10] Mikohime Java 23
« Reply #14 on: March 01, 2024, 08:06:16 AM »

The mod (not sure if the word applies) is superb. I have a relatively powerful PC, and thought I don't need any optimisation/performance improvements. I was mistaken — thanks to Java 23 my experience with the game improved drastically. Before I tried the mod, modded Starsector was a bit rough on the edges. Not anymore. Now it's smooth as silk, and feels so much better without any FPS drops I wasn't even aware of before.
Awesome work, brilliant results. Thanks!
Logged
Pages: [1] 2 3 ... 7