Problem with memory usage in UE4

   2017   2   0
User Avatar
Member
1 posts
Joined: May 2020
Offline
Hi,

We have noticed that while the UE4 edtior hangs(for example opening a large level), all added stat messages from other threads will keep accumulating and allocate a huge amount of memory.
In our case, the large proportion of stat messages were coming from FPlatformProcess::Sleepfunction called in FHoudiniEngineScheduler::ProcessQueuedTasks.

Is it safe to replace the call to FPlatformProcess::Sleepwith FPlatformProcess::SleepNoStatsor can you recommend a good approach to solve the problem?
Edited by yoyocyhsieh - May 5, 2020 22:53:02
User Avatar
Member
1 posts
Joined: July 2018
Offline
Hi. I just created an issue [github.com] on Github related to your message.
One CPU core is loaded on 100% with Houdini Engine enabled because of
FPlatformProcess::Sleep( 0.0f );

I hope our issues will be fixed
User Avatar
Staff
534 posts
Joined: Sept. 2016
Offline
Thanks for bringing that up.
I had fixed the sleep issue in v2 already, but will be backporting that to v1 today.
  • Quick Links