Pyanodons Alien Life


Adds farming, ranching, and pharmaceutics into Factorio. It's extremely unethical but also extremely profitable. WARNING! This mod will greatly enhance and extend the rest of the pY mods. Expect a 1000+ hour long game!

Overhaul
6 days ago
1.0 - 2.0
56.6K
Transportation Logistics Mining Fluids Logistic network Manufacturing Power

g Performance potential issue

3 years ago
(updated 3 years ago)

I'm having a hard time locating the exact cause, however, I know you were doing something with the on_research_finished event, so starting with you since I'm running your suite.

When a research completes, there is a significant hitch in the game, which is magnified if I have the research window open. If this is from you, would it be more performant to capture buildings placed via the on_entity_placed event, store that in the table, and then just parse that much smaller table to find which buildings to upgrade? Additionally maybe do the process on Nth tick, to spread the load some? (Build table, then start an on Nth tick using another function that runs and removes the upgrades as it processes them, so that each Nth tick that table gets smaller, then when it reaches 0, it stops until it's initiated again by a new research completion.)

3 years ago

I'm not doing anything with on_research_finished that should be causing hitching. I've already moved things around so that there shouldn't be anything major it that event. Can you provide a save and ill have a look at what's happening?

3 years ago

I'm still looking through things, but here is the save in case you see something first. Yes it has a lot of mods :P
https://gofile.io/d/rG5hBS

New response