Any way to immediately draw multiple rects/circles in pygame?
<p>Is there any way to draw a lot of circles/rectangles in pygame? I want to draw some objects every frame and I basically have all positions/sizes here ready in a numpy array.</p>

<p>Do I really have to run through a slow python <code>for</code>-loop? Doesn't pygame have any optimizations? </p>

<p>Yeah, you do. It shouldn't be too much of a speed issue though: in a previous project I did, drawing up to 400 circles on the screen, every frame, at 60 frames per second, had virtually no lag.</p>

python pygame