Jump to content
  • Advertisement

Archived

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

alnite

which one is faster

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

blitting 100 objects whose dimension is 40x40 each (and there are ifs that selects which objects to draw), or blitting one large surface whose dimension is 400x400? [edited by - alnite on April 12, 2004 3:36:30 AM]

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
one blit

Share this post


Link to post
Share on other sites
Yea, the one huge blit will be much faster. The same goes for vertices - one call to drawprimitive() with 1000 verts is much, much faster than ten calls to drawprimitive() with 100 verts each.


Dustin Franklin
Mircrosoft DirectX MVP

Share this post


Link to post
Share on other sites
How about a slightly different comparison... 1 surface with 1600 vertecies arranged in textured "tiles", or 400 D3D Sprites?

Share this post


Link to post
Share on other sites
quote:
Original post by BlueMonk
How about a slightly different comparison... 1 surface with 1600 vertecies arranged in textured "tiles", or 400 D3D Sprites?
Well...that I have no idea because I am not familiar with Direct3D. I forgot mentioning that this is DirectDraw, and blitting actually is just copying pixels. Both conditions have the same amount of pixels but they do it in different ways, and that's what I concern. A couple of extra if's I don't think would affect that much, but I am still curious which one is faster and by how much it's faster.

[edited by - alnite on April 12, 2004 5:32:35 PM]

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.

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!