Archived

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

Sir Valeq

id3dxfont->preload*()

Recommended Posts

Sir Valeq    122
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
xyzzy00    307
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