eduran84 / LTN_Tracker

Other
7 stars 6 forks source link

Station tab enhancement #11

Closed eduran84 closed 5 years ago

eduran84 commented 5 years ago

Based on the discussion in the forums: https://forums.factorio.com/viewtopic.php?f=214&t=64842#p398277

Ideal outcome

You would be able to do "show only yellow and blue stops with 'Iron' in their name", with results sorted by whatever column is currently clicked.

Thoughts

Performance issue

0ptera commented 5 years ago

Does every client execute the whole UI generation or just the one opening it? If you have 3 players each viewing a different tab, does each client also populate the others tabs!? That sounds like a massive performance drain.

I'm no fan of clicking through pages, Shuttle train light does that and it's looking not as good as your current complete list and it takes much longer to find a stop if you don't know what page it's on. Waiting a tiny bit longer for a complete list to populate or trimming results down through networkID sounds like a better way to go.

eduran84 commented 5 years ago

If you have 3 players each viewing a different tab, does each client also populate the others tabs!?

Yes, that's how it is. They don't render the UI elements, but the lua code has to run in sync on all clients.

eduran84 commented 5 years ago

Implemented with 0.9.1.