Commit Graph
7 Commits
Author SHA1 Message Date
Firenoo 72bd124684 EC2 deprecation: Part 1 - Items
Laying the groundwork for absorbing EC2 mappings.
2023-05-01 19:04:37 +02:00
firenooandMartin Robertz e1b3f20078 Network throttle: Force ME update packets to be sent once every N ms. (#110)
* 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.

* Update SPacketMEFluidInvUpdate.java

---------

Co-authored-by: Martin Robertz <[email protected]>
2023-04-01 14:04:39 +02:00
Jason Mitchell 69a5c0e6ee [ci skip] spotlessApply with the new settings 2023-01-28 17:43:10 -08:00
asdflj 3f35dadb41 add walrus 2023-01-25 14:08:36 +08:00
GlodBlock fe1ec6276d add fluid storage bus 2023-01-17 22:41:49 +08:00
asdflj 5e31096c7e spotless apply 2022-12-05 14:41:36 +08:00
GlodBlock db2ad29b52 begin work 2022-05-10 17:57:38 +08:00