Jump to content
Site Stability Read more... ×
  • Advertisement
Sign in to follow this  

FTGL, extremely slow rendering.

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

Hi, me again.
Well been away for awhile, working on things. But one of the things i sorta left for awhile was the ability to render txt, looking around and finding the ftgl library.
So my problem isn't actually rendering the text with a .ttf, but that for some reason the rendering is extremely slow.
Here's an example of what i mean: (using FRAPS as the guide for fps)
With font rendering:


As you can see, quite the difference, just wondering on what might be causing such a drop? Surely font-rendering isn't that expensive?

Currently using [font="Verdana, Arial, Helvetica, sans-serif"][color="#111111"][size=2]FTGLPixmapFont, using the "less expensive" methods i.e FTGLBitmapFont isn't really helping at all. A gain of only a couple of FPS.

Just to show you my main loop :

I am rendering my text inside that loop, as the idea is that the text will rendering certain values which will be updated. Any ideas what i could be doing wrong?

Share this post

Link to post
Share on other sites
I have the same problem,

On my initial research I found ftgl to be the best option, but later down the track realize that it is dead slow.

My gaming machine i7 with a GTX 285 gets only about 200fps with a full screen of text (and nothing else) with display lists turned on.

Another strange thing happens on my laptop, while loading fonts for the first time the load thread locks up for 6 seconds slowly consuming upto 350mb of ram (which it releases after its loaded)

Likewise using the blurry buffered font for speed only improves performance marginally.

I am about to go through the source and see why it is so slow to render, even with buffered fonts.

I will let you know what I find.

If all else fails using FreeType2 yourself to render into display lists isnt too difficult

This is old but should still be effective:

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!