Observe UE4 CPU usage in Task Manager. It should be ~0%
Enable the Houdini Engine plugin. Restart UE4
Open the same project, minimize UE4
Observe UE4 CPU usage in Task Manager
Result: one of the CPU cores is fully loaded
Expectation: CPU usage by UE4 is ~0% in minimized state
I suppose it is due to zero sleep time in function FHoudiniEngineScheduler::ProcessQueuedTasks():
if ( FPlatformProcess::SupportsMultithreading() ) { // We want to yield for a bit. FPlatformProcess::Sleep( 0.0f ); }
The issue is eliminated if sleep interval >0:
if ( FPlatformProcess::SupportsMultithreading() ) { // We want to yield for a bit. FPlatformProcess::Sleep( 0.01f ); }
Steps to reproduce:
Result: one of the CPU cores is fully loaded Expectation: CPU usage by UE4 is ~0% in minimized state
I suppose it is due to zero sleep time in function FHoudiniEngineScheduler::ProcessQueuedTasks():
if ( FPlatformProcess::SupportsMultithreading() ) { // We want to yield for a bit. FPlatformProcess::Sleep( 0.0f ); }
The issue is eliminated if sleep interval >0:if ( FPlatformProcess::SupportsMultithreading() ) { // We want to yield for a bit. FPlatformProcess::Sleep( 0.01f ); }