heyx3 / Bplus.jl

A modern OpenGL 4.6 rendering framework, written in Julia.
Other
69 stars 3 forks source link

Speed up the non-allocating breadth-first search for a `SceneTree.Node`'s family #84

Open heyx3 opened 12 months ago

heyx3 commented 12 months ago

The non-allocating breadth-first search is done with successive calls to Depth-First search, each time looking for specific depth levels.

This trick could be made much faster if we could tell the DFS to stick within a target min and max depth, allowing it to exit deeper parts of the tree and skip past shallower parts of the tree.