Jump to content
  • Advertisement

Archived

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

b00ny

Texture Sizes

This topic is 6209 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 I''ve been trying to optimise my 3d engine. A particular scene renders approx 200 objects, each having the same texture. I''ve been playing around with the texture sizes and have found the following: If the texture is 64x64x256 I get 60 fps (my minimum acceptable level) If the texture is 128x128x256 I get 54 fps (not good) If teh texture is 256x256x256 I get 27 fps (terrible) This is on a PIII 500 with a Matrox G400 card. The positioning of the objects also seems to have a BIG impact. If I position each cube so it''s directly behind the previous one, I can render a 1000 of them at 128x128x256 and still maintain 60 fps. Position just 200 cubes so that they are partially occluded by others, and the fps drops. Doesn''t seem right to me. Please tell me if this is as expected, or am I doing something wrong somewhere? Gfx card issue ? Thanks in advance, Boon.

Share this post


Link to post
Share on other sites
Advertisement
This sounds right...

I don''t know much about the matrox card, but positioning each cube behind one may mean that the other cubes never get textured because they''re occluded, so why bother.

Try this - either turn off vsync or redo your timing so that it doesn''t include the time to actually present. Render one cube. Now render several others behind the first cube. Is your frame rate the same (or very close)? If so, then the above point is correct.

Also, could 32bit textures be better? I know it sounds strange, but sometimes it can be costly to map 8bit textures to 32bit devices, etc... Depends on the hardware...

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!