ChunkyChunks - Configurable Gridlines

by Qon

Chunk aligned blueprints? Display chunk lines without the annoying tile lines that the debug option adds. Configurable grids at any sizes if your blueprints are substation, chunk, roboport or radar sized (or any other size)!

Utilities
22 days ago
0.17 - 2.0
8.40K

b FPS drops when used with Factorissimo2

3 years ago

This mod draws gridlines on all surfaces. Factorissimo creates a lot of surfaces. Result, in my case, is "script render preparation" of 22-24 ms per frame and FPS in 30-40 range (with UPS at 60). Turn gridlines off, "script render preparation" slowly (over several seconds) lowers to 0.05-0.1 ms, turn gridlines on and it rises again. CPU usage graph shows full additional core used when gridlines are on.

And my factory is far from "megabase" level: I'm not even up to Utility science, only 57 buildings. I use gridlines for "city block" design, and don't need them inside Factorissimo buildings (they don't align with anything useful inside anyway).

Suggestion: add a config option to draw grid lines:
- only on nauvis
- or only on current surface
- or specifically exclude Factorissimo surfaces.

P.S. Great mod otherwise (when used without Factorissimo)!

3 years ago

Thanks for reporting :)

"script render preparation" is not a part of my mods code, so it's a problem with Factorio not handling all those lines on all those surfaces "properly". Not really saying it's a bug in Factorio, more like the way Factorio is optimized isn't geared towards a lot of render objects on many different surfaces. So this mods usecase combined with Factorissimo and Factorio together isn't the best.

A "nauvis only" setting might be fairly simple to implement. Can't promise any timelines for when it's done though right now.

2 years ago
(updated 2 years ago)

I ran in to this playing a space exploration + factorissimo game, an 'only on the current surface' option would be amazing

Edit: For what its worth I have noticed that if you disable the 'show center' option in the grid the performance improves considerably, maybe that will help in tracking down a solution for this

2 years ago
(updated 2 years ago)

Maybe a limit option for keeping only the last N amount of visited surfaces would be optimal. Surfaces you don't visit won't have a grid until you visit them and the toggling is kept quicker as well. Would take some time to make but seems like it could be worth it. I'm getting back into Factorio so a fix is slightly more likely this time than last, thanks for the reminder.

The center marker is actually just another grid with large spacing :)
So it doubles the amount of lines.
All the grids are actually long (like 10k tiles long) dashed lines to keep the amount of things to render low, they just intersect in a way that makes it look like rendered squares. Fun fact of the day

1 year, 11 months ago

This is actually even worse in multiplayer. Any player that has this enabled triggers this delay for all other players. So if you yourself don't have it enabled, doesn't matter, someone else might have it enabled. There is also a difference between toggling the lines via the shortcut menu and alt mode.

All in all we had to unfortunately remove the mod as it was costing us 10-15 UPS via FPS.

2 months ago
(updated 2 months ago)

Great mod, used it find, now getting massive slowdowns with the grid displayed. I do have multiple surfaces as am playing SE plus also have made limited use of Factorissimo. Mod is kinda indispensable for me, I have my custom gridlines to perfectly align more blocks and base structures, but without it working its a pain.

Would love a fix, tho understand its not a bug, a new feature for "current surface only"? Happy to test or help if I can.

2 months ago

I'm happy that you find the mod useful! At Factorio 2.0 release I'll have to stop procrastinating the updates, so I guess my current bug fixing schedule at least won't be pushed back endlessly :s

Having people request updates is making me looking forward a little bit to go back to modding again. Still burnt out but slightly healed each time :) thanks

New response