Vector Graphics VS Bitmap

In a recent game that I am developing, I have being testing vector squares/circles against bitmaps.

The result is quite amazing. In general bitmap graphics takes less CPU and less memory when you spawn a million of them.

Could there be something that I am not doing right? Like a “cacheAsBitmap” type of thing on vector display objects that could improve the performance? [import]uid: 6066 topic_id: 7067 reply_id: 307067[/import]

i think vectors are essentially cached as bitmaps, but a new texture for each instance. the same with fonts. (try adding a lot of newText at a large font size and you’ll see your texture memory go right up)

bitmaps on the other hand only use the 1 texture for any number of instance of the bitmap

hopefully more graphics features are coming soon. it would be good to reuse a newRect etc
[import]uid: 6645 topic_id: 7067 reply_id: 24770[/import]

Yeh. Bitmap has given a great performance boost. And Circles are really a polygon with a lots of edges. No wonder circles are slower!

Yeh in this game, I have been bitmapping PNGify every letter as well since I didn’t know how to include custom fonts before. Now, its better for performance, I am leaving it as it is. Haha. [import]uid: 6066 topic_id: 7067 reply_id: 25003[/import]