UE Project Took very long time to load for the first time

First of all i’m using unreal engine source build 5.4.2, i started my project on the same PC i’m using now, but because i purchased a new PC components to upgrade my PC i had to format my PC.
Before that my project was launching in about a less then a minute or so with way lower PC configuration, since i reinstall my PC re-download everything bringing back to normal now my project requires about 5mins to load for the first time and strange thing is every time i pull up a gun, thrown grande, spawn an object always recomplie the shaders again and again.

Why is this happening ?

Before that i did have some problems with my game as well but i always make backup of my game in case of situations like that, and i have back-up the game 2-3 times and it was launching without a problem, since i format my pc my project took so much it annyos me a lot.
but newly opened project via Source Build it opens them immediately without a problem, it always loads unreal things like : Unreal Engine stuff before boot up my project and that thing takes a lots of time, but when i close my project and open it once again, it loads in about 10 seconds maybe less, but if i restart my pc, again i need to wait a long time and recomple all the shaders.
I’ve tried to use console command “Recompileshaders All” but to no avail problem still persist,
Please i need your help this is gettin on my nervs.

Thanks in advance, cheers !

My PC Specs :

CPU : Ryzen 9 7950x3D 144MB Cache Edition 5.7GHz
GPU : N’Vidia RTX 3080
RAM : Kingstone Fury Beast 64GB (5600mhz)
PSU : Cooler Master MWE Gold V2 1250W
SSD : 2x 1TB Samsung EVO QVO
Motherboard : Asus TUF Gaming 650M
Monitor : Samsung 244hz 4k Display

The compiled shaders are stored in the DerivedDataCache folder inside of your project. They should need a compile once and not every time you load the project.

Are you building your project or rebuilding it? Rebuild always equal clean + build which takes longer than incremental builds.

Also is your project set to the default startup project? Are you sure you are only compiling your project and not any part of the engine?

Can you please elaborate more on what did you just say because some things i do understand some i dont, so if it’s not a problem for you explain me in more details what do you mean by :

Building your project or rebuilding it ?

and how can i check if my project is set as default start up project, and how can i check im compiling only my project not any part of the engine ?

Thanks in advance 3dRaven

The project name should be in bold letters if it is set as the default startup project

Here is build and rebuild

obraz

From the build menu

build

At this point if you’ve already compiled the engine once you should not have to touch it. It should basically behave like the epic binary version (unless you decide to tinker with it then you need to compile it again). But for the most part it’s better to extend the engine than to modify it if possible.

1 Like

Let me double check those things and i will came up with, all the things would find along the way.
Thank you for your fast response.

EDIT : I double check things, yes my project is set as default starting project in, i build it again it builds the project in less than a 30 seconds with 12 succeed, 0 Skipped, 0 Failed. But yet again project takes a long time to open

This what my project loads for the first time i launch it every time, but second time it skips all the plugins and goes directly to 0% - 9% - 93% Done in less than a 10 seconds.

I dont know why my project list those plugins which 99.9% of them i didn’t even used them except some like : Dragon.IK, PCG, Collision Disabler i have active around 4-5 plugins active on my project.
which are fairly small.

EDIT : Now im trying to move local data cache to “Derived Data Cache” Inside my project folder to see if anything is going to be changed

it does seem a little slow for an SSD loading time. You can go into plugins and disable most default stuff like paper2d and vr stuff. Keep only the necessary plugins.
(it looks like your project adds a lot by default)

You can also limit the platforms to only the ones you need.

My project compiles and is up and running in around 30 seconds.

yes but second time when i launch the project for example open for the first time after fresh restart of PC or Shutdown it takes time, i close the project open it again it opens in less than 10 seconds.
and my PC i fairly good/powerful i had way lower PC before i upgrade it it took way less time than now but then every time i open up the project it opened the same speed which was about a minute

First launch you will get shader compiles that take time (usually around 5200 shaders per project)

yes but not in this case, the video above is when i launch the project first time after fresh restart or shutdown, it’s not like very first time opening the project in which will compile around 5.2k shaders like you stated.

I’d say open up the uproject file and go into the the plugins area, look through what you need for the project and turn off the rest. You can make a copy of the uproject file itself as a backup somewhere, then just cut out most of the plugins in the project folder’s uproject. I’m sure it will load a lot faster.

Is the project running off a an internal SSD? Any type of network connected content / one drive content could also be slowing down loading if content needs to be validated.

This is how it opens up the project the second time i try to open it when i close the engine and open it back again.

12 seconds in total…

So it’s probably built it’s needed cache and now just loads it.

the thing is why build the cache the every first time i open the project, can i do something about it ? to store it somewhere to read it from a file or something ?

I’ve tried this but it does not work

On the binary version the global settings are left empty on the editor settings.

yes they were the same at my side but i changed them to a folder to see if it will do anything at all, but to no avail…

Edit : My DDC “Derived Data Cache” is very low it’s even on kilobytes, maybe the project does not write the DDC correctly.

Could it be a write permission problem? Maybe your cache is not saving correctly?

The derived data cache in projects is rather small but the one inside of the engine is rather large

The one in /Your engine install path/Engine/DerivedDataCache is around 2,40 GB

Yes my UE 5.4.2 Default one non-source DDC is exactly 2.40GB

But in Source is about 950KB i think game should save DDC in Source instead of Default since project is source not a Default UE5… no sure tho i don’t even know at this point what to do, i first time encounter this problem, now i will rebuild the project and see if something will happened…

I did Full rebuild instead of rebuild on my project and it does get a lot faster, is still slower for the first time but from 5mins went down to maybe a 30-40 seconds. So somehow Full rebuild did the trick!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.