Announcement

Collapse
No announcement yet.

Would it be more efficient to check for distance every couple of seconds or have a collision volume?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Would it be more efficient to check for distance every couple of seconds or have a collision volume?

    So i want to have a city with some blueprint actors in place that detect when AI is close and if enough of them are close it would do something. There would be a lot of AI (maybe 50) and a lot of these blueprint actors (maybe 30). Would is be better to check for the distance between AI and each blueprint every couple of seconds (say 5), or to have each blueprint actor have a collision volume and then fire the event on begin overlap? Thanks in advance.

    #2
    Most efficient would probably be to check the distance once in a while but the fastest would probably be using a trigger volume as it runs on another thread. If your target is PC then the difference would probably be so small it can't even be measured well.

    Comment


      #3
      Originally posted by GarnerP57 View Post
      Most efficient would probably be to check the distance once in a while but the fastest would probably be using a trigger volume as it runs on another thread. If your target is PC then the difference would probably be so small it can't even be measured well.
      Thanks for replying, will take it into account.

      Comment

      Working...
      X