I simulated ~10k tracks using Heed+ and drift using AvalancheMC, but the job was killed on server because of insufficient memory.
Then I tried to run the DriftTube example on my local PC to monitor memory usage, I found it may have memory leak:
I tried 3 track (original number written in the code) it cost ~180Mb memory,
then I tried 1k track, it cost ~480Mb and was linearly increasing when it’s running.
So if I try like 100k I believe my PC will be not able to afford the memory requirement…
(I disabled plotting when simulate large number of tracks)
Maybe new track caused memory leak or I misunderstood something?
Thanks for reporting this! Unfortunately I’m not able to reproduce it. Are you 100% sure you disabled plotting? If you don’t (and if you don’t clear the plot once in a while), ViewDrift will keep accumulating drift lines and the memory consumption will indeed grow with every track that you simulate.