How to find out which mod causes performance problems?

Place to get help with not working mods / modding interface.
Post Reply
Dragonling
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Sep 12, 2019 2:00 pm
Contact:

How to find out which mod causes performance problems?

Post by Dragonling »

Hello.
I am using over 120 mods for my multiplayer game. It was predicatable that one day a client will suffer due to performance problems. My base is tiny (pre-rocket even).

How can I find out which mods affect performance (UPS and network responsiveness, not FPS) most?
For example, I have found the advice to press F4 and turn on show-time-usage. But with 120 mods the list does not match the screen.

I believe, there should have been such a topic, but I don't know how to search for it.

Hiladdar
Fast Inserter
Fast Inserter
Posts: 214
Joined: Mon May 14, 2018 6:47 pm
Contact:

Re: How to find out which mod causes performance problems?

Post by Hiladdar »

A good start would be, under default keyboard assignments, press F4, the check the box "Show Time Usage". Then press F4 again.

On the left part of your screen you will see text, and under a line "script-update" will be a list of mods and how much computing resources they use.

Hiladdar

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: How to find out which mod causes performance problems?

Post by DaveMcW »

It would be nice if "show-time-usage" sorted by average time. Maybe only refresh to sort order every few seconds to avoid jitter.

Dragonling
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Sep 12, 2019 2:00 pm
Contact:

Re: How to find out which mod causes performance problems?

Post by Dragonling »

Since noone knows a better solution, is there a way to save/export "show-time-usage" into a file or clipboard and then analyze it offline?

Hiladdar
Fast Inserter
Fast Inserter
Posts: 214
Joined: Mon May 14, 2018 6:47 pm
Contact:

Re: How to find out which mod causes performance problems?

Post by Hiladdar »

One way would be to bring the information up. Than hit the PrtScrn button on the keyboard, that loads up your current display into the computer's buffer. Load any type of a paint program. For this I use PC-Paint, and click paste. The final step is to save the file.

https://www.wikihow.com/Use-Print-Screen would be an example specific to W10.

Hiladdar

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: How to find out which mod causes performance problems?

Post by eradicator »

Dragonling wrote:
Tue Oct 22, 2019 4:56 am
Since noone knows a better solution, is there a way to save/export "show-time-usage" into a file or clipboard and then analyze it offline?
You can decrease debug-font-size=18 in config.ini, but if all of your 100+ mods run scripts i'm not sure if you can fit them while still being humanly readable.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Dragonling
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Sep 12, 2019 2:00 pm
Contact:

Re: How to find out which mod causes performance problems?

Post by Dragonling »

eradicator wrote:
Wed Oct 23, 2019 4:12 pm
You can decrease debug-font-size=18 in config.ini
Well, that's something. Thank you.

User avatar
BlueTemplar
Smart Inserter
Smart Inserter
Posts: 2420
Joined: Fri Jun 08, 2018 2:16 pm
Contact:

Re: How to find out which mod causes performance problems?

Post by BlueTemplar »

Hiladdar wrote:
Tue Oct 22, 2019 8:00 pm
One way would be to bring the information up. Than hit the PrtScrn button on the keyboard, that loads up your current display into the computer's buffer. Load any type of a paint program. For this I use PC-Paint, and click paste. The final step is to save the file.

https://www.wikihow.com/Use-Print-Screen would be an example specific to W10.

Hiladdar
That doesn't work well when your text is off-screen or covered by something else.
Also it returns a picture and not text, unless you use OCR.
BobDiggity (mod-scenario-pack)

Hiladdar
Fast Inserter
Fast Inserter
Posts: 214
Joined: Mon May 14, 2018 6:47 pm
Contact:

Re: How to find out which mod causes performance problems?

Post by Hiladdar »

BlueTemplar wrote:
Thu Oct 24, 2019 11:37 am
Hiladdar wrote:
Tue Oct 22, 2019 8:00 pm
One way would be to bring the information up. Than hit the PrtScrn button on the keyboard, that loads up your current display into the computer's buffer. Load any type of a paint program. For this I use PC-Paint, and click paste. The final step is to save the file.

https://www.wikihow.com/Use-Print-Screen would be an example specific to W10.

Hiladdar
That doesn't work well when your text is off-screen or covered by something else.
Also it returns a picture and not text, unless you use OCR.
I only see you trolling me by stepping up to take another cheep shot at me. Dragonling's question was how, and I took the time to give that individuals If you want to be constructive, give Dragonling another solution to resolve his problem.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: How to find out which mod causes performance problems?

Post by eradicator »

Hiladdar wrote:
Thu Oct 24, 2019 8:00 pm
I only see you trolling me by stepping up to take another cheep shot at me.
You didn't even bother to fully read the @OP (Ye know, the part where he mentiones that F4 info is too large for his screen...). You're the one taking cheap shots.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Modding help”