Create Railways Navigator

Create Railways Navigator

2M Downloads

Critical Performance Problem

MegumiKasuga opened this issue ยท 1 comments

commented

Version:

  • Minecraft Version: 1.19.2
  • Forge Version 43.3.7
  • Mod Version 0.5.4

Describe the bug
A critical performence problem that caused the server stuck. (low tps(10) and bad gaming experience)
Follow methods may be the cause of this problem.
Image_1727611700822.png

To Reproduce
Steps to reproduce the behavior:
1. Navigators in forced load chunks.
2. Large scale (complicated) train networks.

Expected behavior
Server tps got low. (10tps/100mspt)

Screenshots
Monitor:
Image_1727612296222.png

Additional context
Maybe a cache(like LazyRecomputable) would be a good solution for this problem. Stop your algorithm from scaning create's data structure all the time.
Wish you a good day.

commented

The performance should be much better in beta-0.6.0