PneumaticCraft: Repressurized

PneumaticCraft: Repressurized

43M Downloads

Severe lag when sending a lot of data to a Drone through an Interface

squoshi opened this issue ยท 1 comments

commented

Describe the bug

As said in title, there's severe lag (both server and client side) when a Drone is recieving a lot of data through a computer.
As soon as the drone is placed down, there is a clear difference between before and after.
image

How to reproduce the bug

The following code:

di = peripheral.wrap('right')
w = 10
while w > 0 do
    di.addArea(di.getDronePositionVec().x + 1, -60, di.getDronePositionVec().z + 1)
    di.setAction('goto')
    di.clearArea()
end

completely lags out the (internal) server when run to an Interface.

Expected behavior

Less lag than shown.

Additional details

No response

Which Minecraft version are you using?

1.18

Which version of PneumaticCraft: Repressurized are you using?

3.4.4-14

Crash log

No response

commented

TBF that program is really not the way you want to be doing stuff. You're continually setting an area/action & clearing an area in a tight loop. Server TPS issues are pretty much inevitable in that case.

What are you actually trying to achieve here? This might be better discussed on Discord where others with CC/Lua experience can chip in.