• Advertisement

Archived

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

This topic is 5703 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
I may not be optimized fully but it''s probably fast enough for most purposes.

Share this post


Link to post
Share on other sites
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

  • Advertisement