You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The memory usage only increased by 25MB, which is basically normal. But when switching to dynamically drawing 80000 points, the memory usage will increase by more than 1000 MB, for example:
I've just tried your code and looked at the VmSize: line of the /proc/<PID>/status and this is what I saw:
no plots : 95432 kB (imgui demo idling)
1st plot: 119880 kB (showing window with your plotting code no. #1)
2nd plot: 120064 kB (showing window with your plotting code no. #2)
For the second case the allocated memory gradually increases as more points are plotted, but does not go significantly above the amount of memory allocated in the first case. After >30 iterations of the plot loop the maximum allocated memory did not change a bit.
I also ran the same code under valgrind --tool=massif ./prog and visualized it. This is what I got:
1st case:
2nd case:
The usage looks pretty much comparable to me (there was only a single loop of the plotting performed in the second case.)
I'm not sure if this is a known issue, when I use ImPlot:: PlotLine to plot 80000 static points and display them all, for example:
The memory usage only increased by 25MB, which is basically normal. But when switching to dynamically drawing 80000 points, the memory usage will increase by more than 1000 MB, for example:
The text was updated successfully, but these errors were encountered: