mojira.dev
MC-192845

Block Event Lag in 1.16 is excessive

As a technical MC player I have noticed that contraptions incorporating pistons moving large amounts of blocks have become excessively resource intensive on the client since older versions. This has become apparent when I migrated a contraption incorporating a tree farm and TnT blast chamber from 1.15.2 to 1.16.1, and despite having upgraded to a brand new PC with far superior specs than the PC I used in 1.15.2 the lag is unbearably worse:

To Reproduce:

1. In 1.15.2 setup a contraption in which pistons move a large amount of blocks continuously, expand the system until you notice the clients frames begin to drop.

  • Observe the clients framerate ✔

[media]

2. Construct the same contraption in 1.16.1

  • Observe the clients frames dropping significantly lower than in 1.15.2 and eventually crashing the game ❌

[media]

Linked issues

Attachments

Comments 25

Invalid. Your launcher is modified.

No one cares, still the same game, plus it doesn't change the fact that pistons are laggy in 1.16 so your comment is invalid and unwarranted.

Please still try to reproduce this without using a modified 3rd party launcher, if possible, please also provide a download for the world used in the report.

Could this have anything to do with light updates / involve the light engine, lightmap somehow?

Just a very wild guess, but I recall such lag issues with moving and set blocks or structures since many years, and excluding that (also due to fairly more recent changes with rendering) might help a bit (again, no guarantee).

Essentially something in the direction of MC-170010, but potentially I'm completely off here.

 

Edit: I just saw you got a glass floor, and glass can lag like crazy.
I got first hand experience with that from a relatively recent MC Infinity client with a glass floor dimension, as well as years ago with the Cubehamster/Sethbling map that we playtested back then before its release.

It spawns moving flying machines, and there was also lots of (dyed) glass involved; we fixed the lag back then by adding a roof over the gaming field, and the resulting darkness/shadow by giving the players nightvision.

When you try to reproduce the lag / FPS drop, maybe it'd be good to test in a redstone-ready world, no glass; you can also test with a layer of solid blocks above the testing ground..

Edit 2: There have been issues in the past if 64 blocks or more changed in one chunk in the same tick or something like that; I recall such issues, see e.g. MC-123304 (and MC-108358 was with 32).

In prerelease 4 (didn't test in other snapshots) I get 40+fps with a mob farm that contains a lot of pistons.
But in 1.16.0/1.16.1 with the farm active I barely get 3 fps. If I freeze the game or turn off the farm the frames return normal.

EDIT: Server impact is the same, about 30mspt

EDIT 2: Light updates are not the issue. (Even though light updates are already pretty laggy client-side.) The lag described above is in the nether with no skylight and no light sources anywhere near pistons.

15 more comments

I would like to mention that this was not in fact fixed in 1.16.2 pre-2 and even seems to be worse. Secondly the "fix" for this also broke piston rendering when pistons retract. E.x. https://youtu.be/arJUOTwLbZI

If you think there's still a performance issue, please create a new bug report (if noone else has already done that).

Testing in the latest release, 1.16.2 pre 2, getting very mixed results, it appears to be highly dependent on the clients computer architecture. Personally I have observed better performance than 1.16.1, with my client no longer crashing sompletely using the test setup, however it is no where near the performance achieved in 1.15.2 getting 30 FPS instead of the 57 obtained in the screenshots above for 1.15.2.

Again, like violine said, please open a new report if it still occurs with exact comparisons and potential causes if possible. While I have head over and over again that there are still performance issues since yesterday, no new report about it has been created yet.

For me its better in pre release 2, although not great. 10 fps in pre 1 and 20 in pre 2.

cubicmetre

Panda4994

Confirmed

Very Important

Performance

1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1

1.16.2 Pre-release 2

Retrieved