Commit Graph
10 Commits
Author SHA1 Message Date
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 <dream-master@gmx.net>
2023-04-01 14:04:39 +02:00
asdflj aef677868b add hotkey and baubles support 2023-02-17 22:34:06 +08: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 dc6445bb6e check nei 2022-07-29 22:10:58 +08:00
GlodBlock 2d585bd280 ? 2022-05-13 22:04:01 +08:00
GlodBlock f5a089e959 fix no NoClassDefound in server 2022-05-13 21:24:07 +08:00
GlodBlock db2ad29b52 begin work 2022-05-10 17:57:38 +08:00