Jump to content
  • Advertisement


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


Direct3D Texture Management

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

Hey guys, I was working on my engine again today and I noticed it was going very slowly when I added a single tree to my scene (this is just a 2D sprite) The tree is contained within a 512x512 bitmap. When I size the bitmap down from 512x512 (say to 128x128) it is a ton faster. The problem seems to be that I have too many large textures, but they should all be able to fit into memory at once! I am using D3DPOOL_MANAGED because I NEED to lock my surface and read some information from it (I look for frames in the image so I can grab individual sprites out of it) Is there something I can do to tell D3D to keep that texture in memory even when it''s not in use? The problem is that when I scroll over the tree (this makes a SetTexture call occur) my frame rate goes down from 160 to about 60. Is there something that can be done??? Thanks in advance! Ben

Share this post

Link to post
Share on other sites

The texture manager does a great job (unless you have broken graphics card drivers trying to override it - there are some).

Almost all 3d graphics hardware suffers badly if it has to minify a texture (i.e. the size of the texture used on screen is much smaller than the source texture).

Simon O''''Connor
Creative Asylum Ltd

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!