First, thanks for the save. This is a pretty decent sized one with > 1,600 stations and 270 trains.
I did some performance measuring and some tweaks to the code and I can run this save on my somewhat aged M2Max Macbook Pro at consistently 60 FPS. There are some "hiccups" that are not related to LTN (I think py Alien Life has some heavy activity).
Some of my notes:
- All major updates will only go to the LTN 3.x series which is for Factorio 2.1. I tested your map with Factorio 2.1 and it worked fine.
- LTN Manager, when it processes updates, can take a lot of time. I saw some UPS drops with LTN Manager that went away when I disabled it.
- For the next release, I split out the update and ticker settings. I am running with ticker = 2 (every other tick), update 4 stations per tick and schedule up to two requests per tick and that seems to work well with this map
- There were two bugs that I backported to 2.0 so there are some improvements for people still on 2.0
- The piece that I was most suspicious of (the route calculation) takes some time but not as much as I thought. I did some major improvements around route caching but it bought me less than I thought.
- There was a surprising amount of performance improvements in the stop-events and stop-updates.