Mob Grinding Utils

Mob Grinding Utils

57M Downloads

Fan causing massive lags

LemADEC opened this issue ยท 6 comments

commented

As of 0.3.4, fans can be spammed around with no restrictions nor consequence for players while killing the server TPS.
Please consider changing the implementation or gameplay around those blocks as we can't keep them enabled on public servers 'as is'.

commented

Hello,
The Fan code hasn't changed since the original implementation so it's strange this issue has cropped up now. I've not had any reports of this before, I'll take a look at the code but don't think there is much I'll be able to do for your TPS issue.
Cheers,
Me.

commented

Other mods fans have usually the same issue: you can spam a cheap block in an area and every block is looking for entities in the area.
Entity lookup is slow.

commented

Closing for now as I don't see a fix for this being implemented to stop player's placing loads of blocks - use less blocks and add upgrades to make them more efficient I guess.

commented

We can't really count on player to reduce the number of fans, so we'll have to disable them for the time being.

commented

FWIW: facing the same issue on our server - been looking for another solution to the massive TPS sink that these fans are for some reason, but we're out of options: having to ban/disable them :(

A sponge timings sampling that highlights the performance bottleneck. At first glance it appears that the lag is the result of an interaction between the fan TileEntity's behavior and GriefPrevention's entity collision code.

  • FTB Revelation 1.5.0
  • forge-1.12.2-14.23.2.2613
  • spongeforge-1.12.2-2611-7.1.0-BETA-2970
  • griefprevention-1.12.2-4.3.0.567

@LemADEC - are you using sponge (or spigot, etc) on your server?

commented

Sponge has no relation with the issue at hand.
Effect should be computed per entity instead of per fans times per entity. This could be achieved by caching the cumulated fan effect per block or using belts instead of fans.