Jump to content
  • Advertisement
Awoken

How much more taxing are UV's?

Recommended Posts

If I was to switch over to UV mapping and have each face mapped how much more demanding is that on system resources?

Right now on screen I'll have upwards of a million polygons and I use vertex colors.

Is there a ratio?  maybe for the amount of time it takes to the shader to render 10 vertex color polygons the shader can color 3 polygons referencing a UV map?

Share this post


Link to post
Share on other sites
Advertisement

 Well I don't have exact # for you, but I switched a project from using dense vertex coloring to using texturing(implicit UV's though).

The texture based version was at least 25% slower, but much more detailed since it had unique color per pixel.

Share this post


Link to post
Share on other sites

A million polys, is maybe 400k verts. Colors are usually either 4 or 12 bytes per vert (1.5MB or 4.5MB per frame) , and uvs are usually 8 bytes per vert (3MB per frame). If you use a single 1024px texture for everything, and all of it is used including mips, and the texture cache works perfectly, then that's around another 5MB per frame, for a total of about 8MB per frame... 

A NVidia GPU from 10 years ago can do about 100GB/s, which at 60HZ is a budget of around 1.6GB of scene data per frame. You're about 200x under that budget :)

Another way to look at it is if that GPU can do 100GB/s, and you have 8MB of scene data, you'll spend at least 78 microseconds per frame on memory transfers.... That's pretty good. 

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!