sideeffects / HoudiniEngineForUnreal

Houdini Engine Plugin for Unreal Engine.
http://www.sidefx.com/unreal
Other
1.3k stars 368 forks source link

FHoudiniInputTranslator::UploadInputData is slow since Version 2.0.19 - Houdini 19.5.752 #275

Open helmoznino-ea opened 7 months ago

helmoznino-ea commented 7 months ago

When we switch to UnrealEditor 5.2, we've migrate our plugin to Version 2.0.19 - Houdini 19.5.752 which introduce support to Unreal Data Layer. However, we have seen humongous time increase in our workflow.

We used superluminal to gather extra info and it seems the slow down is caused by a function named MakeCache. The amount of data that is uploaded to HARS is considerable and now we have a 50% exe time increase since our migration.

Screenshot 2023-11-23 143828 Screenshot 2023-11-23 143855

To resolve the issue, we have disable the HOUDINI_ENABLE_DATA_LAYERS compilation flag (and we had to fix compile errors). I didn't spend a lot of time looking at the code, but based on my observation:

  1. MakeCache is called in odd situation were the return variable is not used
  2. The cache is thrashed for each actor displayed in the callstack.