Create

Create

86M Downloads

Train Bogies are very FPS-heavy to render

HB-Stratos opened this issue ยท 4 comments

commented

Describe the Bug

Currently train bogies are very expensive to render, no matter if they are part of a train or just existing in a disassembled train. It seems though that especially a disassembled train causes a lot of FPS lag.

Reproduction Steps

  1. Place a long rail.
  2. Place a Station
  3. Place a good few bogies
  4. Observe a very strong drop in FPS

Expected Result

A few low poly meshes rendered in the world should not be causing this amount of lag. It makes the game unplayable in a bigger train yard.

Screenshots and Videos

2022-07-21_20 23 20
Only one Bogie, and a few rails from earlier performance testing. They don't seem to affect performance much.

2022-07-21_20 23 12
31 bogies here, disassembled. No station (so that possibly assembly mode doesn't cause more lag, but that seems to be insignificant too). My frames dropped to 58 from 280, in a medium trainyard and with the overhead of a normal world the lag this can go down to under 20 fps.

2022-07-21_20 32 43
An assembled train seems to cause a good bit less lag than a disassembled one, though the drop from 280 to 90 is still quite significant.

2022-07-21_20 29 55
The end result, barely 20 fps when looking at a medium train yard, easily over 100 when looking away.

Crash Report or Log

No response

Operating System

Windows 10

Mod Version

0.5.0c

Minecraft Version

1.18.2

Forge Version

40.1.0

Other Mods

none

Additional Context

No response

UPDATE: By assembling all the trains in my train yard I got a significant performance uplift. So the lag seems to come especially from disassembled train bogies. However, even this here is a strong performance drop from about 130 when looking away to 54 when looking at the trains.
2022-07-21_20 43 39

commented

does this still occur?

commented

I am on Windows 10 and can confirm the extreme lag being caused by train tracks.
The FPS goes from around 400-250 to 90-60

With any shaders installed it gets worse;
The FPS goes from around 180-100 to 45-25

Neither sliding down render or simulation distance helps.
Tried flyweel batching and instancing backend as well as turning it off. Virtually no difference at all.

Assembling trains did not help much for me.

Operating System
Windows 10 20H2

Mod Version
0.5.0c

Minecraft Version
1.18.2

Forge Version
40.1.0 or 40.1.20

Other Mods
flywheel-forge-1.18-0.6.4
forge-1.18.2-40.1.0 or 40.1.20
rubidium-0.5.3 + oculus 1.2.5 or optifine_1.18.2_HD_U_H6

commented

Did you actually mean Train Tracks, or were you also referring to bogies? I am not getting too much lag from train tracks, but disassembled bogies can kill my game.

commented

I got this, placing few bended tracks inside the render area causes the performance issue.
I set my render distance to 12 chunks so the potential fix is to limit amount of bended tracks per 24 chunks square.

commented

Confirming that train tracks will tank FPS on AMD integrated graphics. Clients with NVIDIA GPUs (on something as low as mid-gen GTX to an RTX 3050) are not having this issue.

Minecraft Version: 1.20.1
Create version: 0.5.1.f

commented

turn off shaders, run /flywheel backend instancing and /flywheel backend batching and use what works best for you