Dynamic View[Forge]

Dynamic View[Forge]

18M Downloads

[Bug]: Tick measurement method incorrect, or other threads not measured.

bradcarnage opened this issue ยท 0 comments

commented

Describe the bug you're experiencing

Upon installing the mod, and testing it out, it seems as if the tick measurement is off, or not counting other threads such as chunk generation. (simply install, generate new chunks, etc. seems as if tick thread uses 15ms whilst other threads are chewing up the rest of the available CPU)

If there is a way to measure the amount of tick backlog to consider the server as "laggy", that would be great. Seems as if there's already a detection method that prints warnings to the server log. See the screenshot below.
image

More details:
On forge-1.20.1-47.2.0 specifically modpack Perfect World-1.0 (CurseForge)

Config file:

{
  "minChunkViewDist": {
    "desc:": "The minimum chunk view distance allowed to use. Default: 10, minimum 3, maximum 200",
    "minChunkViewDist": 16
  },
  "maxChunkViewDist": {
    "desc:": "The maximum chunk view distance allowed to use. Set to the max a player could benefit from. Default: 10, minimum 3, maximum 200",
    "maxChunkViewDist": 24
  },
  "meanAvgTickTime": {
    "desc:": "The average tick time to stabilize the distances around. Setting it higher than 50ms is not advised, as after 50ms the TPS will go below 20. Default: 45ms, min: 10, max:100",
    "meanAvgTickTime": 40
  },
  "viewDistanceUpdateRate": {
    "desc:": "The change frequency of distances in seconds. Default: 30, min:1, max:1000",
    "viewDistanceUpdateRate": 60
  },
  "minSimulationDist": {
    "desc:": "The minimum simulation distance allowed to use. Default: 4, minimum 1, maximum 200",
    "minSimulationDist": 16
  },
  "maxSimulationDist": {
    "desc:": "The maximum simulation distance allowed to use. Default: 10, minimum 1, maximum 200",
    "maxSimulationDist": 24
  },
  "adjustSimulationDistance": {
    "desc:": "Enables automatic simulation distance adjustment. Default: true",
    "adjustSimulationDistance": true
  },
  "logMessages": {
    "desc:": "Whether to output log messages for actions done. This can be helpful to balance the other settings nicely. Default = false",
    "logMessages": true
  }
}

Reproducability

Install the mod on crappy server hardware, generate chunks. Experience lag.

Mod up to date

  • Before submitting this issue I updated to the newest version and reproduced it

Minecraft version

1.20.1

Modloader version

Forge

Logs

https://github.com/user-attachments/assets/f440b000-9e01-494e-9ce9-5f35dbeeadd6