I managed to get rid of most of the stuttering by using a OpenGL injector called Special K and applying the recommended vsync settings to the config file:
PresentationInterval=1
BackBufferCount=-1
PreRenderLimit=-1
SwapChainWait=0
AllowTearingInDWM=true
I did additionally turn on their fps limit, resizable bar and nvidia reflex, but these only very slightly improved latency.
All of the constant stutter is gone, only slight intermittent stutter during first loadup in hyperspace remains.
The downside is that the injector really does not like that the launcher uses the same process name and as such it must be turned on manually after the game is loaded.
I guess this isolates the problem as some kind of vsync issue?
i force vsync off in nvidia panel + config file and fps limiter to -1 in the config file. With gsync on + fps limiter in control panel. There is some stutter in campaing but nothing too bad: the start menu screen is perfectly fluid, so the campaign stutters comes from something else like data streaming or java code.
Final : unrelated to mikohime java.
Anyway, i havent tested others config files but the 11/21 gb versions give me an error (log file : cannot find xx file) and a crash when i click too fast on the start button. If i wait 10 seconds, there is no problems. Look like the SS window opens too fast comparatively to the asset loading and it breaks something.
heavily modded game, 32 gb ram, 3800 mhz ddr 4 3080ti 12gb
edit: i'm wrong, it's nto related to timing, it is random, at the start of the loading of the game
sometimes it says this.
OpenJDK 64-Bit Server VM warning: Individually allocated large pages failed, use -XX:-UseLargePagesIndividualAllocation to turn off
OpenJDK 64-Bit Server VM warning: Failed to reserve and commit memory using large pages. req_addr: 0x0000000400000000 bytes: 17179869184
redit : it's related to huge use of memory previously, and windows did not defragment the memory pool yet. Win mem alloc "bug"?
the starsector screen takes a while to appear if something used a lot of memory before but never fails
it's possible there's enough physical memory available but they are so fragmented after a long run that they can't coalesce into large pages. Try to serve large pages when the system is still "fresh".
https://stackoverflow.com/questions/45968433/java-hotspottm-64-bit-server-vm-warning-failed-to-reserve-shared-memory-erSo, game continues to crash at start up randomly, once it's launched :/ but once it's loaded it works flawlessly. Mem alloc problem i guess.
it's somewhat different than the behaviour explained in the Q/A, but it seems related. Imma test the optional config file.
there is also thoses lines
WARNING: package java.nio.Buffer.UNSAFE not in java.base
WARNING: package java.awt.Rectangle not in java.desktop
[4.013s][warning][trimnative] Native heap trim is not supported on this platform
edit: it seems to be two differents problems. the error shown in the picture cant be fixed with the optional config file
Final : unrelated to mikohime java.
It's a bootleg mod (torschip) from the forum that behaves weirdly randomly. Unrelated to torchships.
i believe it's cops.