x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Two hour compilation time (for rebuild)

My computer is an 8 core/thread cpu at 3.4 GHz, 16 GB ram, and haven an SSD. Building the UE4 binaries from a clean repo or with doing a rebuild takes 2~ hours. (this is without any modifications)

Subsequent builds from modifications of engine modules varies in length to compile, typically anywhere from a <5 minutes to 20+ minutes depending on the changes and what modules are affected.

I notice that disabling compilation of the editor cuts the compile time down by 60% or so, but obviously for development purposes the editor is required.

So the question is, are these times normal/expected? Can anything be adjusted/tweaked to improve (particularly in regards to iteration) the build times?

I will say that we have tried incredibuild, and it 'works', but is obscenely expensive and may be too costly for us, so was looking for alternatives.

Product Version: UE 4.21
Tags:
more ▼

asked Jan 11 '19 at 05:02 PM in Using UE4

avatar image

Observer64
1 3 3 2

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I know when I download the engine source code and compile it from scratch, the first build takes at least three hours. And my machine is a 24-core dual-processor Xeon (though, admittedly, it's several years old now). I also am using an SSD, and have plenty of memory (64 GB).

Point is, I think it's entirely normal for a complete build of UE4 from source to take several hours. Subsequent builds should, as you said, take less time, but are dependent on what you change, and how many downstream classes are affected by that change.

One thing I learned to be careful about, that helped avoid unnecessary long waits, is to never simply build or (especially) rebuild your project from within Visual Studio — doing so risks compiling both your project and the entire engine together. Instead, you want to use the 'Build Only...' option in the context menu when right-clicking your project. Also, avoid using the 'Clean' commands, because, if I remember correctly, those also clean out your compiled engine binaries, which will then require a full engine recompile. If you need to clean and rebuild only your project, but not the engine binaries, I recommend going into your project folder and 'cleaning' manually by deleting your project's binaries folder; then use the 'Build Only...' option to cause your project (but just your project, not the whole engine) to recompile.

I hope that makes sense and works to help save you some time. It's a bit of a pain to remember, and I've certainly made a few frustrating mis-clicks. But once you know what to avoid, you can begin compiling changes to your project about as quickly as if you were using the launcher version of the engine.

Best of luck!

more ▼

answered Jan 11 '19 at 08:52 PM

avatar image

the_batch
739 3 3 8

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question