Is there a faster way to draw shapes?
My next game is going to make heavy use of shapes (especially polygons), and I would like for some of those shapes to change in real-time (mostly by moving the vertices). I've noticed that calling
drawPolygon(vertices, fillColor, lineStyle, drawStyle)every frame is a bit expensive, so I was wondering if there is by any chance a more efficient way of doing this? I'm only concerned with desktop targets.