1
0
Fork 0
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:
sfence 2024-12-14 17:01:06 +01:00 committed by GitHub
parent ba63c1505a
commit f7a695c212
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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