[2.0.43] show-entity-time-usage missing multiple milliseconds

Bugs that are actually features.
Agnasius
Manual Inserter
Manual Inserter
Posts: 4
Joined: Wed Jan 08, 2025 5:38 pm
Contact:

[2.0.43] show-entity-time-usage missing multiple milliseconds

Post by Agnasius »

As my factory has grown larger, I've begun to run into performance issues and when trying to profile the entity times, I noticed that there is a (sometimes large) discrepancy between the entity times of show-time-usage and what show-entity-time-usage shows.
For example, in the screenshot, show-time-usage shows 15.067ms, show-entity-time-usage's total shows 11.116ms and, for what it's worth, when manually adding all the times of the listed entities, I come out at 11.338ms.
I noticed that the spoilage mechanic's time usage isn't explicitly listed anywhere. I could imagine that maybe this is the reason?

In case you need the save file, I hope this link works: https://drive.google.com/file/d/1Ou5BV5 ... sp=sharing
Attachments
factorio-current.log
(16.27 KiB) Downloaded 12 times
Factorio Screenshot 2025.04.14 - 20.14.13.14.png
Factorio Screenshot 2025.04.14 - 20.14.13.14.png (13.01 MiB) Viewed 207 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15689
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.43] show-entity-time-usage missing multiple milliseconds

Post by Rseding91 »

Thanks for the report. This is working correctly: the entity time usage shows everything in the "always updates every tick, or never updates" style of updating. There are several entity types that do not use this method of updating and so aren't possible to show in this time display.

Those entity types are:

Beacons
Logistic Robots
Construction Robots
Roboports
Lightning
Fire flames
Corpses

Additionally, some entities only update when a hostile force is nearby - such as worms, turrets, landmines, and so on. Those also won't show in the "entity time usage" list.

Given logistic manager's time usage in your screenshot my guess is logistic/construction robots.
If you want to get ahold of me I'm almost always on Discord.
Agnasius
Manual Inserter
Manual Inserter
Posts: 4
Joined: Wed Jan 08, 2025 5:38 pm
Contact:

Re: [2.0.43] show-entity-time-usage missing multiple milliseconds

Post by Agnasius »

I see. Thanks for the reply!
Post Reply

Return to “Not a bug”