Megafunk / MassSample

My understanding of Unreal Engine 5's experimental ECS plugin with a small sample project.
MIT License
731 stars 118 forks source link

The 3d hashgrid is kinda slow to query! #15

Closed Megafunk closed 1 year ago

Megafunk commented 2 years ago

Unfortunately the 3d hashgrid that comes with unreal has some random access baked in to the query algorithm, which is not great for archetype ECS performance. It's not horrible but I think it could be far better. It should be far cheaper to query!

I would rather not just copy the 2d hierarchical hashgrid processor+fragments, but that's there if you need it and is far better suited for this. However, the built in implementation forces all of them to be zonegraph navigation obstacles.

Megafunk commented 1 year ago

Moved to an octree2 implementation, still not exactly ideal but much nicer