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

Optimize radar rendering #581

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rfresh2
Copy link
Member

@rfresh2 rfresh2 commented Aug 11, 2023

Profiling indicates ~50% reduced CPU time and memory allocations

Caches expensive operations where we iterate over all chunks in a radius and removes unnecessary vector object allocations.

Profiling indicates ~50% reduced CPU time and memory allocations

Caches expensive operations where we iterate over all chunks in a radius and removes unnecessary vector object allocations.
@rfresh2
Copy link
Member Author

rfresh2 commented Aug 11, 2023

for the record, I still recommend using https://github.com/rfresh2/XaeroPlus instead of lambda radar. but some people are stubborn lol

@Luna5ama
Copy link
Contributor

If you want optimization, just throw away the objects list and store raw float. It trolls the GC.

@rfresh2
Copy link
Member Author

rfresh2 commented Aug 11, 2023

If you want optimization, just throw away the objects list and store raw float. It trolls the GC.

for shore, also the circle rendering could use similar optimizations too

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.

2 participants