Connection Indicators


Shows indicators when fluid connections, inserters, and miners which are connected or obstructed

Utilities
10 days ago
1.1 - 2.1
3.35K
Fluids

g [Fixed] Performance Issues while Ghosting

12 days ago

I'm not sure what could be causing it, but somehow this mod appears to be causing a significant amount of performance issues while ghosting objects, even if those objects don't have fluid connectors.

For example, if I have a tile brush like for Stone Bricks or Concrete and start ghosting to cover a portion of my base in concrete, the 'show-time-usage' debug option shows mod-fluid-connection-indicators taking upwards of 10ms in the first number and upwards of 150 in the third number, and every few seconds while ghosting there's a massive hitch. It also shows the Lua Garbage Incremental spiking during this, though not quite as intensely. Similar behavior can be observed when pasting blueprints, especially ones with tiles. The more entities and tiles are ghosted, the higher the performance hit. It recovers very quickly, and I don't notice any issues when simply observing ghosts. Similarly, placing entities/tiles without actually ghosting them, such as by hand or by Editor mode, doesn't cause the performance hitch either.

I've tested it with only this mod enabled on the latest release of factorio 2.1, with default settings for this mod. My main concern isn't even necessarily the performance directly (although it is a problem) - it's mostly that if I or any of my playgroup attempt to place a large blueprint down in a multiplayer session, the server stops responding for the length of the lag spike and can sometimes drop the other players.

12 days ago

The mod has triggers on building of entities. It has to check each entity, including crafters, inserters, miners, and it does it at very next tick.

If you paste, or even just ghost, a ton of buildings, it will hitch.

There are several possible optimizations e.g. ignoring tiles, and spreading updates over more ticks when there are many. That should alleviate the issue.

11 days ago

Uploaded a fix. Let me know if helped.

10 days ago

Forgive me if I'm overlooking something, but I don't see an update available in the game's mod menu. Was it uploaded somewhere else rather than the mod portal?

10 days ago

Huh weird. Seems like the publish got eaten somehow.

It's published now.

10 days ago

Just tested it and the issue is gone. Thanks much!

New response