Jump to content
  • Advertisement

Archived

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

JoeZ

Why DirectX can fill a triangle so fast?

This topic is 5927 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
Because the filling is done by a completely different microprosessor while your app goes on doing ''app'' things

Over simplified, when you call DrawPrimitive, DX downloads some data to the video card and then returns. While your app is executing the next bunch of code the microprocessor on the card is doing all the work.

_____________________________________________
Come join us on IRC in #directxdev @ irc.afternet.org

Share this post


Link to post
Share on other sites
quote:
Original post by CrazedGenius
Because lots and lots of really smart people built it specifically for that purpose.


I like this answer better


_____________________________________________
Come join us on IRC in #directxdev @ irc.afternet.org

Share this post


Link to post
Share on other sites
Algorithms.
Also, how does it work so fast when it is in software mode?
Algoirthms.
Better algorithms win out over faster hardware any day.
Put them together, and you get a winning combination.
Now go out there and win one for the team!

Share this post


Link to post
Share on other sites
Hmm... Speed can be relative according to the viewer... And, it''s relative to what you think is fast.
Light on a vacuum goes at aprox. 300.000km/s (correct me if I''m wrong), and DirectX doesn''t even get close to that speed when filling polygons... So, we can say filling 22 millon polygons a second is fast, but.. Is it really fast? What is fast? If a GF2 can fill 22mil tris/s and a GF4 can fill three times more, is the GF4 uber-fast or is the GF2 slow?

I think you will never get the real answer since there is another question to be answered before. What is fast?

Share this post


Link to post
Share on other sites
Oh come on Matux
Don''t play with words.

I can say your speed is 0 even you are running at 100km/h.
Why? because your speed is 0 relative to your own body.

I asked the triangle filling speed because I am curious how the tool(directx) works.

I really want to see the source code of this tool, and how it interact with the hardware.

speed speed speed
fast fast fast

Share this post


Link to post
Share on other sites
quote:
Original post by JoeZ
I really want to see the source code of this tool, and how it interact with the hardware.



No you don''t. Most of the speed really comes from the hardware. You are essentially asking to see the source code of the firmware and the driver. I''m guessing that you would learn absolutely nothing from that.

Share this post


Link to post
Share on other sites
quote:
Original post by JoeZ
Oh come on Matux
Don''t play with words.

I can say your speed is 0 even you are running at 100km/h.
Why? because your speed is 0 relative to your own body.

I asked the triangle filling speed because I am curious how the tool(directx) works.

I really want to see the source code of this tool, and how it interact with the hardware.

speed speed speed
fast fast fast


Hehe, it was a good answer . Your question is still wrong though, AFAIK, DirectX just tells the Hardware''s driver "Fill that polygon!" then the driver uses the video card to fill it.

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!