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"

Beginner : Improve Compile Times...

Hello Unreal Community,

I have started using UE4 recently (which means I'm a newbie) and was messing around with c++ tutorials and finished almost all of them, but this took me 3 days due to compilation times, I won't lie, I have a piece if aluminum with a processor on it (intermediate computer) but when I try to compile a game with 2 custom classes I get over 5 minutes wasted on something that was done in 2~3 seconds in unity (sorry if mentioning another software is not allowed) so my question is, How to improve the compilation speed of projects?

Product Version: UE 4.18
Tags:
more ▼

asked Feb 23 '18 at 01:05 PM in C++ Programming

avatar image

killerOfSteam7
1

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

2 answers: sort voted first

I don't think that a comparision of build times of UE4 to Unity delivers a valid result from a technological point of view, as you are comparing technologies that are entirely different under the hood. This comparision might make sense with a project management perspective, so if short build times are your first priority UE probably just is not the right technology for you because C++ (generates machine code, non-context free grammar) will (nearly) always build slower than C#/.net (generates intermediate language, context-free grammar).

However there are several articles describing how to get build times down focussing on UE4 as well as on C++ in general. So I'm not going to write another tutorial on this topic here.

In general it is a good practice to reduce your includes especially in headers. Use forward declarations instead whre appropriate. Regarding UE4 I would recommend to check wether the exclusion of your changed files from the unity build is working as intended and if only the required files are rebuild after you did some changes (touching a header will cause all files including it to rebuild).

Hope this servers as a good starting point for your further investigations.

more ▼

answered Feb 23 '18 at 02:17 PM

avatar image

j.mueller RFG
304 3 9 10

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

Change lightning from lit to unlit and try to open less windows this might work

more ▼

answered Feb 23 '18 at 02:25 PM

avatar image

AGRIM SINGH12
1 2 1

(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