Lupus590, on 13 February 2022 - 02:19 PM, said:
I'm going to assume that the startup program isn't causing issues as it's not actually managing the reactor, it's just an auto-update utility.
As for the main program itself, I'm more familiar with CC:T on 1.16+ so some of my info may not be relevant to classic CC and older MC versions but I'll try to help anyway.
You could try reading this post: https://www.computer...o-optimization/
Also, I believe that SquidDev also improved context switching between computers, so having one computer manage multiple reactors might help as you'll minimise the amount of context swapping that the mod has to do.
As for the main program itself, I'm more familiar with CC:T on 1.16+ so some of my info may not be relevant to classic CC and older MC versions but I'll try to help anyway.
- Local variables are quicker to access than the global ones that you are using (lines 1, 2, and 10)
- The for loop on line 24 could be optimised by doing what ipairs is doing manually (not as nice code but it saves lua the effort at run time)
- Sleeping for longer on line 16 might help too.
You could try reading this post: https://www.computer...o-optimization/
Also, I believe that SquidDev also improved context switching between computers, so having one computer manage multiple reactors might help as you'll minimise the amount of context swapping that the mod has to do.


