Version: (using Devel)
Installed from: Compiled sources
The long text line when word wrapped in kate/kwrite makes everything (like cursor movement, text insertion, etc.) slow. The callgrind profile (attached) suggests that it's because line repaining takes most of the CPU time.
To reproduce, open any file with a long line which would wrap onto 30-40 "view" lines.
What's interesting is that when you move cursor towards the end of the long line, repainting becomes a little bit faster.
Created attachment 27425 [details]
The test file where cursor movement is slow because of repainting
Created attachment 27426 [details]
Callgrind profile taken during up/down cursor movements in kwrite
I think kate devs already dealt with the "problem" here:
I'm not sure and haven't looked at your data, hence not closing it as duplicate yet.
Yeah, looks like the same problem, but slowdown is tangible even with 5-10 wrapped lines. I don't know if that can be improved though.
I'm aware of these issues and plan to look into them; we may need to switch to having multiple QTextLayouts per dynamically wrapped line :(
As it turns out, to really see the problem, you should be running a NVidia card and using the proprietary driver. On a system with an ATI card (also proprietary driver) you can see the problem, but kate and kwrite are perfectly usable. With nvidia, you can't work with wrapped lines at all.
I allso have that problem. What happenend since kde3. On kde3 my nvidia card worked perfectly.
Is it possible to somehow make QT4 behave (from a hardware perspective) like QT3 ?
I've just upgraded to Qt 4.5 RC1 (same system with ATI proprietary drivers). The problem is almost solved by the new Qt.
To see the slowdown, you now need to have a long line with more than 15000 characters.
When launched as "kwrite --graphicssystem raster", slowdown disappears completely and kwrite from KDE4 behaves just like kwrite from KDE3.
This is great news. Is 4.4.3 and 4.5 rc1 binary compatible ?
And therefor there will be no patches to katepart, painting text is expensive, there is not that much room for kate to do it better, still the line needs to be redrawn.
still. kde4 kate is a lot slower than the kde3 version.
I realize this issue is very old, but why was this issue resolved as invalid? The last comments do not seem to support "invalid", it seems to me.
I found this issue searching the bug tracker because I am running into painful slowdowns with long lines. I assume it is the same problem, but am unsure if I should comment on this issue or open a new.
I think this is still valid although it might be entirely QT reletated.