I am making word cloud in VB.NET and I have problems with performance. I tried quadtrees, but my implementation is slow.
I have followed this tutorial: http://gamedevelopment.tutsplus.com/tutorials/quick-tip-use-quadtrees-to-detect-likely-collisions-in-2d-space--gamedev-374
But my main problem is that when I am placing word on the "canvas" I am doing the checking too often, because I have the radius step example 0.01 for best tight packing to the center, same thing applies to angle step 0.5
1 take word
2 place it to center of canvas
3 while it collides with other(I am testing all other objects)
move it by little bit on the spiral
4 set radius to 0, so I start at center again, angle is not changed
5 step 1
So my question is, what do you recommend for less often checking or other performance tweaks? Thanks in advance
Here is screenshot of how the result looks: