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"

Reducing UE4 Source Code Recompile times

So I'd like to make changes to UE4 source code and not recompile the ENTIRE engine, but perhaps just the modules that I made changes to. I'd like to think there's some to reduce the compile time if I only changed one value in a one file. Is this possible in MSVS or does it have to recompile everything anyways? Any feedback would be greatly appreciated.

Product Version: Not Selected
Tags:
more ▼

asked Mar 10 '15 at 04:54 PM in C++ Programming

avatar image

Victor Matos
63 5 7 15

avatar image Victor Matos Mar 10 '15 at 09:10 PM

I'll be a little bit more specific about what I did. I'm modifying the InertialScrollManager.h which means that any module which includes it will have to also be recompiled. When I rightclicked the UE4 Project in MSVS's Solution Explorer and hit "Build," it compiled around 500 modules (which seems a bit much for just the inertial scroll manager). The compile took more than 2 hours on mid-high tier computer. Which begs the question: is everything being recompiled? Is this wait time normal or am I just being impatient? If my procedure is incorrect, could you describe the appropriate workflow for what I want to do? I'd greatly appreciate it. :)

avatar image Shadowriver Mar 10 '15 at 09:19 PM

One note here, playing with VS settings here won't help you out at all. UE4 has it's own build system called UBT and it ignores any settings in VS as well as project files (in fact you don't need VS project file to build the game code, UBT only uses VS for compiler). He builds according to build scripts (C# files in source), so if you want effect compiling process you need to play with them

I myself don't like fact that UE4 is direcly link to my module (but it makes sense as it becomes part of the engine) and when i rebuild it deletes whole engine bineries. I experiment a little but so far didn't find the way to avoid that, so i will watch this question ;]

avatar image suheti Oct 23 '16 at 08:44 AM

From what I understand, Victor Matos was trying to build the engine itself, which means it is built by VS, not by UBT.

But do correct me if I'm wrong. I am very new to this. Thanks!

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

1 answer: sort voted first

As long as you are not hitting rebuild, this is already supported.

If you change cpp files only, generally you will only compile that module.

If you are changing header files though, any module that has a dependency on the module you changed will need to be recompiled. If this is a core module, there is really nothing you can do about this.

more ▼

answered Mar 10 '15 at 05:31 PM

avatar image

Allar
3.1k 50 117 487

avatar image Victor Matos Mar 10 '15 at 09:03 PM

I'll be a little bit more specific about what I did. I'm modifying the InertialScrollManager.h which means that any module which includes it will have to also be recompiled. When I rightclicked the UE4 Project in MSVS's Solution Explorer and hit "Build," it compiled around 500 modules (which seems a bit much for just the inertial scroll manager). The compile took more than 2 hours on mid-high tier computer. Which begs the question: is everything being recompiled? Is this wait time normal or am I just being impatient? If my procedure is incorrect, could you describe the appropriate workflow for what I want to do? I'd greatly appreciate it. :)

avatar image Allar Mar 10 '15 at 09:43 PM

I believe there are about 1000 build steps for a full rebuild, so if you're only seeing 500, there are definitely some being skipped. 2 hours though? Daaaaamn.

avatar image Jingz Apr 14 '17 at 08:23 AM

Why source engine is different form the launcher engine?Do you have any idea about this one ?

(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