mojira.dev
MC-228976

Entity collision is run on render thread

Said behavior causes a lot of framerate lag when a lot of entities exist in the world. Whether or not the player can see them.

Disabling said behavior with a mod did not change how anything looked.

Testing might require an override of the entity collision code to disable it on client side to see effects on fps.
With it being limited to server only 4k mobs (non-visible) can run 60fps.
With vanilla behavior framerate tanks even when the mobs aren't visible.
The same calculations are effectively done twice.

Attachments

Comments 10

Disabling said behavior with a mod did not change how anything looked.

Could you link to this mod?

An attachment with a disallowed file extension has been removed from this ticket.

Executable files and documents are not allowed as attachments.
Please attach crash reports, log files and screenshots as they are instead of pasting them into a document.
-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

It's of my own making. forge 36.1.0 mc version 1.16.5. Guess i'll have to upload this somewhere. Tho i'm not entirely sure if it's breaking the EULA? Some of the code is copied from decompiled from minecraft's jar. is there a way i could link it to you so that it's not up to public view or is it enough that the source code isn't available?

 

Zip file is empty.(I guess you got answer for your question in discord)

I've just remade the mod on fabric. and this time checked that the file is in said zip 🙂

Can confirm on 22w12a, might relate to MC-158597.
Some examples of the same quantity of mobs without colliding + all in the same block (fabric on client-brand but can be reproduced on vanilla as well).

[media]

[media]

[media]

Preventing cramming tick on client prevents player from being pushed.

I suggest instead caching the entities that are searched for per cramming tick for all living entities.

这个模组好像和精致的背包冲突,请改进一下

Maybe this mod? It links to this bug report and claims to have fixed it.

 

Henri Kinnunen

(Unassigned)

Community Consensus

Performance

1.17, 22w12a

1.19.3 Pre-release 3

Retrieved