I’m implementing a real-time visualisation of a simulation that consists of drawing up to tens of thousands of objects on the screen where objects are represented by simple geometric shapes (or combinations thereof). Position, number and state of each object can potentially change in each frame.
So far I have an implementation in SDL2, but it would be nice to be able to use Makie graphs to display some statistics as well. What I am looking for is the most efficient way to implement this with quality being of secondary concern. Potential solutions I have found so far are:
- rendering into a buffer and then using
image
to display it (it would be easy to port my SDL2 code for this) - using
poly
directly
Which of these is going to be more efficient and are there any options I have missed?
ETA: all of this is 2D