Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Paradoxish
Dec 19, 2003

Will you stop going crazy in there?

Madox posted:

That's all my own UI library and texture. It's still inefficient in dealing with text, but I think that's mostly DirectX's fault :)

If you're using ID3DXFont it's going to be slow and there's just no way around it. I spent a while working on my own XML/Lua scriptable UI system for a game project that I'm working on and after a while I came to the conclusion that ID3DXFont was just far too slow to be usable for anything text-heavy. I ended up writing my own simple bitmap font renderer that uses FreeType to generate glyphs and the improvement is absolutely ridiculous. I got something like a 20x decrease in frametime when displaying large amounts of text.

I'd post some screenshots of the project it's a part of, but it's fairly unremarkable looking at the moment since I'm saving most of the display-related code for later. :(

Paradoxish fucked around with this message at 01:14 on May 16, 2008

Adbot
ADBOT LOVES YOU

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply