mojira.dev

Kiryonn

Assigned

No issues.

Reported

No issues.

Comments

I’m skeptical about the “the method could check whether the subchunks intersecting the lines Y+100, Z+900, X+800 contain blocks other than air and skip collision checks for subchunks containing air“.

I don’t really know how minecraft stores empty subchunks, but if they don’t have a specific tag like “IsEmpty“ / “hasNoBlocks“, they would need to check every single blocks of that subchunk, which if it is empty, would mean more calculus than just checking blocks on the path.

another optimization could be to merge the collisions of the same type of entities that are in the same spot until they are separated. It’s a bit of work, but hey, it’s not some kind of solo game dev college project we’re talking about. If you’re a game company, you should put the effort in. Could be quite useful on servers.