Question about EQS

I am developing a rts/city building game, my worker Ai are using sphere collision to find resources.

My question is how expensive is EQS because I see many benefits of using it but I don’t know how big of an impact it would be if 500 actors are running EQS to find resources?

Hey @h3x0r! Welcome to the forums!

The kicker here is frequency.

So if you were to have them run EQS queries on tick the entire time? Massive slowdown.

However, if you were to have them, say, run an EQS query when they have nothing to do on a 10s timer, that wouldn’t be so bad.

Run a query, find a thing to do, go do the thing (like pick up ore) then run an EQS again to find where to put it. That’s 2 queries in let’s say… 20 seconds. Virtually nothing!

If it were to run on tick that’s 300 vs 3. Now that’s not a big deal… until you have 500 workers and you have 60 queries each second times 500 (30,000) versus .1 queries per second times 500 (50).

Does that make sense?