Jump to content
  • Advertisement


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

Maverick the divider


This topic is 5827 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

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,

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.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!