CPU Stall after 4 seconds of running packaged game

Hello everyone.

I recently noticed that every game or demo or blank project that I package with either UE4.2.1 and 4.3.1, has a small but noticeable hitch in the framerate after 4 seconds from running the game. The rest of the time it runs fine.

I used stat dumphitches and the profiler tool, but all I see is some 150~ms Wait for Event. I don’t know how to identify the issue.

This is the dumphitches log:

[2014.08.08-17.55.43:557][295]LogStats: ------------------Thread Hitch, Frame 294   156.3ms ---------------
[2014.08.08-17.55.43:557][295]LogStats: ------------------ Game Thread 156.29ms
[2014.08.08-17.55.43:557][295]LogStats:    1.15ms (   4)  -  Thread_1a08_0 - GameThread - STATCAT_Advanced
[2014.08.08-17.55.43:557][295]LogStats:      1.15ms (   2)  -  FrameTime - STAT_FrameTime - STATCAT_Advanced
[2014.08.08-17.55.43:557][295]LogStats:        1.01ms (   1)  -  GameEngine Tick - STAT_GameEngineTick - STATCAT_Advanced
[2014.08.08-17.55.43:557][295]LogStats:          1.01ms (   6)  -  OtherChildren
[2014.08.08-17.55.43:557][295]LogStats:        0.14ms (   8)  -  OtherChildren
[2014.08.08-17.55.43:557][295]LogStats:      0.01ms (   2)  -  OtherChildren
[2014.08.08-17.55.43:557][295]LogStats: ------------------ Render Thread (//STATGROUP_Threads//RenderThread///Thread_1be4_0///////STATCAT_Advanced////) 156.33ms
[2014.08.08-17.55.43:557][295]LogStats:   156.23ms (  91)  -  Thread_1be4_0 - RenderThread - STATCAT_Advanced
[2014.08.08-17.55.43:557][295]LogStats:     154.65ms (  33)  -  CPU Stall - Wait For Event - STAT_EventWait - STATCAT_Advanced
[2014.08.08-17.55.43:557][295]LogStats:      1.58ms (  58)  -  OtherChildren

I’m not sure if this has always happend to me. Any clue?

Greetings!

Hi,

I think this is garbage collector. Check world game time: if hitches appears right on 1, 2, 3 mintue - that’s it, garbage collecting time.