Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance by tweaking user-facing values #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Razoric480
Copy link

@Razoric480 Razoric480 commented Mar 17, 2020

This is just to show that you can get better performance with a few changes to the baseline:

  1. Only update the proximity agents every couple seconds instead of every frame
  2. Change from a blend to a priority for collision avoidance
  3. Increase arrival thresholds and priority zero threshold

There's a period near the start where everyone is bunched up and it's slow, but once some distance has been put between the units, the performance picks up to playable levels. Some more massaging and tweaking, and maybe a more 'collision aware' spawning method could keep that framerate going throughout.

I do still mean to go into the steering framework code itself and make improvements for performance reasons - I already have some ideas for it. But I figured this is pretty demonstrative of the sort of improvements you can make with a few changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant