mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00: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:
parent
ba63c1505a
commit
f7a695c212
4 changed files with 25 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue