Fabricators-of-Create / Create

[Fabric Mod] Building Tools and Aesthetic Technology
MIT License
879 stars 200 forks source link

Unplayable FPS Drop when rendering rails and assembled trains #1263

Closed Z3R0TR0N closed 8 months ago

Z3R0TR0N commented 9 months ago

Describe the Bug

Placing down rails that render as entities and/or assembling a train drops my frame rate as low as 6 FPS, which is unplayable. Moving out of the render distance for the rails and train brings back my normal 48-60 FPS. I'm not sure why this is happening and I've tried every possible tweak I could think of.

Reproduction Steps

  1. Run Minecraft with Create Fabric and related dependencies (sodium, indium, fabric API).
  2. Place down either (or both) of the following:
    • multiple rail lines that curve, change height, or otherwise require an entity. (unplayable).
    • assemble any train. (unplayable).
  3. Observe severe FPS drop in the F3 debug screen.

Expected Result

I expected my FPS to remain the same or drop by a marginal (but still playable) amount, like in previous Minecraft Create versions (e.g. 1.18, 1.19).

Screenshots and Videos

2024-01-05_23 49 28

Crash Report or Log

https://pastebin.com/u8NhDALx

Operating System

macOS Ventura 13.6.3

Mod Version

0.5.1d

Minecraft Version

1.20.1

Other Mods

No crash occurred, but:

Mods:

Other mods that I confirmed are not the issue (via disabling and re-launching), but were present in the uploaded log:

Additional Context

I suspect it's a problem with my version of the Fabric Modloader, Fabric API, Indium, and/or Sodium.

It's also possible my GPU is the issue, but I find it hard to believe a 2016 iMac with similar hardware could run Create 1.19 far better than my current 2020 iMac.

Hardware Specs:

If you're unable to replicate, please let me know. That way, I know it's likely a problem with my hardware.

Yes, I restarted my computer. Yes, I also lowered my system's resolution (down to the lowest). Yes, I disabled all non-essential mods for the loaded world (see "other mods"). No, nothing changed.

drwoops commented 9 months ago

i checked your versions and they are correct. the log does not show an error, but just you losing connection (which admittedly is very strange in single player). I would suggest to test in a new world, with all mods removed except create and sodium etal.

Z3R0TR0N commented 8 months ago

Done. Same problem once enough rails were placed. I have a screenshot of the debug screen but the file is a bit tool large.

My log is below: https://pastebin.com/UvAXN4U0

Z3R0TR0N commented 8 months ago

Uploaded debug screen to drive. Here's the link:

https://drive.google.com/file/d/1OLaTIUc9IZw6Q_PutJpnhVNEfERIJWnm/view?usp=sharing

Quick note: I saw online to try disabling VSYNC, (which is why debug says "ASYNC") but no change occurred. FPS still remains too low.

Z3R0TR0N commented 8 months ago

New puzzling discoveries and proof of what I mean:

No rails rendered, my normal gameplay: 2024-01-06_13 32 00

Rendering rails, approaching: 2024-01-06_13 32 17

Standing still, rails rendered: 2024-01-06_13 32 43

Z3R0TR0N commented 8 months ago

FIXED, thanks to the Discord community! Turns out, my computer can't do "Instancing" for Flywheel. It has to be either "Batching" or "Off." Once the config saved, my frames flipped back to their beautiful 60FPS. Closing this issue now.