适用于 Unity DOTS 的 Quadtree 原生集合
A Quadtree Native Collection for Unity DOTS. Octree version is here: https://github.com/marijnz/NativeOctree
There's some very rudimentary performance tests included. With 20k elements on a 2k by 2k map, a max depth of 6 and 16 max elements per leaf. Burst enabled, ran on main thread on my 2015 MacBook Pro:
With Burst disabled the tests are about 10x slower.
The only tests test for performance so there's no real test coverage. I'm sure there's edge cases that are not caught. I would highly recommend writing more tests if you're planning to use the code in production.
暂无开放 Issues,或尚未同步最近议题。