Minecraft Transit Railway (Automated trains, planes, and more!)

Minecraft Transit Railway (Automated trains, planes, and more!)

2M Downloads

Terrible Lag problems using the create mod

Diopptazz opened this issue ยท 1 comments

commented

Before reporting, I have confirmed that

  • This bug does not appear to be reported on GitHub Issues before.
  • This bug still exists in the latest version of the Minecraft Transit Railway mod.
  • I have tested this in the official version of Minecraft Transit Railway, not a modified, custom, or unofficial build.

Describe the Bug

I use this mod mainly for the station blocks such as the ticket system. I prefer using create for the trains. After using this mod on a world with both of them, when I make an automated train in create and the doors open, the game lags terribly and sometimes crashes without making a log.

Reproduction Steps

Make an automated train with a schedule and drivers with the create mod. Have the train be loaded when it stops and opens its doors. You may experience heavy lag or a crash.
(For information, I have allocated 6gb to the game)

In-game Log and Crash Report

2024-12-19-2.log

Mod Loader

Forge

Minecraft Version

1.20.1

Minecraft Transit Railway Version

4.0.0

Operating System

Windows 10

List of Mods or Modpack You Were Using

image

*Even by only using the Create mod, and MTR, the bug still happens.

Extra Information

No response

commented

Im also experiencing lag spikes with Create, specifically with trains contraptions while MTR is also installed. Im assuming this would fit the same issue, and im writing here so i dont open a new one. Im on Fabric, mc version 1.20.1.

I played on a private server with multiple mods, and i wanted to disassemble a Create train, and move it by gluing it to another contraption (e.g minecart/cart assembler, or elevator blocks). I kept getting long lag spikes whenever the contraption formed (10-30+ seconds), and sometimes when the train doors open (like when it arrives at a station).

I went on a single player world with the same mods, and i tested a similar setup i had, with and without MTR loaded. Ill attach my logs, Spark profiles, and videos. All i did was disable and enable MTR while testing the contraption shown in the video. No MTR blocks were used or placed. I did give myself a dashboard in my inventory, to differentiate between MTR and no-MTR. The modlist can be found in the logs.
I also tried making another instance with a lot less mods and try to only have Create + some addons, and MTR, but i got similar lag spikes. I dont have logs or anything from that instance though.

I did notice that on single player world the spikes were less aggressive than on the server, that could be because of the higher world size, or because on the server we had MTR trains and blocks set up. I dont know.

It looks like the lag originates from contraption collision creation, which i first thought was related to this issue, but i find it weird that just loading MTR makes it way worse.

edit: i forgot to mention i accidentally used /spark instead of /sparkclient for some profiles. Woops i hope this isnt a big problem, since the lag seems to be client sided
--- Test 1
NO_MTR_TEST1.log
Spark profile: https://spark.lucko.me/OLV6GZ8xnh
Video: https://github.com/user-attachments/assets/b2562779-50a6-4c6b-b350-5f6063af7f2f

WITH_MTR_TEST1.log
Spark Profile: https://spark.lucko.me/RZPGMl0M4U
Video: https://github.com/user-attachments/assets/50100002-2c92-4bef-970f-aa2ca4067d3b

--- Test 2, with profile run times closer together

NO_MTR_TEST2.log
Spark: https://spark.lucko.me/uJKlQEXt9o

WITH_MTR_TEST2.log
Spark: https://spark.lucko.me/DlHsMsDsFv

--- Test 3, with tick monitor and --only-ticks-over for spark profiles. Over 150ms and 500ms respectively

NO_MTR_TEST3_TICK_MONITOR.log
https://spark.lucko.me/IHwg0gaCj2
Video: https://github.com/user-attachments/assets/d4b1f680-a648-4d75-953e-574203f084d3

WITH_MTR_TEST3_TICK_MONITOR.log
https://spark.lucko.me/ekl6k4Z2O9
Video: https://github.com/user-attachments/assets/85ce3a14-eb7d-49d5-968c-b93cddc714c0