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"

Performance issues - compiled UE4

Why compiled Development Editor (which according to docs is "Release") from UE4 source is way way slower than released one from launcher? I'm talking big difference here.

I compiled 4.13.1 from GitHub.

P.S. I've seen others having the same problem.

P.P.S. Question is not about compilation time, but how slow compiled-from-source editor works compared to downloaded one from launcher.

Product Version: UE Github Master branch
Tags:
more ▼

asked Oct 20 '16 at 01:19 PM in Bug Reports

avatar image

SoulSharer
19 4 11 12

avatar image ImVawx ♦♦ STAFF Oct 20 '16 at 02:53 PM

Hey SoulSharer,

Do you mean the time it takes to compile the engine when getting the source code?

When you download the engine from the launcher, it is already built and the "source" code is there for reference. This means that when you create a game project with the binary (launcher) version of the engine, it is quicker because the engine is already built. Whereas when you use the source code from GitHub, you have to build the engine yourself, which does take time (between 30 and 90 minutes). Once the engine is built, it should be much quicker.

Can you describe what you are saying in more detail?

Thanks.

avatar image SoulSharer Oct 20 '16 at 02:56 PM

Hello, thanks for a quick answer. What I mean is compiled version works slow compared to compiled official version (downloaded from launcher). Not talking about compilation taking long, it is no brainer. Thanks. :)

avatar image ImVawx ♦♦ STAFF Oct 20 '16 at 03:06 PM

I am still not sure what you mean. Can you give an example?

Thanks

avatar image SoulSharer Oct 20 '16 at 03:16 PM

Compiled from source

  1. Cloned Unreal Engine from GitHub

  2. Compiled engine (4.13.1 in Development Editor configuration)

  3. Opened game project

  4. Waited for shaders and game code to compile

  5. Closed editor after asset compilation

From that point on opening game project takes 5-10 minutes, even though everything is compiled. Dedicated server when ran through editor takes long to spin up too. I'm talking 2-5 minutes here.

Downloaded from launcher

  1. Takes about 1-2 minutes after asset compilation to open project

  2. Dedicated server starts up fast, takes at most 1-2 minutes

Why that much difference in performance, does Unreal Engine that goes public (via launcher) compiled differently? Maybe there are more optimization, different compiler or something else? Thanks.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

I found out how to build UE4 from source to be as fast as binary version provided with launcher, so for reference I'll post here. It takes several steps:

  1. Compile AutomationTool

  2. Go to {ROOT}\Engine\Binaries\DotNET and type "cmd" in address, then click enter OR run cmd and cd into that directory

  3. Now type in AutomationTool BuildGraph -target="Make Installed Build Win64" -set:HostPlatformOnly=true -script=Engine/Build/InstalledEngineBuild.xml -clean

  4. Click enter and wait till you see that build succeeded

  5. Enjoy your UE4 binary build in {ROOT}\LocalBuilds

Reference: https://docs.unrealengine.com/latest/INT/Programming/Development/InstalledBuildReference/index.html

more ▼

answered Oct 24 '16 at 12:54 PM

avatar image

SoulSharer
19 4 11 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hey SoulSharer,

Thanks for the report. What you are seeing is a consequence of the difference between using the binary version and the source version. The source version generally has more to do when the project is launching compared to the binary version. While the difference is noticeable, it is also expected and therefore, not a bug.

My recommendation is that if you do not need to make source code changes, go ahead and use the binary (launcher) version of the engine. However, if you do need to alter engine code, the longer loading and compile times will be a part of it.

more ▼

answered Oct 20 '16 at 03:24 PM

avatar image

ImVawx ♦♦ STAFF
6.8k 114 18 128

avatar image SoulSharer Oct 20 '16 at 04:49 PM

Unfortunately we can't use binary version because there is a bug in 4.13.1 that will be fixed only in 4.14 and we need source version for adding new features later on.

Do you have any suggestion on how to minimize that difference between source and binary versions? It will be much appreciated, because it is a big concern when whole team experiences such slowdown.

Do we have to disable some modules, fiddle with compilation via compiler flags or maybe something else?

Thanks!

avatar image ImVawx ♦♦ STAFF Oct 20 '16 at 05:00 PM

You can fiddle with what modules you're using or whats being included into the project but source takes longer to compile and launch. It's how it works.

Out of curiosity, what bug in 4.13.1 prevents you from using the binary version?

avatar image SoulSharer Oct 20 '16 at 05:02 PM

I tried to disable all modules we don't use, no use, still the same I'm afraid. Here it is, though someone was first to make pull request https://github.com/EpicGames/UnrealEngine/pull/2874

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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