PDA

View Full Version : Is FTGL really that slow ?


quarus
2006.05.27, 05:32 AM
Hi everyone !

I'm currently developing a small OpenGL/SDL Game, which uses FTGL for Font Rendering. It works fine so far, however there's a problem: Whenever i draw a few FTGL Texture Fonts, the framerate drops from >100 FPS down to 10 FPS! It's not as bad, when i use FTGL Bitmap Fonts, but the Framerate stills gets pulled down to 50 FPS. So i was wondering: Is FTGL really that slow ? Or is my craptastic iBook G4 933 MHZ with an ATI Mobility Radeon 9200 Card (32 MB VRAM) to blame ?

Thanks for any hints..

vbuser1338
2006.05.27, 10:34 AM
I've never had that problem, but changing the face size of a font each frame really cut down the framerate so I had to change my design. Are you changing the face size each frame?

quarus
2006.05.27, 12:32 PM
Are you changing the face size each frame?

I did ! Getting rid of the "FaceSize" calls and using glScale instead resulted in a Framerate way above 100. :)
Thank you very much for your help !!!

vbuser1338
2006.05.27, 01:33 PM
Glad that helped. And you gave me an idea about using different size fonts. The way I was getting around this problem was making a manager to load a font with each face size which is a waste of memory:( , but now I can just scale the fonts:D .