mojira.dev

danthedeckie

Assigned

No issues.

Reported

No issues.

Comments

I did a bunch of testing this morning - using a flat creative world.

I had a feeling it might be to do with the "should I spawn a new mob" system - so used the "no mob spawning" "cheat" setting, disabled night time and weather.  No pauses

So I turned on the mob spawning, and got some occasional tiny pauses when a new mob spawned (chicken or cow or whatever) but it wasn't super consistent.

I built a tinted glass house to see if spawning hostile mobs that need darkness made it pause - but it seemed similar.

I tried turning off spawning and removing all the mobs and using eggs to spawn mobs myself.  I could spawn loads of creepers, with no pauses.  But when I switched to zombies, it was interesting: most normal zombies spawned instantly. But when it decided to spawn them with armor then it would pause before creating them...

Likewise with other mobs the first of a type spawned after the pause - but subsequent ones (providing they were identical and not a variant) would be instant.

So I wondered if it was to do with loading (texture/model/animation/behaviour) resources somehow.

I then tried a bunch of options with building an enclosure with different mobs and blocks, going 200 blocks away, waiting 20 seconds and then returning - and this seems a much more reliable way to get the pause problem.

It seemed to be fairly consistently when coming into <100 blocks distance from the the enclosure that it would lag - so something to do with loading the content.

I tried using lots of different mobs, or all the same... if I used like 50 sheep, all the same colour, or 50 creepers, or other mobs without variation, and the went away and back, then it seemed a lot less pause than if I had a bunch of different mobs.

I tried creating a pile of loads of different regular blocks (all the brick types, terracotta types, glass, etc etc) in one place, going 200 blocks away, waiting, and then coming back - and sometimes this would pause too. Especially with the "wait 20 seconds before going back" and "go to another location that doesn't have those blocks, but does have lots of other blocks".

I think it's maybe to do with loading resources of some kind, possibly textures or something.  Did memory use or caching or anything like that change with this version? Or would there be a way to try tweaking those options or the garbage collector / which resources are loaded or anything to try that?

I think this might explain why opening a chest /inventory could also trigger it - if the stuff in the inventory had lots of different things compared to what was currently loaded?

 

 

 

 

 

 

 

 

I'm also experiencing this (lag of up to a few seconds, several times a minute, often when opening chests etc, but also even during walking and so on), including the occasional multiplayer error message, starting since 1.20.30

It was working perfectly before the update.

I tried lowering the settings, no difference.

I tried turning off my WiFi and mobile data, no difference.

It does make the game virtually unplayable.

On android 10,  Moto G7 power.

I've tried rebooting the phone, no difference.