Jump to content
  • Advertisement
Sign in to follow this  
murdock

Best Practice Requested: Drawing multiple Sprites in D3D *resolved*

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

What is the best practice for drawing sprites in Direct3D? BeginScene(); Begin(); Draw first sprite. End(); Begin(); Draw second sprite. End(); EndScene(); OR BeginScene(); Begin(); Draw first sprite. Draw second sprite. End(); EndScene(); [Edited by - murdock on June 1, 2007 10:46:34 AM]

Share this post


Link to post
Share on other sites
Advertisement

BeginScene();

Begin();

Draw first sprite.

Draw second sprite.

End();

EndScene();

You can see it yourself making two examples:

probe 1:
BeginScene();
for(int l = 0;l< 10000;l++)
{
Begin();
Draw first sprite.
End();
}
EndScene();

probe 2:


BeginScene();
Begin();
for(int l = 0;l< 10000;l++)
{
Draw sprite.
}
End();
EndScene();

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!