Fractal Softworks Forum

Starsector => Bug Reports & Support => Bug Reports & Support (modded) => Topic started by: Warbiatch on August 18, 2019, 04:35:40 PM

Title: Poor performance in battles
Post by: Warbiatch on August 18, 2019, 04:35:40 PM
So I know people ask this a lot but maybe someone knows out of their head what mod causes this terrible performance.

CPU: Intel Core i7-2600 3,4GHz
Ram: 16 Gb (I did this thing where you allocate more RAM to the game, did 8GB)
GPU: Nvdia GTX 1060 6GB

Mods:
(https://i.imgur.com/5EJC0nH.png)

I tried turning off some options from GrpahicLib but that kinda made it even worse. Before I got around 25 FPS 0% Idle, after disabling it in the options (without unticking it for compatibility) I got like 15-20 FPS 0% Idle.
The lag mostly comes from fighters it seems, though I might be very wrong there.

Thanks in advance.

Title: Re: Poor performance in battles
Post by: Omnikuken on August 18, 2019, 05:55:42 PM
You only need 4GB max in Java settings and welcome to most people on AMD cards
Title: Re: Poor performance in battles
Post by: Kesh on August 18, 2019, 07:07:07 PM
Try looking into this

http://fractalsoftworks.com/forum/index.php?topic=8726.0

Title: Re: Poor performance in battles
Post by: xenoargh on August 18, 2019, 07:15:29 PM
There is no way he's running out of VRAM or RAM here.  That's not an AMD chipset, either.

Try:

Setting the option that turns GraphicsLib OFF.
Lowering Battle Size.
Disable Music.
Disable Sound.

Basically:

1.  GraphicsLib still occasionally has shader initialization / other OpenGL issues on certain chipsets / drivers.  Usually not nVidia, but there can be exceptions.
2.  Battle Size governs a lot of things, but it lowers CPU loads considerably.  If that's where you're choking, it'll help.
3.  It's always possible that too much stuff's being submitted to the sound drivers or your hardware isn't handling streamed OGG files well and the game's getting choppy as a result.  It's unlikely, but it could be happening.
Title: Re: Poor performance in battles
Post by: Warbiatch on August 19, 2019, 01:27:59 AM
There is no way he's running out of VRAM or RAM here.  That's not an AMD chipset, either.

Try:

Setting the option that turns GraphicsLib OFF.
Lowering Battle Size.
Disable Music.
Disable Sound.

Basically:

1.  GraphicsLib still occasionally has shader initialization / other OpenGL issues on certain chipsets / drivers.  Usually not nVidia, but there can be exceptions.
2.  Battle Size governs a lot of things, but it lowers CPU loads considerably.  If that's where you're choking, it'll help.
3.  It's always possible that too much stuff's being submitted to the sound drivers or your hardware isn't handling streamed OGG files well and the game's getting choppy as a result.  It's unlikely, but it could be happening.

I tried all of it, the only difference was made by the battlesize, which makes sense but playing with such a low battlesize is little fun and I feel like my rig should be easily able to handle it.
 
Vanilla SS at least ran without lags at battlesize 400.
Does anyone have any idea which mod is heavy on the performance side? If at all possible I'd like to remove as few mods as possibles.
Title: Re: Poor performance in battles
Post by: Snrasha on August 19, 2019, 04:03:26 AM
There is no way he's running out of VRAM or RAM here.  That's not an AMD chipset, either.

Try:

Setting the option that turns GraphicsLib OFF.
Lowering Battle Size.
Disable Music.
Disable Sound.

Basically:

1.  GraphicsLib still occasionally has shader initialization / other OpenGL issues on certain chipsets / drivers.  Usually not nVidia, but there can be exceptions.
2.  Battle Size governs a lot of things, but it lowers CPU loads considerably.  If that's where you're choking, it'll help.
3.  It's always possible that too much stuff's being submitted to the sound drivers or your hardware isn't handling streamed OGG files well and the game's getting choppy as a result.  It's unlikely, but it could be happening.

I tried all of it, the only difference was made by the battlesize, which makes sense but playing with such a low battlesize is little fun and I feel like my rig should be easily able to handle it.
 
Vanilla SS at least ran without lags at battlesize 400.
Does anyone have any idea which mod is heavy on the performance side? If at all possible I'd like to remove as few mods as possibles.
Try to see on the Discord, because you have many mods and on the unofficial discord, some people can point you.
Per exemple for my case, Gladiator Society is very light. Compared to Interstellar Imperium which is a fat mod(but top-tier, so in this case, remove Gladiator for win basically nothing, but this is always better)
After, i have never tried every utility mods than you use  but Starship legend+ Nex + Ruthless sector +well, 99% of utility mods available. They can be heavy. So, better to see on the unofficial Discord, they know maybe the cost (and like there are many people).
Title: Re: Poor performance in battles
Post by: Clibanarius on August 19, 2019, 06:01:27 AM
As I have been having the exact same issue, I've been tinkering to see which mod is causing the problem, as I can get nearly 60 FPS during a battle normally, but with NEARLY THE SAME MODLIST AS YOURS I'm getting drops to 24 during heated combat. I've narrowed it down to Audio Plus, SpeedUp, or Unknown Skies. Will have an answer shortly as to which it is.
Title: Re: Poor performance in battles
Post by: Clibanarius on August 19, 2019, 06:07:50 AM
SpeedUp it is! Seems, anyway! Even without using the activator, it takes a lot of processing power.
Title: Re: Poor performance in battles
Post by: Snrasha on August 19, 2019, 08:36:21 AM
SpeedUp it is! Seems, anyway! Even without using the activator, it takes a lot of processing power.
Report it to the mod thread of speedup, because the creator will not see it.


Edit:
Answer of DR: Impossible.
Quote
SpeedUp literally doesn't do anything unless you're pressing a button.
The entire mod is one simple script.
You have to activate a time multiplier for it to have any effect.
Title: Re: Poor performance in battles
Post by: Dark.Revenant on August 19, 2019, 09:11:28 AM
(https://i.imgur.com/hbqd3tA.png)

This is with me sitting there with one ship in the simulator, pressing no buttons.
Title: Re: Poor performance in battles
Post by: Nick XR on August 19, 2019, 10:05:42 AM
So I know people ask this a lot but maybe someone knows out of their head what mod causes this terrible performance.

CPU: Intel Core i7-2600 3,4GHz
Ram: 16 Gb (I did this thing where you allocate more RAM to the game, did 8GB)
GPU: Nvdia GTX 1060 6GB


Just to be sure, this isn't a laptop right? 

Combat Analytics doesn't use much CPU time, you can look at it's logging after a battle it'll print total and average frame time to the log.

I use about half of those mods on a 7 year old compy without issue, but it does chug a bit when fighting fighter heavy battles.
Title: Re: Poor performance in battles
Post by: Warbiatch on August 19, 2019, 10:09:01 AM
No it's not a laptop.

When I'm home I'll check the log for the frames.
And also Try disabling the Speedup mod.
Title: Re: Poor performance in battles
Post by: Warbiatch on August 19, 2019, 03:15:15 PM
Quote
SpeedUp it is! Seems, anyway! Even without using the activator, it takes a lot of processing power.
For me its definitely not SpeedUp.

I also tried disabling Unknown Skies and Audio Plus - no change.

Quote
Combat Analytics doesn't use much CPU time, you can look at it's logging after a battle it'll print total and average frame time to the log.
Sorry but I can't seem to find the FPS in the log?

Spoiler
I just want to throw a quick thank you in, for trying to help me here.
[close]
Title: Re: Poor performance in battles
Post by: Nick XR on August 19, 2019, 04:09:51 PM
Your hardware seems capable, so the only thing left is one (or more!) of your mods is a perf hog.  To track down what is causing the issue you have a few options, but none of them good.

1. Start disabling mods and see if you can figure out by elimination which one is the cause.  This probably won't work well because that process will break your testing save.
2. Use a Java profiler to figure it out:  https://docs.oracle.com/javase/8/docs/technotes/guides/visualvm/profiler.html   If you can figure out which methods and classes in your mods are using the most time, you could consider removing those mods.  But you need to be very technical to get this working.

Maybe others will have ideas that aren't bad :/

Is your fleet fighter heavy by chance?  Lots of fighters firing lots of projectiles (especially missiles) will generate a LOT of work in a short amount of time for the computer.
Title: Re: Poor performance in battles
Post by: Warbiatch on August 20, 2019, 02:42:46 AM
Quote
Is your fleet fighter heavy by chance?  Lots of fighters firing lots of projectiles (especially missiles) will generate a LOT of work in a short amount of time for the computer.

Yeah it is, kinda figured it's the main problem.



Quote
1. Start disabling mods and see if you can figure out by elimination which one is the cause.  This probably won't work well because that process will break your testing save.

I'll try that when I got time and if i find any particular mod taking a lot of perf I shall share my secrets for future generations to come.