Jump to content

Patch submitted re Octree


Recommended Posts

Hi Don, I see that Redfox has commented on your ticket now.

If you want to, you can also chat with some of the developers on the #0ad-dev IRC channel on QuakeNet most evenings. It might help get your patches reviewed faster too ;)

Link to comment
Share on other sites

The implementation is nice, but I think its not optimal to judge it by just looking at the code. Maybe it would be good to have a patch that actually demonstrates it. For example, CCmpRangeManager would be a good place to start, as it uses a struct EntityData, which maps nicely to your game object idea. It currently uses SpatialSubdivision, so you could easily compare it and even do benchmarks. This also shows some conventions which could maybe influence the Quadtree class, like using entity_pos_t, having a way of updating the subdivision on Motion Events and so on.

tuan_kuranes also had the idea to have a common base interface for different spatial subdivision approaches. I think that sounds like a nice idea, and shouldn't be too hard to achieve.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...