Results 1 to 4 of 4

Thread: renderText is too slow when rotating

  1. #1
    Join Date
    Aug 2008
    Posts
    60
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default renderText is too slow when rotating

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Third rock from the sun
    Posts
    106
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: renderText is too slow when rotating

    I tried to use renderText as well with the same results. Try looking into FontGL(http://www.mat.ucsb.edu/~e.newman/so...hp?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.
    Every little child knows
    if you cant see dreams
    your eyes are blind

    Moxy Fruvous

  3. #3
    Join Date
    Aug 2008
    Posts
    60
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: renderText is too slow when rotating

    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.

  4. #4
    Join Date
    Aug 2008
    Posts
    60
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: renderText is too slow when rotating

    Hi Rayven,
    have you tried to optimized the renderText() method in Qt?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.