Wesley1808 / ServerCore

A mod that aims to optimize the minecraft server.
77 stars 11 forks source link

No working dynamic-view and dynamic mob-cap, simulation #40

Closed MrJorman closed 2 years ago

MrJorman commented 2 years ago

    # (Default = false) Enables this feature.
    enabled = true
    # (Default = 35) The average MSPT to target.
    target_mspt = 20
    # (Default = 15) The amount of seconds between dynamic performance updates.
    update_rate = 15
    # (Default = 150) The amount of seconds between dynamic viewdistance updates.
    # This value is separate from the other checks because it makes all clients reload their chunks.
    view_distance_update_rate = 30
    # (Default = [Max: 10, Min: 2]) Distance in which random ticks and mobspawning can happen.
    max_chunk_tick_distance = 8
    min_chunk_tick_distance = 2
    # (Default = [Max: 10, Min: 2]) Distance in which the world will tick, similar to no-tick-vd.
    max_simulation_distance = 8
    min_simulation_distance = 2
    # (Default = [Max: 10, Min: 2]) Distance in which the world will render.
    max_view_distance = 8
    min_view_distance = 2
    # (Default = [Max: 1.0, Min: 0.3]) Global multiplier that decides the percentage of the mobcap to be used.
    max_mobcap = 0.6
    min_mobcap = 0.2```

    When the MSPT goes above 20.0, it only changes max_chunk_tick_distance, the other settings do not change.
Wesley1808 commented 2 years ago

Currently the way it works is that dynamic values are modified one at a time - in the order: chunk-tick-distance -> mobcaps -> simulation distance -> view distance.

For example, view distance will not get modified unless simulation distance is at its minimum value, and so on.

If mobcaps and below are not being modified, it just means your server hasn't been under enough load - or at least not for long enough - to start changing them.