Stellaris

Stellaris

302 ratings
StellarStellaris
6
3
4
2
5
4
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
25.172 KB
12 Jun, 2021 @ 7:19am
2 Oct, 2022 @ 11:08pm
7 Change Notes ( view )

Subscribe to download
StellarStellaris

Description
If the game is updated: This mod will probably still work fine, it is extremely simple. I don't update the version until I've confirmed it works and improves performance.



This is a simple mod that attempts to improve late game tick performance. It uses the new set_update_modifiers_batch effect to try to disable modifier updates for all but 1 day per month.

**warning:** May have unpredictably weird side effects, if you find anything specific, report in discussions.

Image above shows original (blue) and modified (green) monthly tick performance as recorded by the -gamestatetimer console option in my test game.


Not guaranteed to work right, may cause weirdness, may cause issues with other mods that use set_update_modifiers_batch. Please report any testing results in the discussion section.


See my other mods for outliner update rate changes and galaxy map fleet culling changes.
Related (non-mod,WINDOWS only) performance work:
https://github.com/MattMills/stellarstellaris-win
My Patreon if you feel so inclined:
https://www.patreon.com/RadioCapture




Support discord: https://discord.gg/Mtm5nURDSC
Popular Discussions View All (2)
9
1 Nov, 2022 @ 10:47am
Does it work for you?
f0urtyfive
0
27 Feb @ 11:50am
Multiplayer Compatibility
Conevent49
119 Comments
Inerael 3 Aug @ 8:29am 
sins it has not been updated, does someone know if it works please ?
Ramos.C 22 Jul @ 5:25am 
Compatible with Ariphaos Unofficial Patch? Thaks
SirMars 19 Jul @ 10:42am 
@f0urtyfive, Is this working for multiplayer? I used it for a long time and it worked prior. I was reading bellow that it causes dysyncs in multiplayer
f0urtyfive  [author] 16 Jun @ 3:07am 
[cont...]


Oh, and I forgot to mention that a lot of game state gets cleared and regenerated at the start of some of the ticks (like the yearly tick).

Now the problem comes when your grubby meat sticks get involved, pawing all over the UI, and the game is going slow enough that in the frame in between the game state being reset, and finishing being regenerated, you've clicked on something that doesn't exist yet, and since frame smoothing was so kind enough to render a new frame and try to process your click or interaction with that thing that doesn't exist yet then the game crashes.

Without frame smoothing this is completely fixed because your input isn't handled (and no new frames are rendered) in the interim period where the tick has reset the game state, and finished rebuilding it.

Fun fact: While frame smoothing makes the UI appear more responsive, it makes the tick literally more slow, in some cases significantly.
f0urtyfive  [author] 16 Jun @ 3:07am 
@Raven the CTD you're experiencing is a flaw in the design of the frame smoothing within the core game, you can prevent it by using the smooth console command to disable frame smoothing, but this will also cause the game to freeze entirely during any slow tick (monthly, yearly, etc).

The game runs in a very basic loop where it handles input, processes a tick, and then renders a frame (which simultaneously updates any of the gui elements or recalculates every piece of math visible on screen). This probably worked great initially, but obviously if you're doing a late game yearly tick it's going to take a bit, so at some point they added "frame smoothing". All frame smoothing is some added calls into the monthly/yearly/daily tick to something like RenderFrameIfWeAreLate() which just stops what the tick processing was doing and renders a new frame without attempting to do any of the recalculation math (but it DOES handle mouse/cursor/joystick input, if I recall correctly).

[cont...]
Raven 16 Jun @ 12:35am 
just wanted to say your mod cut my 2400+ month times in half. only issue i have is i get random CTD's to desktop every couple hours. It seems to be from either too many events occuring and not clicking them within the allowed time or queing up starbase modules/upgrades while the game is not paused.
Kirigamigame 7 May @ 5:55pm 
Disables achievements
DodoMans 3 Feb @ 4:04pm 
mod does not seem to work properly in multiplayer, and causes various issues including some events saying the option was picked by another player, while not having coop enabled
fLaMaster 31 Jan @ 5:32am 
I have only one question for author or someone who familiar with stellaris moding. There used "is_ai = no". If turn on for ai too, it's are break something or what?
fLaMaster 31 Jan @ 5:27am 
Jeezz, stop asking about update! Mod itself does not have a lot code and as far i see, does not used some variable what can be edited or removed by any patch without messing with game basics like stellarstellaris.{1-3} and set_update_modifiers_batch.

So, in another word, it may be work forewer.