lambda icon indicating copy to clipboard operation
lambda copied to clipboard

Optimize radar rendering

Open rfresh2 opened this issue 2 years ago • 3 comments

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 avatar Aug 11 '23 09:08 rfresh2

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

rfresh2 avatar Aug 11 '23 20:08 rfresh2

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

Luna5ama avatar Aug 11 '23 20:08 Luna5ama

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

rfresh2 avatar Aug 11 '23 22:08 rfresh2