1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

Optimize raycast performance (#15233)

by skipping nodes not on the ray with selection boxes smaller than 1x1x1 early on
This commit is contained in:
sfence
2024-12-14 17:01:06 +01:00
committed by GitHub
parent ba63c1505a
commit f7a695c212
4 changed files with 25 additions and 0 deletions

View File

@@ -9948,6 +9948,8 @@ Used by `core.register_node`.
selection_box = {
-- see [Node boxes] for possibilities
-- Selection boxes that oversize node size can cause
-- significant performance drop of Raycasts.
},
-- Custom selection box definition. Multiple boxes can be defined.
-- If "nodebox" drawtype is used and selection_box is nil, then node_box