Display entities with large width/height make entity culling incredibely slow
opl- opened this issue ยท 1 comments
Bug Description
And I do mean slow: 1.5s per frame!
Reproduction Steps
- Enable entity culling in Sodium options.
/summon minecraft:item_display ~ ~ ~ {"item":{"id":"minecraft:red_dye","Count":1b},"transformation":{"translation":[0.0,0.0,0.0],"right_rotation":[0.0,0.0,0.0,1.0],"scale":[1.0,0.0,1.0],"left_rotation":[0.0,0.0,0.0,1.0]},"width":9999,"height":9999}
- Optional: disable entity culling to return to playable FPS.
/kill @e[type=minecraft:item_display,sort=nearest,limit=1,distance=..10]
Log File
N/A (No other performance mods loaded.)
Crash Report
N/A
I would guess this is caused by the entity culling system checking every chunk the entity spans for visibility:
A fix might be to skip this check if the entity exceeds a certain "large" threshold.