Game performace drops with chunks explored + my mod [10.2]
Posted: Mon Jul 07, 2014 12:27 am
Using: Factorio 10.2 - note this doesn't seem to happen on 0.9.8
I'm attempting to track all water bodies generated in the world by chunk and link them if they connect. Right now the mod does that but I'm having a strange issue where the game's performance drops off quickly with the more chunks explored.
Now, I expect it to take longer to generate chunks due to the water-body checking I'm telling it to do but even after it's finished chunk generation and background chunk generation the game still lags massively compared to without the mod.
The mod literally only executes code during game first-launch and chunk generation: I have no idea what's causing the lag and would appreciate any help.
Simply install the mod and generate a new world - turn the game speed up to allow background chunk generation to do its thing or explore a decent amount and watch the "Update Time" on the debug screen. It climbs steadily even though the "Script Update" section shows the mod never uses over 0.2 MS(while exploring)/0.06 (on average when background generation runs) and nothing once background chunk generation is done.
https://www.dropbox.com/s/ep4dae8r6wgjc ... acking.zip
I'm attempting to track all water bodies generated in the world by chunk and link them if they connect. Right now the mod does that but I'm having a strange issue where the game's performance drops off quickly with the more chunks explored.
Now, I expect it to take longer to generate chunks due to the water-body checking I'm telling it to do but even after it's finished chunk generation and background chunk generation the game still lags massively compared to without the mod.
The mod literally only executes code during game first-launch and chunk generation: I have no idea what's causing the lag and would appreciate any help.
Simply install the mod and generate a new world - turn the game speed up to allow background chunk generation to do its thing or explore a decent amount and watch the "Update Time" on the debug screen. It climbs steadily even though the "Script Update" section shows the mod never uses over 0.2 MS(while exploring)/0.06 (on average when background generation runs) and nothing once background chunk generation is done.
https://www.dropbox.com/s/ep4dae8r6wgjc ... acking.zip