Jump to content
  • Advertisement
Sign in to follow this  
AlanWu

batch draw!

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

We know put all the vertices together and call drawXXX() can draw all the triangles.
But if each triangles have different ,what should i do?DX9 doesn't has texture array.
And if we use pixel shader ,i know use pixel shader can sample texture.But pixel shader 2.0 only has 16 sampler.
I think it is use for multiple texture.But how to pass texture into pixel shader?Could anybody give me a example or a idea?
Thank you!

Share this post


Link to post
Share on other sites
Advertisement
For P.S. 2 we're pretty much screwed.
Running out of resources is really easy (especially instruction count) and with no real branching the only thing we can do is to sample all textures... which is still not going to work on some old PS2 hardware.
My advice, from experience: give up. At least PS2_a or better, PS3.

In particular, PS3 hardware has a nice set of orthogonal features, especially in terms of HDR rendering.

I suggest to give up. Yes, that's it. That's a performance optimization not worth pursuing. Unless you have real data obtained by profiling tools.

Share this post


Link to post
Share on other sites

This topic is 2050 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.

Guest
This topic is now closed to further replies.
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!