carlyn / carlynorama · @carlynorama
11 followers · 11 posts · Server vis.social

Day 9, turned the walker into a wandering blackhole eating the points up in the array. Got to name an array rememberedDead. It has got to be the rain!

carlynorama.github.io/2023Janu

#codeinlink #generativeart #creativecoding #p5js #natureofcode #30daysof #quadtree

Last updated 2 years ago

chihuamaranian · @chihuamaranian
39 followers · 44 posts · Server tech.lgbt

@arran

So I got around to checking out your project. You definitely have better performance than me from the SpatialHashSet you use.

I believe you can generalize this further for better performance by making the spatial structure recursive. Here's an example I whipped up a year or two back. Only works in 2d, but could be easily refactored to 3d as well:

gitlab.com/chihuamaranian/coll

It's a structure.

#boids #quadtree #spatialpartitioning #gamedev #programming

Last updated 2 years ago

chihuamaranian · @chihuamaranian
39 followers · 44 posts · Server tech.lgbt

@arran

I have a C# implementation I've hand-rolled in a previous project.

Without checking the docs, I bet implements something similar behind the scenes that is more performant than I could realistically make.

In theory, each 's next move is calculated independently from the others. This could be threaded or even put on the GPU. But those are both categories of optimisation that bring a lot of mental (and digital) overhead. Gains might not be as good as expected.

#quadtree #godot #boid

Last updated 2 years ago