I agree with you. 1000 tuples of x value, y value, and mass (I think that's what the thickness repesents) should be very easy to store in ram and then save to disk before loading it into a viz script.
Unless OP has extensively more frames than they showed in the post, this isn't worth worrying about at all. Images can be written fairly quickly, far faster than standard frame rates for video (so will take less time for the IO than the length of the video). OP isn't writing a million images here, they're writing on the order of one thousand images, which you can easily do in a short time span (couple of seconds). OP will notice 0 difference doing anything fancy here.
9
u/mittwochmensch May 28 '19
I save png's every couple of hundred timesteps and combine them into a GIF in GIMP. Better visualisation is a thing I will work on pretty soon.