# \[URGENT\] Default Movement Component causing major dedicated server performance issues (Linux Only)

**URL:** <https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860>\
**Category:** Platform & Builds\
**Tags:** dedicated-server, Linux, unreal-engine, bug-report, question\
**Created:** [September 18, 2017, 10:23am UTC](https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860 "2017-09-18T10:23:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua\_NZ](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joshua_nz/32/918677_2.png) [@Joshua\_NZ](https://forums.unrealengine.com/u/Joshua_NZ)\
**Post date:** [September 18, 2017, 10:23am UTC](https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860/1 "2017-09-18T10:23:26Z")

</div>

Hi Epic,

After a long process of profiling, I have found a major issue with the Default Movement Component & Linux Dedicated Servers. This issue does not appear on Windows Servers & this issue did not exist on 4.16.2.

This seems related to the “Char FindFloor” function, it seems to be looping in a very strange way, causing the server’s CPU to spike & in some cases stalls the server from processing anything (Picture 1). There is also some hitches to do with the MoveComponent function (Picture 2).

This occurs when I jump on top of objects inside my map.

You can find my ue stats files here:  
[https://www.dropbox.com/s/xfvaa4g5d0y8729/City-LinuxServer-18-10.09.06.ue4stats?dl=1](https://www.dropbox.com/s/xfvaa4g5d0y8729/City-LinuxServer-18-10.09.06.ue4stats?dl=1)  
[https://www.dropbox.com/s/kzq5oodehsus06v/City-LinuxServer-18-10.07.02.ue4stats?dl=1](https://www.dropbox.com/s/kzq5oodehsus06v/City-LinuxServer-18-10.07.02.ue4stats?dl=1)

 ![213848-findfloorissuelinux.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/0/1208594eb7a3e90bbb8dbd7b614a6b01587c4675.png)

 ![213896-linuxcharhitch.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/d/a3d6c9854831f0d719acae8ec89d82dfaeba6b00.png)

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [September 18, 2017, 3:38pm UTC](https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860/2 "2017-09-18T15:38:58Z")

</div>

You will unfortunately need to change source files and rebuild PhysX to fix this. This is not too hard but it can be time consuming.

First of all, you will need to download all the sources from github (you may already have that). Then, find all Linux CMakeLists.txt under Engine/ThirdParty/PhysX (there are three of importance:

```
Engine/Source/ThirdParty/PhysX/PxShared/src/compiler/cmake/Linux/CMakeLists.txt
Engine/Source/ThirdParty/PhysX/PhysX_3.4/Source/compiler/cmake/Linux/CMakeLists.txt
Engine/Source/ThirdParty/PhysX/APEX_1.4/compiler/cmake/Linux/CMakeLists.txt

```

)  
and remove -ffast-math from them.

Then, open VisualStudio solution for the engine, rebuild Programs\Automation directory (right click-\>Rebuild), rebuild AutomationTool and then run it like this

```
Engine/Build/BatchFiles/RunUAT.bat BuildPhysX -SkipCreateChangelist -SkipSubmit -TargetLibs=PhysX+APEX+NvCloth -TargetPlatforms=Linux -TargetConfigs=checked+profile+release

```

Then you can submit the resulting .a files (in Lib/Linux/x86\_64-unknown-linux-gnu) to your source control and rebuild the Linux server.

We’re looking into possibility of including this fix into 4.17 branch, but the above will get you unblocked today.

---

<div class="post-metadata">

**Author:** ![Joshua\_NZ](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joshua_nz/32/918677_2.png) [@Joshua\_NZ](https://forums.unrealengine.com/u/Joshua_NZ)\
**Post date:** [September 18, 2017, 4:54pm UTC](https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860/3 "2017-09-18T16:54:24Z")

</div>

Thank you for your prompt reply & clear instructions, I appreciate it.

I had to remove [RequireP4] from BuildPhysX.Automation.cs in order for it to start compiling. I also added BuildPhysX to the command, and then NvCloth was missing so I added that also.

```
Engine\Build\BatchFiles\RunUAT.bat BuildPhysX -SkipCreateChangelist -SkipSubmit -TargetLibs=PhysX+APEX+NvCloth -TargetPlatforms=Linux -TargetConfigs=checked+profile+release

```

I will report back if this resolves the server issues.

Cheers

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [September 18, 2017, 4:58pm UTC](https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860/4 "2017-09-18T16:58:36Z")

</div>

Thank you - I’ll edit my post to correct it. Sorry, I was copying arguments verbatim from my script and missed the command - I’m glad you were able to figure it out!

---

<div class="post-metadata">

**Author:** ![Joshua\_NZ](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joshua_nz/32/918677_2.png) [@Joshua\_NZ](https://forums.unrealengine.com/u/Joshua_NZ)\
**Post date:** [September 18, 2017, 5:14pm UTC](https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860/5 "2017-09-18T17:14:57Z")

</div>

No problem. Doing as you suggested has fixed the issues.

Thanks so much.

---

<div class="post-metadata">

**Author:** ![looter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/looter/32/914507_2.png) [@looter](https://forums.unrealengine.com/u/looter)\
**Post date:** [June 16, 2018, 11:28am UTC](https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860/6 "2018-06-16T11:28:01Z")

</div>

Is this still required as of 4.19.2? I have noticed some severe performance issues related to the CPU on my linux dedicated servers as opposed to my windows servers. Linux will consume over 250% CPU while the windows server will never go past 25%.

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [June 22, 2018, 3:09pm UTC](https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860/7 "2018-06-22T15:09:39Z")

</div>

I have also noticed this issue in 4.19 and 4.18. Is this going to be fixed?

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [June 22, 2018, 3:13pm UTC](https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860/8 "2018-06-22T15:13:17Z")

</div>

No, this is not required for 4.19.2. The reason for CPU consumption is likely different. Please try capturing the stats and/or using perf tool to determine where the time is being spent.

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [June 22, 2018, 3:16pm UTC](https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860/9 "2018-06-22T15:16:04Z")

</div>

The issue has been fixed before 4.18. Are you sure you’re running into the same problem in PhysX?

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [June 22, 2018, 3:36pm UTC](https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860/10 "2018-06-22T15:36:13Z")

</div>

I checked my source code, for the -ffast-math in the CMakeLists.txt files. It’s still in those files. Is this intended? This issue is definitely the same issue from what I can tell.

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [June 22, 2018, 3:43pm UTC](https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860/11 "2018-06-22T15:43:03Z")

</div>

You are probably using a prerelease or a custom version of those? There’s no -ffast-math in 4.18 (e.g. [https://github.com/EpicGames/UnrealEngine/blob/4.18/Engine/Source/ThirdParty/PhysX/PhysX\_3.4/Source/compiler/cmake/Linux/CMakeLists.txt](https://github.com/EpicGames/UnrealEngine/blob/4.18/Engine/Source/ThirdParty/PhysX/PhysX_3.4/Source/compiler/cmake/Linux/CMakeLists.txt)) or 4.19 (e.g. [https://github.com/EpicGames/UnrealEngine/blob/4.19/Engine/Source/ThirdParty/PhysX3/PhysX\_3.4/Source/compiler/cmake/linux/CMakeLists.txt](https://github.com/EpicGames/UnrealEngine/blob/4.19/Engine/Source/ThirdParty/PhysX3/PhysX_3.4/Source/compiler/cmake/linux/CMakeLists.txt)) though. 4.18 has been fixed in [this commit](https://github.com/EpicGames/UnrealEngine/commit/767f1daf6d3be8893f4d222203a59eb549dc1316#diff-9e0cd595f760f9f000e81adfb3b4c3da) on 2017-09-22 (which is before its October release date), 4.19 has never had -ffast-math.

Either way, please remove the flag and rebuild PhysX.

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [June 22, 2018, 3:46pm UTC](https://forums.unrealengine.com/t/urgent-default-movement-component-causing-major-dedicated-server-performance-issues-linux-only/404860/12 "2018-06-22T15:46:16Z")

</div>

Interesting. I recently downloaded 4.19 fresh from github. I made the changes none the less.
