Jump to content
  • Advertisement

Archived

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

Sir Valeq

id3dxfont->preload*()

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

What do those functions really do? When should I call them? I suppose ther''re useful and increase speed, but I think the SDK doesn''t say much about them. Thx -------------- "We cannot all be masters." - William Shakespeare

Share this post


Link to post
Share on other sites
Advertisement
ID3DXFont stores each glyph it uses in a texture. Each time a new glyph is encountered, it locks the texture and updates it with the new glyph. This lock+copy takes non-zero time, and may cause glitches in framerate. So.. if you know ahead of time the complete set of strings / characters / glyphs you will be using, calling Preload is probably a good idea.

xyzzy

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!