After testing it on multiple versions i can surely give two exact versions which can be seen easily getting effected by being on same 1x1x2 hole with entities makes the game %35 - %10 in 1.21.11 and 26.1.2.I am recommending ghosting entitys inside texture by %60 to prevent the optimization problem.
Environment
Recommended Entity Value In 1x1x2 hole is 10-24.
Thank you for helping us improve Minecraft! We saved your files: