Code center > Specialization, Metabolism, Digestions and Env Grid

Diffusion of substances in the Egrid

<< < (3/4) > >>

Numsgil:
No matter how we do it, this is going to be a huge hit on speed.  Diffusion is a major, major issue.  So much so I've considered at times not letting things diffuse at all.

I can't know for sure till I actually have code that does it, but the one psuedo-egrid PY made a while ago wasn't all that good at diffusing...  It only did it every like 10 cycles or whatever, otherwise it was too slow.


--- Quote ---   it explained the math nums
--- End quote ---

Then why the Hell didn't you post a linky?   :lol:

Greven:
Better not to let it diffuse... we are hitting the head again on O(n^2)!

Botsareus:
actualy , I think the shack method works just fine.

Numsgil:
Shack method?
Without diffusing, we don't get bots being able to communicate over areas using pheremones.  Which is a big part of alot of life.

That might be a necessary thing we don't get to play with if the computations get too CPU expensive though.

PurpleYouko:
how about a simple routine that just randomly chooses a few grid locations (maybe 100) per cycle and moves stuff into neighboring grid locations.

That way we get difusion without too much slowdown

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version