mojira.dev

Adam Ashe

Assigned

No issues.

Reported

No issues.

Comments

@GoldenHelmet it will lag out without the guardian farm on too, though... just takes much longer.  It was strange that removing the books and item frames fixed it before for a while (without the farm on).

I agree with you that it is unclear if there is one bug, multiples, or all manifesting something that is in common.  I can tell you that 100% for the exact same world and exact same build, no blocks different, SOMETHING is causing the lag.  Looking through the comments, the vast majority of people here have not experienced it in new chunks – most are saying they have to go away from their base in their existing world.  We are not experiencing it in that same world in, at least, old chunks that aren't built on.  Note that in my world I have never experienced the slowdown in single player, non-BDS running.  I have since experienced the lag again (post-guardian comment) with only one person on but it took a long time to manifest.

This is a very difficult one to track down, for sure.  Once Amulet or another editor is updated to 1.18, I plan to try copying the blocks to a 1.18 generated world (not the full chunks via files, the blocks) to see if that still produces lag.

Is there any way at all to get a measurable (in game) quantification of lag... like a real Ticks Per Second counter? 


Reply from @unknown:

There are third-party addons and tools that purport to. Mojang does not support them, and any results from using them cannot be considered definitive information about bugs in the game. You may use at your own risk for your own investigation.

https://youtu.be/I5edSfLwFN4
https://github.com/hhhxiao/TrapDoor

SEEMINGLY SOLVED!  As far as I can tell, the world is completely back to normal in terms of performance and lag... it hasn't been too long (maybe half an hour) but thus far it has not returned.

I had a wall of 33 chests each with an item frame on it housing a named (via anvil) enchanted book.  After I removed all of the books from the frame and removed the frames from the chests, the lag completely disappeared.  There is a storage area 10 blocks away with an additional 34 item frames (items in them NOT named) that I did NOT remove.  The wall of frames/books was enough it seems.  Before the chests I also removed 2 item frames each with a clock.

With the lag, it took approximately 75 minutes to remove those 33 books and frames.  Therefore, this was the longest single stretch of time I was in the laggy part of the world as well.  So it COULD have been a coincidence, but I will say that as I neared the end of the 33 that it was noticeably better.  Still lagging, but not "pop several books off and wait 5 minutes for them to actually remove".  The last row removed ALMOST in real time.  By the time all were removed I believe game mechanics (chests/doors/trap doors/etc.) had returned to normal.

Perhaps if you guys have a similar setup you could use commands to remove all the item frames in the area and see if that makes a difference?  Fingers crossed this is fixed (for my world)!

EDIT/FOLLOW UP:

The fix worked great for multiple hours; trident killers were turned back on for the guardian farm and after some AFK, it was unusably laggy this time.  Since I knew a change from the successful hours was the farm, I (slowly) made it to turn off the farm and collect experience which was built up.  This restored it again.  So perhaps there is not one cause of this... and this farm in the exact same AFK spot never caused this issue before (hung experience would just eventually despawn I suppose).

A little additional info... if the devs pull the world download I posted earlier, it seems I can return to normal play without lag if I leave the area around -250, -1120.  if I get far enough away to unload the chunks, at least in testing today, the lag goes away after a few moments.

This area is a base built atop an ocean monument.  It is not a "mega base" or anything.  But it APPEARS something within these chunks is responsible for the huge lag.  Perhaps we can find something in common that people with laggy worlds have in their world?

This area does encompass an ocean monument, several trident killers all turned off, a decent number of chests.  A bunch of item frames with named items in them; these were removed with no noticeable change in lag.  A "cheat-y experience furnaced" (locked to allow retrieval of XP) which has since been removed with no effect.  Nothing else out of the ordinary that I can think of.

The CPUs on both the BDS computer and the client computer is showing low usage and no spikes (fluctuating around 4-8% after initial connection which causes a short spike).

Our world has started showing some lag on single player now, not just when multiple players are present.

@Mega_Spud @GoldenHelmet I was able to do some more thorough debugging, here are my results:

Playing on a Bedrock Dedicated Server with an existing world; clients were Windows 10 and Windows 11.

  • 1st Player on was fine and normal regardless of being in existing or new chunks

  • 2nd Player joins far away in world, it becomes extremely laggy and game mechanics fail

  • 2nd Player leaves world, the game was still laggy but better

  • Logged out and back in, appeared where was several minutes prior to exist; but no lag

  • 2nd player logged in at the same chunk as 1st player.  Some lag and mechanics start to fail but seemingly not as bad (hard to quantify)

  • Seems to worsen when they leave the chunk, but may just be the time in game (see below)

  • 1st Player in nether, by self on server, all is okay... 2nd player logs in the Overworld.  takes a minute but lag returns

  • Lag gets noticeably and quantifiably worse as time goes on as judged by delay from breaking block to item appearing on the ground

  • Both players moving to new chunks makes game work perfect almost immediately 

  • One player moving back into existing chunks causes lag again, worse as time goes on

  • Creative and survival seems to make no difference

World Download:

https://drive.google.com/file/d/1bEgWCna5c7X5OA8wjPMh-inIOrRNm3C4/view?usp=sharing

In case it matters, we were around the build at -243, -1121 for most of the testing; heading east or north is new territory (generated with 1.18) that eliminated lag.  This is a backup from the other day (i.e. prior to the above tests) but this copy was uploaded to the server and verified to exhibit the lagging when it was there.

This is a member on our server with some gameplay footage to show what we are experiencing:

https://www.youtube.com/watch?v=uf0wJTlFrj8

So, after some additional debugging... When I am on the server by myself, it seems that the mechanics are okay.  But as soon as a second person joins, the lag immediately spikes to the point of not being able to open chests, open crafting tables, etc.  Blocks take ~60s to break, when they actually do, etc.

 

After some testing, it seems like as soon as either person exists, performance returns to acceptable; almost immediately.

We have experienced the same when connecting to a Bedrock Dedicated Server.  It is not just a reduced user experience, it is quite unplayable.  Clients are using Windows 10 and Windows 11.

Note: World was running fine on the Caves and Cliffs Experimental features prior to the update.