Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Ai character hit on performance

Hi, I 've got the need to put about 50 pedestrian entities on an exterior scene, for the base ai entity i use the character class blueprint and a custom ai class that inerith from the base ai controller class, the class of ai got a simple task get a random point and walk to that point, i've got a timer that check if has passed a certain ammount of time, if it is true then get another random point to walk to and reset the timer. this simple task impact on the frame rate between 10-15 frame per second. Is there something i should know about? I'm sure it is not the number of triangles because the models have 3 lod wich the smallest has about 800 triangles and when i detach the ai from the character class the counter regain those 10-15 frames.

Product Version: UE 4.11
more ▼

asked Apr 06 '16 at 05:19 PM in Using UE4

avatar image

26 4 5 11

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

A late recommendation. I use hundred of AI controlled NPC´s with behavior tree and perceptions. To make this to work without network and server performance hit, some actions have to be taken.

  1. Use NPC trigger volume, telling players are around, and enable/disable AI accordingly.

  2. Enable/Disable AI with SpawnDefaultController/Unposses.

  3. Hide disabled NPC´s.

  4. Enable/Disable ticks for NPC and all it´s components.

  5. Set NPC mesh draw distance.

  6. Consider to disable dedicated server tick´s and set tick interval to other then zero.

  7. Sometimes you may have a low rate timer to replicate values instead of movement replication.

  8. Let client do calculation along with server for smooth effect, server correct client with low replication rate. i.e. a ship increase/decrease speed according to +/- difference from server.

more ▼

answered Nov 01 '17 at 01:09 PM

avatar image

11 2 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question