[Konsole-devel] [konsole] [Bug 354082] high cpu usage for screen redrawing with qt5.5
Viktor Kuzmin via KDE Bugzilla
bugzilla_noreply at kde.org
Fri Jul 8 10:25:14 UTC 2016
https://bugs.kde.org/show_bug.cgi?id=354082
--- Comment #15 from Viktor Kuzmin <kvaster at gmail.com> ---
It seems that konsole renders lot's of 'spaces' and glyph height is zero in
that case. I've created small hacky patch and performance is OK now. Also I've
not noticed any artifacts. Sorry if I'm mistaken, this is my first time I'm in
touch with qt in any way.
diff -r 6c0e7b4f5bc5 src/gui/text/qfontengine_ft.cpp
— a/src/gui/text/qfontengine_ft.cpp Fri Jul 08 13:10:54 2016 +0300
+++ b/src/gui/text/qfontengine_ft.cpp Fri Jul 08 13:13:55 2016 +0300
@@ -1756,6 +1756,9 @@
Glyph *glyph = loadGlyphFor(glyphIndex, subPixelPosition, neededFormat, t);
+ if (glyph != 0 && glyph->height == 0)
+ return ¤tlyLockedAlphaMap;
+
if (offset != 0 && glyph != 0)
*offset = QPoint(glyph->x, glyph>y);
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list