Entities outside of screen
andreasdc opened this issue ยท 11 comments
What happens when entities are outside of the screen? I see they are still rendered, right?
Minecraft does a view frustum cull. So anything outside the screen gets skipped already.
This mod doesn't touch the f3 numbers. Also, an easy way to check it: put a thousand mobs into a pen. Look at it, then look away. Even in vanilla, this works.
These numbers are incorrect in combination with other mods like iris or optifine, and are only meant to indicate that stuff is working correctly and the expected ratios. Like I said, just test it. Alternatively: bind the debug hotkey to toggle culling on/off on the fly, so check the fps difference.
As I said, the screen is entirely unused by this mod. Vanilla Mc skips the rendering of entities behind you. This mod does some optimizations like not updating the animations of things that didn't render. But of, having a ton of entities is still more stuff to calculate, so it will have some inpact on the fps. Just less with this mod.
Yes, but it still takes fps even when entities are outside of the screen/behind a wall.
And? They still need to update, move, network packets, Mc needs to check rather they are I'm the screen space, this mod needs to check rather they have become visible. Still lots of calculations, and if your cpu is not that fast, you will still feel that with enough entities.
I can just repeat myself: Vanilla already does a good job, and EntityCulling cuts out as much as possible.
If 100 entities outside your view lag your game, that sounds like you are playing on hardware that is just too old/slow. I don't know what you want to hear from me^^
There for sure is a way to optimize it, you don't need 1k entities to feel the lag, with 100 you already have fps drop.