mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user