Jump to content
  • Advertisement
Sign in to follow this  

Array pointers performance.

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

Hi there, Let's say I have a vertex and fragment program that make use only of POSITION and TEXCOORD0 array. If I would enable all my tex coord arrays and pass some data to the streams - would that affect performance of rendering? I made some tests and did notice only something like 0,8 fps hit (from 135fps to 135.8fps). I also tried adding fake TEXCOORDx streams in shaders but it didn't affect performance (maybe because of cg compiler optimizations). So it looks like the only cost (minimal) is due to enabling/disabling coord pointers and setting streams data, and gpu is performing calculations even when pointers are disabled (I think so because I don't get any fps hit). Is this behaviour typical only to my gpu (gf6600)? Wouldn't I get a noticable performance hit on older gpu's?

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!