Improving speed with Ray-cast in UE4
问题 I am currently developing a lidar sensor model using Ray-cast. A 16 channel sensor rotating at 10Hz should produce 300000 points. I can use 300000 Ray-cast operations to get this result but the performance is very weak (frame rate falls to 8 when motion is given to the sensor). Is there any other better way or algorithms I can use? Requirement : To scan 360 degrees: Horizontal -25 to 15 degrees: Vertical 300000 scans Here is what I'm using: for (auto i = 0u; i < 3125; ++i){ for (auto Channel