PDA

View Full Version : renderText is too slow when rotating



h123
7th November 2008, 20:19
I am using renderText to draw text on QGLWidgt.
It seems that it's tooo slow in rendering the text on the glwidget, as it uses the texture maps to render text.
Do you have any idea about, how we can make it as faster as bitmapped font rendering?
I am using Qt-4.4.0.

Rayven
7th November 2008, 22:51
I tried to use renderText as well with the same results. Try looking into FontGL(http://www.mat.ucsb.edu/~e.newman/software.php?name=FontGL) instead of the built in Qt. It uses the TrueType font library and FreeType (included with the Qt builds) to quickly render 2d fonts in OpenGL.

h123
8th November 2008, 03:29
Hi Rayven,
Thanks for reply.

BTW: how come the FontGL will be faster, as it also uses the texture maps for fonts.

Basically, I don't want to increase the third party dependency, so can you suggest some improvement we can make in renderText() code in qt or the opengl steps we should follow that will improve the performance.

h123
10th November 2008, 17:01
Hi Rayven,
have you tried to optimized the renderText() method in Qt?