AI Causing Lag
The AI for our game uses the Character Movement Component, and I think this is main source of lag in our game. When I type stat GAME in the console, it shows something called "Char Movement Authority Time" is taking a lot of time. Now our game is a single player game, and as far as I am aware Authority is something that you only need to worry about when you are trying to talk to servers. So my question is, is there any way to turn this off? I have tried unchecking all of the boxes that have anything to do with replication, but this doesn't help. Any ideas? Is it because in the behavior tree I am casting to CharMovementComponent so I can change the AI's walking speed? I am using the 4.6 version of the engine.
asked May 10 '15 at 06:42 AM in Blueprint Scripting
I know this post is extremely old, but Im surprised no one answered your question.
If you're making a single player game don't use CharacterMovementComponent, instead use a PawnMovementComponent. If you are inheriting from a character, don't panic you can just remove the CharacterMovementComponent and add your own PawnMovementComponent in the constructor.
But keep in mind if you choose to use PawnMovementComponent over the CharacterMovementComponent you are forfeiting all (built in) networking capabilities, the PawnMovementComponent is very basic and only handles basic movements; essentially any complicated movements would have to be written by you through a custom PawnMovementComponent.
Follow this question
Once you sign in you will be able to subscribe for any updates here