Tuesday, November 28, 2023
HomeVisual EffectsGPU_SIMULATION and array command - Actual Time VFX

GPU_SIMULATION and array command – Actual Time VFX


Hello all! why is that this code not working? On the similar time, for those who take away “#if GPU_SIMULATION”, then the whole lot works. The emitter runs on the GPU, that’s, sim goal = GPUCompute Sim is ready within the property. Or is working with arrays in niagara accessible solely on the CPU?


  1. You can not run for loop in both System or Emitter Spawn/Replace teams however Particle teams solely, no less than not in Customized HLSL.
  2. AFAIC, Emitter (System as properly) Spawn and Replace teams are at all times working on the CPU aspect even when the emitter is ready to GPUCompute Sim. #if GPU_SIMULATION is particularly for Particle teams solely.

Within the newest UE 5, Niagara script contains the brand new array parameter maps together with “for” loop node which doesn’t report error when utilized in System/Emitter teams, so you could give it a shot. I don’t have time to attempt it correctly but, although.

Thanks! By experiment, I came upon that the loop in hlsl within the emitter replace teams nonetheless works, however solely as much as 127 iterations, for those who set extra, the engine crashes

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments