Skip to content

Commit

Permalink
Merge pull request #172 from alexandrefch/fix/lidar_lag_spikes
Browse files Browse the repository at this point in the history
Fix Lidar lag spike from RaycastLiDARSensor.cs
  • Loading branch information
Autumn60 authored Sep 28, 2024
2 parents b1a5050 + 405c9f3 commit d0c64ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected override void UpdateSensor()

JobHandle updateRaycastCommandsJobHandle = _updateRaycastCommandsJob.Schedule(pointsNum, 1);
JobHandle updateGaussianNoisesJobHandle = _updateGaussianNoisesJob.Schedule(pointsNum, 1, updateRaycastCommandsJobHandle);
JobHandle raycastJobHandle = RaycastCommand.ScheduleBatch(_raycastCommands, _raycastHits, pointsNum, updateGaussianNoisesJobHandle);
JobHandle raycastJobHandle = RaycastCommand.ScheduleBatch(_raycastCommands, _raycastHits, 256, updateGaussianNoisesJobHandle);
_jobHandle = _raycastHitsToPointsJob.Schedule(pointsNum, 1, raycastJobHandle);

JobHandle.ScheduleBatchedJobs();
Expand Down

0 comments on commit d0c64ae

Please sign in to comment.