# Player animations slow down on listen server

**URL:** <https://forums.unrealengine.com/t/player-animations-slow-down-on-listen-server/1262819>\
**Category:** Multiplayer & Networking\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [August 16, 2023, 12:09pm UTC](https://forums.unrealengine.com/t/player-animations-slow-down-on-listen-server/1262819 "2023-08-16T12:09:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![EdditionX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EdditionX](https://forums.unrealengine.com/u/EdditionX)\
**Post date:** [August 20, 2023, 12:33pm UTC](https://forums.unrealengine.com/t/player-animations-slow-down-on-listen-server/1262819/3 "2023-08-20T12:33:49Z")

</div>

I checked if there is such problem in other projects. It turned out that these lags are in any 5.2 project. I checked even on other PCs and the problem is exactly the same. On 5.0 animations are not slowed down, but still jittery.

What I did: I found information that I need to do two things. 1. bOnlyAllowAutonomousTickPose=false in Character class (PossessedBy)  
2. Override and comment TickCharacterPose() in CharacterMovementComponent (MoveAutonomous)

> [@Listen Server, clients animations are jittery/laggy](https://forums.unrealengine.com/t/listen-server-clients-animations-are-jittery-laggy/689493/15):
>
> The problem is not simple because as a server you’re supposed to hold truth, and interpolation/smoothness is not the truth. As an example scenario, lagging client might send moves packets (1,2,3) but you receive them in order (2,3,1). Server cannot advance until it has packets in order so it performs all three moves at once when it receives the first (last). Regardless, Epic still added interpolation for sims movement on listen server, at some point : (also controlled by this Cvar, …

But I ran into a c++ related problem in second task. I don’t understand how this function can be overridden, because when I just wanted to copy the function code from the CharacterMovementComponent to my child component, the namespace member is not defined for me: CharacterMovementCVars::EnableQueuedAnimEventsOnServer. (before that, I managed to overwrite it and in general there are no problems, I replaced my component from the standard one)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/2/a625c4f7b5d0f7a586677e85889757f698eb36c9.png)

This happens because CharacterMovementComponent.h has only two external members.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/4/624f514025194eab9cb1b1c47e1cd6da741ff52a.png)

Whereas the required namespace member is in CharacterMovementComponent.cpp .

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/b/deb9a869031643695925443df1d7e84a901c0235.png)

And if i directly include “Engine/Private/Components/CharacterMovementComponent.cpp” in my component.cpp i get an errors:  
a) ‘PerfCountersModule.h’: No such file or directory(fixed)  
b)Cannot open include file: ‘CharacterMovementComponent.gen.cpp’: No such file or directory

So what can I do to fix this? And as I understand Super will not help here, because I need to disable (comment) the TickCharacterPose call (not just change the variable).

---

_[View the full topic](https://forums.unrealengine.com/t/player-animations-slow-down-on-listen-server/1262819)._
