Installed GAS plugin, stuck with waiting 5 hours to compile

Howdy.

I am a little disappoint; I installed the GAS plugin and now I’m waiting for 3780 files to compile.

I have already set my xml file to use all cores and what not.

I even set it to link instead of compile everything. But yet that only lowered the count by 80.

I am just recompiling my project only.

The more I look at the whole UE.5.8.1 source, the more I’m sitting here wondering why it’s a giant pancake made out of noodles; does it really need to be 300 gigs with 390,000 files?

There has to be some way to trim this fat?

I can’t imagine this is a standard way of working on a daily basis. Fully compiling is a nightmare-ish concept to me and destroys any hope of getting anything done in a day.

I am using;

Processor

AMD Ryzen 9 5900 12-Core Processor, 3001 Mhz, 12 Core(s), 24 Logical Processor(s)

64gigs of RAM

Shouldn’t this be taking minutes, not hours?

Should be about 30 seconds. Did you edit the engine source or something? If you just added the plugin in your build.cs it should be isolated from a rebuild. For some reason it sounds like you are triggering a full engine rebuild… this isn’t normal.

Did you get the source from github, or just using the source that epic launcher installed with engine? If you got it from github, it may have newer versions than the binaries that launcher installed, so VS may be trying to update all the things.

But, yea, that’s def not normal. In my GAS-enabled project, I have like 4 .cpp files (plus their headers), and it only takes a couple of minutes to build.

Nope didn’t edit the source at all.

Simply installed the plugin from the editor.

Why it triggered a massive compile is still beyond me at this point. I let the day go and let it compile it with lazy-linking.

Honestly the whole workflow with C++ is driving me rather batty.

For example I wanted to make some more C++ files and keep them organized in public/private folders…

… the whole process for this takes around 3 minutes as it opens and closes things and does a short compile. For 1 file. (well we know it’s 2 but you get the idea)

The worst was I forgot to tell it to make a folder and had to strip everything back and delete the files it made, and recompile, because I simply had forgotten to tell it to make a folder.

I feel like the whole thing is trying to perform brain surgery with my hands inside a burlap sack.

Who knew that making or deleting a file was such a complicated nightmare?

Is your CPU at 100% when you build? 5900 should probably take about 2 hours for a full build from scratch.

In your {project}Editor.Target.cs file, I’d add this line:

    BuildEnvironment = TargetBuildEnvironment.Shared;

That will make sure to use the source as is if possible instead of rebuilding. This will make your project builds take seconds.

Finally, if you’re using Windows and you sometimes don’t see 100% CPU usage when building, Open Task Manager and go on the Performance side tab and click on memory. You should see a number under Committed at the bottom. We’re looking for the max number. It should be at least 150GB or about 3x the amount of physical RAM you have. If not, go into your Windows settings and increase the amount of virtual RAM you have on your C drive.

The amount of free Committed memory is what determines how many cores you will use. So you could have nearly 64GB free and not use all cores because Committed is too close to the max. Your browser likes to use most of this memory and is usually what causes UE to only use a few cores. So push it higher and you should be good to go.

This is really helpful, thank you. I had it set to 80% but if I can get a full compile down to 2hours I will be extremely happy (as I don’t do that very much as it is).

Thank you!