Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lidar performance #18

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Lidar performance #18

wants to merge 4 commits into from

Conversation

cconti-rr
Copy link
Contributor

implementation of Lidar3d with sampling spread over time to load balance
while it does improve performance and make everything smoother, it is probably not sufficient for multiple 3d lidars in the scene.

not drawing lidar points does help as well
also need to test in production/packaged mode

The 'alpha' parts of the code are made for visualization, but they don't currently work as intended.
The intent was to have lidar hits fade away with time so that it's clearer where it is currently being scanned

Comment on lines +235 to +236
// this can be maybe parallelized? a first trial with ParallelFor crashes - need to verify that LineBatchComponent is thread-safe
for (int i=0; i<RecordedHits.Num(); i++)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably the drawing itself must run in game thread, if in which case we could put LineBatcher->DrawPoint() to an async?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't really investigated and is possibly low priority because in production mode we don't need to draw anyway
the current multipass approach can also be moved to async btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants