Skip to main content
gamedev.net
🔒 Locked

DX 9 Texture Loading

Started by dragon9 1 reply 650+ views
Original Post
dragon9
dragon9
In my object viewer, when I rotate the camera and an object with a lot of texture data comes into view for the first time, there is a large frame rate hit. After the first viewing the frame rate hit is gone. I am assuming that the first time the object is viewed, Direct3D takes a moment to move the texture data into video memory, and that this is what causes the frame rate hit. Assuming I am right, how do I force DX to push the texture data into video memory ahead of time? Also, can anyone recomend a tutorial on advanced texture memory managment? Thanks...
xyzzy00
xyzzy00
pTexture->PreLoad();

xyzzy
dragon9
dragon9
Duh. Thanks

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.