Skip to content

Remove Patatoides for further memory optimisation #53

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

Merged
merged 2 commits into from
Feb 22, 2025

Conversation

Epse
Copy link
Owner

@Epse Epse commented Feb 22, 2025

The Patatoides map previously held bitmaps of previous aircraft primary radar returns as to draw the afterglow.
This takes a lot of memory. A previous MR tried to optimise this by cleaning up entries for aircraft that are no longer necessary,
but we can also just not store this.

The tradeoffs are explained in the commit messages, but it overall reduces memory useage just by vSMR in a test scenario based on the ELLX WorldFlight event over several hours from 2GiB to less than 200MiB. Woo

Epse added 2 commits February 21, 2025 13:17
Because otherwise we don't draw the current position lol
Indirectly fixes #50

Storing the patatoides object takes a lot of memory,
and is slightly unnecessary.
We can fetch the previous positions from EuroScope
and just render aircraft on those.

Downside to this approach is that afterglows keep jiggling due to the
randomness.
Thus, we disable randomness on afterglows.
We could do a workaround where we save the random seed for afterglows
to keep some form of randomness,
but this seems unnecessary.
@Epse Epse merged commit 9111369 into master Feb 22, 2025
1 check passed
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.

1 participant