I’ve added new option to label settings dialog. Now user can choose another rendering for text. I’ve taken code from trunk of Qt and overridden renderText for GLWidget. There are some problems:
- it’s ~2 times slowlier than TextRenderer
But in Qt 4.7 there was introduced new class QStaticString for rendering of strings, and performance hints QStaticText::AggressiveCaching
http://doc.trolltech.com/4.7-snapshot/qstatictext.html#details
http://doc.trolltech.com/4.7-snapshot/qstatictext.html#PerformanceHint-enum
Probably there is a possibility to improve performance in future
- outline isn’t so nice as in TextRenderer
- all code is inside GLWidget: I’ve preserved original Qt code structure
Advantages:
- Supports any font of any size
- Supports unicode characters (see attachment)
- Doesn’t miss charaters (I really hate this issue!)
- Font size is slightly scaled with changing of zoom
Default is old faithful Textenderer
Regards,
Konstantin
- Supports unicode characters (see attachment)
- Doesn’t miss charaters (I really hate this issue!)
- Font size is slightly scaled with changing of zoom
I think all of these are more important than rendering speed right now. I’m sure with a bit of work, we can improve performance, but correctness is #1.
-Geoff
Forgotten about attachment
19.03.10, 08:23, “Geoffrey Hutchison” geoff.hutchison@gmail.com:
- Supports unicode characters (see attachment)
- Doesn’t miss charaters (I really hate this issue!)
- Font size is slightly scaled with changing of zoom
I think all of these are more important than rendering speed right now. I’m sure with a bit of work, we can improve performance, but correctness is #1.
-Geoff
–
Regards,
Konstantin
19.03.10, 08:23, “Geoffrey Hutchison” geoff.hutchison@gmail.com:
- Supports unicode characters (see attachment)
- Doesn’t miss charaters (I really hate this issue!)
- Font size is slightly scaled with changing of zoom
I think all of these are more important than rendering speed right now. I’m sure with a bit of work, we can improve performance, but correctness is #1.
-Geoff
Yes, performance regression I’ve described occurs on fast rotations with disabled quick rendewring and maximum quality, so it doesn’t really matter. As for me, main drawback is outline style (but, of course, it’s much better to see ‘Co’ instead of ‘o’ with cute shadow
–
Regards,
Konstantin
Just wanted to let you know that I 100% support your idea of relying
on Qt for text rendering: I’m not going to complain if you drop my
code in favor of it
Benoit
2010/3/19 Konstantin Tokarev annulen@yandex.ru:
19.03.10, 08:23, “Geoffrey Hutchison” geoff.hutchison@gmail.com:
- Supports unicode characters (see attachment)
- Doesn’t miss charaters (I really hate this issue!)
- Font size is slightly scaled with changing of zoom
I think all of these are more important than rendering speed right now. I’m sure with a bit of work, we can improve performance, but correctness is #1.
-Geoff
Yes, performance regression I’ve described occurs on fast rotations with disabled quick rendewring and maximum quality, so it doesn’t really matter. As for me, main drawback is outline style (but, of course, it’s much better to see ‘Co’ instead of ‘o’ with cute shadow
–
Regards,
Konstantin
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
avogadro-devel List Signup and Options