C++ compilation/build takes an extremely long time

Hi

I am currently learning Unreal and running into an issue when compiling C++ code. Both when I build in Visual Studio/Rider or try to press the compile button in the UE4.26 Editor the build execution is stuck on “0>Building 4 actions with 4 processes…” for a very long time.

I changed a minimal amout of code from the default first person C++ template and the problem presisted when i removed it and tried compiling the template as it was originally.

While i was writing this post the execution actually completed successefully but took a ridicoilously long amount of time. In the online tutorial I was following to make this change this process took seconds whilst mine is stuck for a good 10 to 20 minutes and it doesnt seem feesible to wait this long?

image

I am not sure what to do. Does anyone know how I could solve this issue?

Many Thanks

1 Like

Hello, did you manage to find a solution, I have the same issue…

1 Like

Have you managed to find a solution? I am facing the same issue in UE 5.3 - hitting the compile button in Rider will stuck on ------ Building 10 action(s) started ------ for a very long time, somewhere between 5-10 minutes until the actual compilation starts.

Even small one-line changes in CPP files are taking ridiculously long to compile. I have no idea what’s wrong.

1 Like

Hey,
Did you find a solution to this? I have the exact same problem with UE 5.4

I have been running into this too, I’m pretty sure it’s based on the read/write speed of the hard drive the project is on.

I encountered this issue and opened Task Manager. The disk where the project is, is maxed out at 100% transfer rate. Most of my projects on an SSD breeze past this step.

Hope this helps!

Might it have something to do with the sheer size of the engine? There are a bunch of plugins that comprise the engine, less than half of which you’d probably need. Perhaps if you disable and remove some plugins, the build would take less time?