FLAMEGPU2 icon indicating copy to clipboard operation
FLAMEGPU2 copied to clipboard

ValidateIDCollisions runs when not required

Open ptheywood opened this issue 3 years ago • 0 comments

The ValidateIDCollisions method / kernels(s) run when agent populations are set.

If the population was created at runtime (i.e. not loaded from disk) and theh population was empty originally then there is no opportunity for a collision afaik, so this can be skipped.

For a population of ~ 30k running on a 1070 (100% utilisation) this will save ~150us per population, which is generally insignificant but still an improvement in work efficiency.

So low priority, but probably worth doing eventually.

ptheywood avatar Jun 18 '21 12:06 ptheywood