Which is faster: Ellipse2D or drawing image file?

Will my code run faster if it draws a simple circular .jpg or .gif many times over on the screen, or if it uses Ellipse2D.Float many times over to achieve the same goal?Dave
[187 byte] By [_Komodo_a] at [2007-10-2 16:29:42]
# 1

why not test it?

anyway, depending on the size of the Ellipse2D and the graphics options you have turned on (e.g. antialiasing), Ellipse2D will most likely be slower because java has to calculate the points for drawing the circle for every call.

drawing an image instead (especially a hardware accelerated image) will most likely be faster because all java has to do is plot a rectangular region of pixels onto the screen

Woogleya at 2007-7-13 17:31:39 > top of Java-index,Other Topics,Java Game Development...
# 2
Ok, cheers Woogley
_Komodo_a at 2007-7-13 17:31:39 > top of Java-index,Other Topics,Java Game Development...