guys does anybody know why compiling times are so high in visual studio while i watch other people and it usually takes 20 second for them to compile but for me it’s around 500 seconds even if I change 1 little word in the code and there’s like 70 lines of code it still takes 10 minutes to compile which is pain in the back. Does anybody have a solution to this?
Compilation times are very CPU dependent as far as I know, so I assume the people you watch have better hardware.
Even on an i9 and SSD sometimes the C++ compiler just seem to crash…
if more than 30 seconds pass, I cancel and restart compiler processes.
cancelling Doesn’t help I also have got a SSD 970 pro and an i7 8700k, so hardware is not the issue.
I vaguely remember something about VS, that you may have to override some setting to allow the usage of multiple cores. I don’t know, maybe you’ll find something.
I had this issue when I first started using UE4, but it turned out my all-in-one PC was not up to it. I would wait ages for compilation.
Now I am using my Alienware desktop from 2014 and it has an i7 4th-gen quad core/8 threads and an AMD RX 480 graphics card. I put in an SSD as well. Glad to say, UE4 is running really fast.
Are you using VS 2019? I don’t recall making an changes in VS. I think (don’t quote me on this), the discrete graphics card helps a lot.
Like I said my all-in-one was slow as it used a low-end CPU with a GPU that only had 3 compute units!
I usually compile projects using Unreal’s bat script that VS uses to compile. I wrap it around a makefile and use make. Try running Unreal’s bat file directly once to see what happens.
That being said I don’t recall compilation taking so long in VS but maybe my projects are not that big.
10 minutes means something’s wrong. Some corrupted files or something. Or you’re running out of RAM and paging to disk – how much RAM do you have?
follow the 7th post in this thread, it is a “life saver”
I recently tossed UE4 on an NvME drive and it’s cut my compile times by 90%, especially if there’s lots of header files that it needs to seek out and read. Definitely worth it if that’s in your PC budget.
quick update: I had to do a clean installation of windows, Visual studio, and unreal engine and right now the compiling times are way down around 70 seconds. I guess there was some corrupted file that was causing the issue. thanks everybody who responded.
I have a similar complaint but would have assumed a Core i7-3820 with 4 cores would have been adequate. I do however have my game projects on a platter drive, and will migrate them to my SSD. At times the compile does seems to get stuck for > 45 seconds. I can usually remedy this with a Rebuild All in VS 2019. Sometimes Unreal Editor will hold something open and prevent the compiler from deleting it too.
7 year old hardware probably could use some pretty major upgrades. If you can’t replace everything with modern, at least get a SSD and more memory. If you can get new stuff, NVMe SSD, newer architecture processors, and bigger faster RAM make an absolutely mind boggling difference.
Gee that’s old.
Phill can you clock it at 5GHZ to compile faster
Watch the windows so they don’t break from the vibrations on the desk once you get it at 5Geesss
I used to have this issue too for a while. I thought it was just Unreal.
I have a Ryzen 5 5600X with 32GB RAM.
I then moved my projects from a 7200RPM HDD to an external 500GB Samsung T7 Touch SSD (because I needed portability). The compile speeds are pretty much instant.
From a cold start, it’s about 3 minutes vs the 20 or so minutes I had before.
For a normal compile, it’s about 8 seconds vs the 3 minutes or so I had before.
what makes you think I dont have and SSD ?
besides a couple of minutes later, for some reason, the compiler runs gets finished in 1’ for some reason
I work with many languages, nothing requires 10 minutes to compile a c++ class …and I been doing this for 30 years
old ? I think it’s plenty sufficient to compile one c++ class dont you think ?
who cares the age of the CPU
I got a 250 SSD and any software on my pc run super fast, no complain
a c++ class of a couple of line could be compiled on a 1980 casio watch in like 60 seconds or what not
cant believe you guys are arguing around CPU marketing idioms
if you cant figure a 8 core @ 4ghz is more than enough to do the job…