Sign in to follow this  
murdock

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this