Commit Graph
9 Commits
Author SHA1 Message Date
Firenoo 78d88fb9c3 Network throttle: Force ME update packets to be sent once every 50ms.
1. Item and fluid packets are separated to their own classes, as they are
not even allowed to be mixed together in the first place. This will enforce a strict
separation of the two.

2. New network worker thread for handling ME inventory updates. Instead of
creating packets directly, classes should schedule packet(s) to be sent at the
next 50ms boundary. The packet has a limit of 256 items to prevent killing the
client, but this can be changed in the config. In fact, the packet send rate is
also configurable.

3. Upon opening a terminal GUI, ME update packets are split. Only the last received
packet will trigger a terminal sorting, so if the ME system is large, it may take
several seconds (!) to load all the items.

(cherry picked from commit 4513a83d6d)
2023-03-25 20:40:36 +01:00
firenoo 9c2ef02383 Split packets when sending items over network (#107)
Packets are now split into smaller chunks when sent. The packet
size is adjustable in the config.
2023-03-23 17:14:14 +01:00
Jason Mitchell 69a5c0e6ee [ci skip] spotlessApply with the new settings 2023-01-28 17:43:10 -08:00
GlodBlock 80340dbd75 add portable fluid cell 2023-01-28 23:15:33 +08:00
asdflj 5e31096c7e spotless apply 2022-12-05 14:41:36 +08:00
GlodBlock 61cdd8c487 black essentia gas from ThE 2022-07-13 20:05:14 +08:00
GlodBlock 0501c65153 add config to remove recipes 2022-06-05 23:44:52 +08:00
GlodBlock 33823e3546 recipe and config 2022-05-27 22:41:11 +08:00
GlodBlock 18647ceb31 config file 2022-05-11 22:07:01 +08:00