Intermittent 1sec lag every X seconds

Hello Everyone.
I didn’t know where to post this as Answer Hub seems not to exist anymore and as I can’t find the QnA page.

My issues is the following:
When I Launch a new unreal project, use the base map of the 3rd person mode, or create a new map with this 3rd person mode
For a few minutes, I will have no lags, either in PIE, built game or viewport Game mode
Then, all of a sudden, every 5 sec (or less), I’ll get 1 sec of lag, even if the map has notthing in it.
lag

I’ve tried many things but so far I didnt manage to solve the probleme:
-Try updating my drivers
-Try different version of the engine (5.4 and 5.5)
-Try deleting all atmospherique effect
-Try creating a new project
-try on the base third person map, open world map or basic level map.
-try reduce the scability of the engine
-try putting the project on the internal ssd as well as on an external one.
-went back to unreal 5.4 and let the shaders charge fully.
-I have of course 0 other application open on the computer
-I have desinstalled/reinstalled 5.5
-I have tried many different gamemode

Sometime everything will be fin but as long as i go too far from the base point, this intermitent lag will appear and will never leave unless i restart the engine.
And even if I restart, the intermitent lag will restart maybe 50-60 seconds after.

Normally a gif should be visible here, look at the 30fps drop intermittently for no reasons :frowning:

If you have any questions don’t hesitate, but i’m very desperate on this one, been 3 days I’m trying to solve it :frowning:

From MICROSOFT website , get SYSINTERNALS tool package.

They have AUTORUNS64 in there.

Run it and post list of stuff that starts on booting up.

You may have some crap like DRM, anticheat, anti virus, or just plain virus. That does some crap every 5sec, and unreal is quite sensitive to harddrive speed or memory usage.

However before you do all that sysinternals stuff, open task manager and see if any process takes over more ram or CPU when unreal has lag.

Hey thx for your help,
But i didnt manage to find the solution, I installed a few things that were shady but the intermitent lag is still there,
First on the task manager I found this, it slightly increase during lag, tho i connot stop it

And here is what autoruns find tho I have no ideas what all thoses things represents:
Ive selected screenshots of only the highlighted one





Does it rings any bells to you that could cause the issue? :frowning:

Looks like all is fine (not suspicious).

Also a big warning: sysinternals autoruns allow to remove apps from booting up registry entries.
I know it is tempting, however never remove them (unless you are 100% sure whet it is, or ready to install whole windows).

Ps.
in sysinternals there is more advanced (than windows has) process explorer, check that.

I’ve took a screenshot of the task manager during this happening:


A: Im in unreal engine and I have this alternating lag that makes me vary between 60 and 25 fps every seconds
B: I go on an other windows, yet the spike continue to exist
C: I go back to unreal engine and it disappeared completely
D: I’m in UE, I havent move the scene at all, just waiting and the intermittent lag happen from nowhere.

Yet when I retried the experiment looking at the app used, nothing seems unusual :confused:

Look at disc C spike right when you have B. Probably another app caching from C. Something is using too much memory, and forces unreal and itself to swap ram to cache. That is my theory.

You should check free space on C:
best app to see what left huge junk files on your drive is: https://windirstat.net/
(again disclaimer, do not go nuts with deleting everything)

Oh and in sysinternals process explorer you can see how much RAM each process uses.

Hey again, :slight_smile: So I went to my local computer shop and they cleant the dust out of the fan, there was loads of them haha.

My pc is not burning hot anymore while doing UE5 et the lag has disapeared entirely :slight_smile:
Thanks for your help still :slight_smile:
Have a nice day!

Oh, sorry my bad. Thermal throttling and overheating is usually first thing i ramble about, however for some reason I did not came out in this topic. :smiley: