Archived

This topic is now archived and is closed to further replies.

Maverick the divider

D3DXSprite

Recommended Posts

D3DXSprite is designed to be simple yet flexible, for that you compromise speed.

Basically, all it does is draw a quad with the texture you provide. Rolling your own (if needed) is pretty easy.

If you need higher performance, the biggest win is batching your calls so you are drawing a few hundred triangles rather than D3DXSprite''s 2 per call.


Stay Casual,

Ken
Drunken Hyena

Share this post


Link to post
Share on other sites
Oh, thanks for the info.
I just tested how fast it is to render 1000 quads (2 unindexed triangled) using 1 big vertex buffer and 1000 quads (2 trianglestrip) calling drawprimitive 1000 times.
Believe it or not - the results are almost identical!
I get 117 fps with 1 big vb, and 114 with 1000 times calling draw primitive.
uuugh...

Share this post


Link to post
Share on other sites