mojira.dev
MC-229637

Glowing mobs impact client-side performance

When glowing mobs are on the screen they drop my frames significantly. When they are off the screen they don't. This occurs with just one glowing mob.

It seems there are two types of this kind of lag, the kind that causes a huge lag spike when the glowing mob first exists, and the general lag while the glowing mob is on the screen.

Attachments

Comments 10

Actually, all glowing entities in general are able to cause lag, which affects performance on mostly low-end machines.

[media]

[media]

But on some better machines the impact seems to be pretty minimal.

[media]

[media]

If we consider the fact that glowing entities affect performance even on some of these machines, then i believe this is a valid issue.

Most of the problem is that when only just one glowing entity shows, the smoothness of the camera is pretty much affected, which really affects gameplay when you try to aim mobs or blocks.

Can confirm on 21w43a, as noted above this can cause mouse input to become unresponsive/laggy, which is more noticeable on weaker systems when the game uses this entity_outline shader.

[media]

[media]

In my case, a single entity can cause a lagspike when it starts glowing, and then camera movement becomes stuttery/choppy than usual. This is on a void world.

Can confirm in 1.17.1.

Can confirm on 22w14a.

Can confirm in 22w19a.

Glowing entities has "glowing" which very impacts on performance

Can confirm in 1.19

The renderer for glowing entities is separate (obviously) from other renderers, But I'm not sure its fixable, its inherently very computationally expensive to look for all glowing entities. I have some images showing varying performance on my lower end machine.

[media]

[media]

[media]


The codes does function in regards to not causing lag when not actually looking at the entities. The renderer is not run unless glowing entities are visible. So this works. Not sure if this can be fixed but maybe it can be. (Also, can confirm for 1.19.2)

This is fixable I fixed most of it using 

{   "ao": false,   "disableShader": true,  "spriteAtlasTextures": false }

In my experience there seems to be two types of lag caused by Glowing mobs

  1. The lag spike that occurs the first time a glowing mob renders, presumably caused by the shader (or whatever mechanism renders glowing mobs) loading for the first time

  2. Constant lag any time glowing mobs are on the screen

 

oops I already had this written in the report and I forgot my bad

Brevort

(Unassigned)

Confirmed

Performance

1.17, 1.17.1, 21w43a, 22w14a, 22w19a, ..., 1.19.2, 1.20 Pre-release 2, 1.20 Pre-release 6, 1.21.1, 24w34a

Retrieved