b6bd3ef3创建于 2025年1月7日历史提交
文件最后提交记录最后更新时间
Clean up terminology around block state IDs and their handling 3 年前
Improve PHPDocs in world package 1 年前
LightUpdate: avoid trying to propagate light into nodes with higher light levels Track which direction the current node's light came from, and don't check it again when we check the current node's adjacent blocks. e.g. if this node was the eastern neighbour of a light source, we don't need to check this node's western neighbour, as we already know it has a higher light level than our own. This improves performance of basic light spread in a void by about 6%, which isn't a huge amount, but it's something. I've yet to explore whether light removal could also benefit from this change. 2 年前
LightUpdate: avoid trying to propagate light into nodes with higher light levels Track which direction the current node's light came from, and don't check it again when we check the current node's adjacent blocks. e.g. if this node was the eastern neighbour of a light source, we don't need to check this node's western neighbour, as we already know it has a higher light level than our own. This improves performance of basic light spread in a void by about 6%, which isn't a huge amount, but it's something. I've yet to explore whether light removal could also benefit from this change. 2 年前
SkyLightUpdate: deal with effective light during initial node discovery this allows the propagation stage to ignore effective light, which allows for further optimisations. 3 年前