Hello everyone, thank you for taking the time to read about my issue!I have had a problem that has been a pain in my backside for years now, that is Starsector starting to stutter manifesting as consistent framerate drops every 2 seconds from 60 fps down to as much as half of that, depending on the number of ships in my fleet, before the framerate goes instantly back up to 60.
- The issue appears right from the start, by the time the first loading ends, provided i have a number of ships in my fleet.
- The issue is present all over the campaign layer only, the battles are extremely smooth, locked a 60 fps, even at battlesize 600.
- There is no difference in stuttering intensity or timing whether in system or hyperspace.
- It seems unrelated to whatever is equipped on the ships themselves, guns or hullmods, as the issue present itself even with a full fleet of empty hulls. Furthermore, i can reliably reduce the intensity of the fps drops by reducing the number of ships in the fleet without having to reload a save, down to no noticable stutters with only a single flagship left.
- During the playthrough, it seems that every spike and stutter correspond to new missions intel being displayed on the campaign layer (on the left side of the screen), but that may be in my head.
- Speeding up the campaign layer reduces the delay between stutters, but do not make the framerate drop further; and pausing the campaign layer locks the framerate back up to 60fps.
- The issue persist no matter the amount of RAM dedicated in VMPARAMS (tested on 3,4,6 & 8GB), MezoTronik's, Winka & Shenandoah VMPARAMS & Java versions, across the board.
- No tweaking of VSYNC, Nvidia CP, or Library Mods seems to influence it after VERY extensive testing.
- Reducing the number of factions mods down do not influence it, nor does changing the sector procgen method, as Adjusted Sector, RAT & vanilla procgen all result in the same stuttering.
Here are my computer specs & Starsector launch parameters :
- CPU - Intel Core i7-8700K (12 cores at 3.70GHz)
- GPU - GeForce 1080TI (11GB VRAM)
java.exe -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt -Djava.library.path=native\\windows -Xms4096m -Xmx4096m -Xss2048k -XX:MaxPermSize=128m -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
Spoiler
------------------------------------------------------------
------------------------------------------------------------
\Libraries\Combat-Activators
\Libraries\Crew Replacer
\Libraries\GraphicsLib
\Libraries\LazyLib
\Libraries\LunaLib
\Libraries\MagicLib
\Libraries\Market Retrofits
\Libraries\Particle Engine
\Libraries\VariantsLib
------------------------------------------------------------
------------------------------------------------------------
\Megamods\AshesOfTheDomain
\Megamods\Hazard Mining Incorporated (Only HMI & Brighton)
\Megamods\Industrial Evolution
\Megamods\Nexerelin
\Megamods\Random Assortment of Things
------------------------------------------------------------
------------------------------------------------------------
\Factions\Iron Shell (Unofficial Discord release)
\Factions\Everybody Loves The KO Combine
\Factions\Mayasuran Navy
\Factions\Tri-Tac Special Circumstances
\Factions\Underworld
------------------------------------------------------------
------------------------------------------------------------
\Content Expansions\Amazigh's Ship Foundry
\Content Expansions\Asteroid ship pack
\Content Expansions\BigBeans Ship Compilation
\Content Expansions\Caymon's Ship Pack
\Content Expansions\Diktat Enhancement
\Content Expansions\Domain Explorarium Expansion
\Content Expansions\ED Shipyard
\Content Expansions\Emergent Threats
\Content Expansions\Exotica Technologies
\Content Expansions\Fuzzy Pack
\Content Expansions\HighTech Expansion
\Content Expansions\Hyperdrive
\Content Expansions\LOST_SECTOR
\Content Expansions\LowTech Armada
\Content Expansions\Luddic Enhancement
\Content Expansions\Missing Ships
\Content Expansions\Nes's SAW
\Content Expansions\Pirate Mini Mod
\Content Expansions\Rotces Rats
\Content Expansions\Scrapyard Armories
\Content Expansions\Ship And Weapon Pack
\Content Expansions\Starship Legends
\Content Expansions\Stop Gap Measure
\Content Expansions\Support Ships Pack
\Content Expansions\tahlan Shipworks
\Content Expansions\Thogs Domain
\Content Expansions\Thogs REDACTED
\Content Expansions\Unthemed Weapons Collection
\Content Expansions\More Hull Mods (modinfo updated)
\Content Expansions\Survey Corps (modinfo updated)
\Content Expansions\SEEKER_UC (Bootleg)
\Content Expansions\Superweapons Arsenal (Bootleg)
\Content Expansions\Torchships And Deadly Armaments (Bootleg)
\Content Expansions\Vayra's Ship Pack (Bootleg)
------------------------------------------------------------
------------------------------------------------------------
\Miscellaneous\Adjusted Sector
\Miscellaneous\AI Retrofits
\Miscellaneous\Aptly Simple Hullmods
\Miscellaneous\Attuned Drive Field Hullmod
\Miscellaneous\Automated Commands
\Miscellaneous\Better Colonies
\Miscellaneous\Better Variants
\Miscellaneous\Carter's Junk Hull Mods
\Miscellaneous\DIY Planets
\Miscellaneous\Fleet Journal
\Miscellaneous\Fleet Size By DP
\Miscellaneous\Forge Production
\Miscellaneous\Grand Colonies
\Miscellaneous\Illustrated Entities
\Miscellaneous\More Combat Terrain Effects
\Miscellaneous\More Military Missions
\Miscellaneous\Persean Chronicles
\Miscellaneous\Planetary Shield Access Control
\Miscellaneous\Quality Captains
\Miscellaneous\Slightly Better Tech-Mining
\Miscellaneous\Special Hullmod Upgrades
\Miscellaneous\Substance Abuse
\Miscellaneous\Take No Prisoners
\Miscellaneous\Terraforming and Station Construction
\Miscellaneous\Too Much Information
\Miscellaneous\Unusually Gullible Hullmods
\Miscellaneous\Commissioned Crews (modinfo updated)
\Miscellaneous\Internal Affairs (modinfo updated)
\Miscellaneous\Shielded Holds For All (modinfo updated)
\Miscellaneous\Unknown Skies (modinfo updated)
\Miscellaneous\Locked-and-Loaded (Bootleg)
------------------------------------------------------------
------------------------------------------------------------
\Utilities\A New Level of Confidence
\Utilities\Advanced Gunnery Control
\Utilities\Audio Plus
\Utilities\Autosave
\Utilities\Combat Chatter
\Utilities\Combat Radar
\Utilities\Console Commands
\Utilities\Content Unlocking Missions
\Utilities\Dynamic Tariffs
\Utilities\Fleet History
\Utilities\Fuel Siphoning
\Utilities\Hostile Intercept
\Utilities\Larger Zoom Out
\Utilities\Leading Pip
\Utilities\Logistics Notifications
\Utilities\MoreBarMissions
\Utilities\Officer Extension
\Utilities\Planet Search
\Utilities\Portrait Changer
\Utilities\QoL Pack
\Utilities\Ruthless Sector
\Utilities\SpeedUp
\Utilities\starpocalypse Revengeance
\Utilities\stelnet
\Utilities\trailer-moments
\Utilities\Weapon Arcs
\Utilities\Which Mod
\Utilities\Which TMI
\Utilities\Clear Commands (modinfo updated)
\Utilities\Fast Engine Rendering (modinfo updated)
\Utilities\Flux Reticle (modinfo updated)
\Utilities\Overlord Additional Commands (modinfo updated)
\Utilities\Scaling Skill Limits (modinfo updated)
\Utilities\Ship Direction Marker (modinfo updated)
\Utilities\Lightshow (Bootleg)
------------------------------------------------------------
------------------------------------------------------------
\Portraits Packs\AI Portraits of AI - Lite
\Portraits Packs\Immersion Friendly Portrait Packs
\Portraits Packs\Interesting Portraits Pack
------------------------------------------------------------
------------------------------------------------------------
\Faction Flags\Player Faction Flag Pack
\Faction Flags\Simple Player Faction Flags
VisualVM graphs :Here's a typical modded playthrough, with a 20 ships fleet, running laps around the star of a 4 markets system :
- Here's the same exact save, with the same exact fleet but fresh ships with no hullmods, captains or guns:It seems that i have better performance here, but no, about the same amount of stuttering.
Here's the same exact save as the first shown, but i've deleted all ships save the flagship, still with hullmods, guns & captain, so only 1 left:And for reference, here's what a JRE8 unmodded game looks like on my rig:And what my computer looks like at idle :
Now, i am not expecting for a quick fix, but at least some answers, like "Do the used heap on an unmodded game really supposed to look like that?", at this point i feel like i tried everything, but i'm still open to suggestions.
I wish all of you that made it this far to have a great sunday, and i await your input on this..!
EDIT : I apologize for the grammar, english isn't my first language.