Consider the Paper.yml redstone optimization setting

  • Freedom-01 has been attacked several times by lag machines which have been used to drop the TPS quite considerably. Paper, I found out, has a setting that optimizes redstone to reduce server lag. The setting, use-faster-eigencraft-redstone when set to true, changes redstone behaviour to reduce lag while maintaining its functionality. I feel it would be worth a shot to implement given its only changes a single thing in Paper.yml and as such, requires 0 developer effort to try and see if it makes a difference in dealing with the effects of lag machines. The recent spike in lag machines is primarily the variety pictured below which is very easy to construct and use with the capability of crashing the server with ease.



    I've also tested the setting on my own server with a similar lag machine setup and noticed no server-crippling drops in TPS. In fact, the lowest the TPS dropped was in the 19s range. No matter how many times I spam-clicked the lever, the TPS would not drop with optimizations on.


    My test results:

    Quote

    ! Lag Machine I tested with: (NOT ON TF)

    Setting On:

    Setting Off:

    I crashed my server with the device pictured and had the setting disabled.

  • Vouch.


    I did a tiny bit of digging, and found a well written comment that explained the optimisations in great detail. In short, it completely rewrites redstone mechanics to be more efficient, but behave almost identical to vanilla mechanics.

    Quote

      Alco_Rs11 I’ve also tested the setting on my own server with a similar lag machine setup and noticed no server-crippling drops in TPS. In fact, the lowest the TPS dropped was in the 19s range. No matter how many times I spam-clicked the lever, the TPS would not drop with optimizations on.

    I would like to ask about this, did you have a fastplace hack enabled? This hack client option is the thing that makes this so devastating, because the lever is being clicked much faster than Mojang ever accounted for it being clicked.

    Patrolling the Mojave almost makes you wish for a nuclear winter.

  • Vouch, if it's not an "experimental" feature I don't see a reason to nerf Paper's optimisations, since we chose it for that.

    TotalFreedom's Executive Community & Marketing Manager

  • As someone who had the server files once, This is already enabled, unless we have changed the paper.yml recently, it’s on


    If these configs have been reset sometime in the last year, I have config files which I have made which are optimized the best they can possibly for the server, specifically paper.yml, spigot.yml, and bukkit.yml

  •   Alco_Rs11
    Vouch, in my testing I've found this to be an efficient optimization. Also, you may want to modify the rate at which hoppers move items as if you move around large enough items in hoppers the server will crawl to a halt.

  •   DragonSlayer2189
    Most likely this is not enabled anymore, as undesirables have joined the server and lagged it with redstone lag machines. However, it may still be enabled and a plugin may be messing around with redstone in a poorly optimized way.


    cough probably TFM cough

  •   Allink Actually it probably just simply got corrupted over time... I'm pretty sure paper.yml and a couple of others got reset quite some time ago but StevenNL2000 would be the one to say for sure.

    Wild1145

    Network Owner at TotalFreedom

    Managing Director at ATLAS Media Group Ltd.

    Founder & Owner at MastodonApp.UK

  •   DragonSlayer2189


    i checked last night. it's not enabled.

    A triumphant roar echoes from atop the Seat of the Aspects as Nasz'uro, the Unbound Legact is formed.

  •   Yurni
    Yes, in testing, it has been proven to combat similar lag machines. However, it remains to be seen if this is true. We'll just have to wait until it gets enabled on the server.

  •   root Aaahhh that must be part of the reason server started performing badly when it normally didn't... I blamed that on the upgrade to 1.17-

    TotalFreedom's Executive Community & Marketing Manager

  • I've compared the files provided by Dragon with what we have on the server right now and the changes are not that big (current -> suggested). This also means that if these configs were indeed reset, we most likely didn't lose a lot of customization:


    bukkit.yml:
    spawn-limits.water-animals from 5 to 15


    spigot.yml:
    settings.attribute.movementSpeed.max from 2048.0 to 256
    settings.bungeecord from true to false
    world-settings.default.verbose from false to true


    paper.yml:
    world-settings.default.keep-spawn-loaded-range from 10 to 7
    world-settings.default.per-player-mob-spawns from true to false


    I haven't applied the changes mentioned above, but the suggestion to enable use-faster-eigencraft-redstone is now formally approved.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!