[Bug 780056] New: emacs-gtk has a massive performance regression with keyboard input (esp. backspace)
https://bugzilla.novell.com/show_bug.cgi?id=780056 https://bugzilla.novell.com/show_bug.cgi?id=780056#c0 Summary: emacs-gtk has a massive performance regression with keyboard input (esp. backspace) Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: i686 OS/Version: openSUSE 12.2 Status: NEW Severity: Major Priority: P5 - None Component: X11 Applications AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: Stromeko@NexGo.DE QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20100101 Firefox/15.0 emacs-gtk is noticeably sluggish to recognize keyboard input. This part seems to be Gtk related since other applications based on Gtk are also affected (e.g. Firefox) and that has been happening for quite some time. However, with the update to 12.2 using backspace to delete some text has become a complete nightmare to use, it is almost 5 times slower than the already slow keyboard input. Reproducible: Always Steps to Reproduce: 1. emacs-gtk -Q 2. paste some text into the *scratch* buffer 3. Move around in the text with arrow-left and arrow-right, append some text with autorepeat from the keyboard. Note the speed and compare with Qt or X11 applications (emacs-x11 in particular). 4. Put the cursor at the end of the text and press and hold backspace. Compare with emacs-x11. Actual Results: 1. Cursor movement in Gtk applications (not just emacs) is slower than QT or X11. 2. Backing out the text is almost a factor of five slower than typing new text or moving around with the cursor. Expected Results: 1. Same cursaor speed in all toolkits. 2. Same speed of editing with all toolkits. I had hoped that the glib-2.32.4 update would fix this (since it should include a fix for a signal handling bug that produced very similar symptoms on Cygwin), but it didn't. Either that fix for whatever reason hasn't made it into that update or the codepath taken under openSUSE is different and there's another such problem in glib. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780056 https://bugzilla.novell.com/show_bug.cgi?id=780056#c kk zhang <kkzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkzhang@suse.com AssignedTo|bnc-team-screening@forge.pr |bnc-team-xorg-bugs@forge.pr |ovo.novell.com |ovo.novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780056 https://bugzilla.novell.com/show_bug.cgi?id=780056#c1 Holger Arnold <holgerar@googlemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |holgerar@googlemail.com --- Comment #1 from Holger Arnold <holgerar@googlemail.com> 2012-09-14 08:33:52 UTC --- Achim, which GTK style are you using and what kind of video card / driver do you have? Please test if this also occurs when using a different GTK style (Adwaita, for example). If you are not using Gnome 3, you can do this by creating the file ~/.config/gtk-3.0/settings.ini with the following contents: [Settings] gtk-theme-name = Adwaita Can you test if this problem also occurs on a machine with a different video card? I see the same symptoms when using the oxygen-gtk style (both, GTK2 and GTK3) on a machine with an ATI Mobility FireGL T2 card (RV350 chip) using the radeon driver. I have reported this as KDE Bug 306634, but the KDE devs probably can't do much about it (http://bugs.kde.org/show_bug.cgi?id=306634). My current guess is that the oxygen-style triggers a regression in the X server or the radeon driver. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780056 https://bugzilla.novell.com/show_bug.cgi?id=780056#c2 --- Comment #2 from Achim Gratz <Stromeko@NexGo.DE> 2012-09-14 15:08:35 UTC --- (In reply to comment #1)
Achim, which GTK style are you using and what kind of video card / driver do you have? Please test if this also occurs when using a different GTK style (Adwaita, for example). If you are not using Gnome 3, you can do this by creating the file ~/.config/gtk-3.0/settings.ini with the following contents:
[Settings] gtk-theme-name = Adwaita
I'm not using GNOME at all, but I set the gtk theme system-wide to gtk-oxygen. The default was Adwaita IIRC, but that theme clashed with KDE, giving me strange mouse cursors in Gtk applications and such things. I don't think it has had any effect on performance, but I can change it and try again. DOes one have to restart X for the change to take effect?
Can you test if this problem also occurs on a machine with a different video card?
Yes, but it will take a while.
I see the same symptoms when using the oxygen-gtk style (both, GTK2 and GTK3) on a machine with an ATI Mobility FireGL T2 card (RV350 chip) using the radeon driver.
Well, I also have an RV350 AGP card. I used to have problems with scrolling with this card and had switched off acceleration in xorg for this reason, but with 12.2 and the new drivers I've enabled OpenGL again (switching to XRender doesn't seem to make a difference, at least not for this problem). I'll have to look if the xorg conf has been changed as well and if maybe one can switch around some acceleration settings. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780056 https://bugzilla.novell.com/show_bug.cgi?id=780056#c3 --- Comment #3 from Holger Arnold <holgerar@googlemail.com> 2012-09-14 15:47:08 UTC --- (In reply to comment #2)
The default was Adwaita IIRC, but that theme clashed with KDE, giving me strange mouse cursors in Gtk applications and such things. I don't think it has had any effect on performance, but I can change it and try again. Does one have to restart X for the change to take effect?
Sorry, I did no want to confuse you; Emacs in the openSUSE 12.2 repos seems to be compiled for GTK2. Here you can set the style in the KDE system settings (Application Appearance -> GTK Style and Fonts). Try "Clearlooks". For GTK3 (Emacs >= 24.X configured with --with-x-toolkit=gtk3), you would have to edit the ~/.config/gtk-3.0/settings.ini file and restart the GTK app; create this directory if it does not exist.
Can you test if this problem also occurs on a machine with a different video card?
Yes, but it will take a while.
This would be helpful. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780056 https://bugzilla.novell.com/show_bug.cgi?id=780056#c4 --- Comment #4 from Holger Arnold <holgerar@googlemail.com> 2012-09-14 15:56:07 UTC --- The problem is obviously related to the drawing of the scrollbars; if they are switched off in Emacs, the slowness goes away. Btw., other GTK apps are also affected. It would be good if someone could try to reproduce it on an older machine (Pentium M or other single-core CPU) with a non-ATI card. On faster machines, it might just not be noticeable enough. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780056 https://bugzilla.novell.com/show_bug.cgi?id=780056#c5 --- Comment #5 from Holger Arnold <holgerar@googlemail.com> 2012-09-14 15:57:37 UTC ---
Sorry, I did no want to confuse you; Emacs in the openSUSE 12.2 repos seems to be compiled for GTK2. Here you can set the style in the KDE system settings (Application Appearance -> GTK Style and Fonts). Try "Clearlooks".
You might have to login again before these settings take effect. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780056 https://bugzilla.novell.com/show_bug.cgi?id=780056#c6 --- Comment #6 from Achim Gratz <Stromeko@NexGo.DE> 2012-09-14 18:13:42 UTC ---
It would be good if someone could try to reproduce it on an older machine (Pentium M or other single-core CPU) with a non-ATI card. On faster machines, it might just not be noticeable enough.
I have a Pentium-III/Tualatin with NVidia 5200FX… if it wasn't for the fact that the system is maxed out with just 768MB of memory and the PATA disks are slow it would still be a viable machine for most day-today work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780056 https://bugzilla.novell.com/show_bug.cgi?id=780056#c7 --- Comment #7 from Achim Gratz <Stromeko@NexGo.DE> 2012-09-15 18:46:59 UTC --- There is indeed no sluggishness on the system with nouveau. I'm not sure this tells us much or anything since that card is so old that SW rendering is used for almost anything. Switching the scrollbars off on the system with radeon improves things, but not to the point where applications not using Gtk are. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780056 https://bugzilla.novell.com/show_bug.cgi?id=780056#c8 --- Comment #8 from Holger Arnold <holgerar@googlemail.com> 2012-09-16 09:32:40 UTC ---
There is indeed no sluggishness on the system with nouveau. I'm not sure this tells us much or anything since that card is so old that SW rendering is used for almost anything.
Thanks for testing. At least this tells us that the X server is probably not to blame. Since it's equally slow under non-compositing window managers (I have tested under i3), it can't be a problem with Mesa, either.
Switching the scrollbars off on the system with radeon improves things, but not to the point where applications not using Gtk are.
Comparing Emacs with other programs doesn't tell much because each program does its drawing differently, and Emacs's text drawing is quite complex (and mostly implemented in Lisp). At least on my system, however, Emacs becomes as fast as it is with other styles when scroll bars are turned off. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780056 https://bugzilla.novell.com/show_bug.cgi?id=780056#c9 --- Comment #9 from Achim Gratz <Stromeko@NexGo.DE> 2012-10-09 18:09:52 UTC --- After some more experience running Emacs without the scrollbars enabled: this is an improvement, but the performance is still not where it was. Is there something that can be switched on/off in the graphics driver or the gtk configuration, e.g. to have the scrolling be done by the CPU rather than the graphics card? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780056 https://bugzilla.novell.com/show_bug.cgi?id=780056#c10 --- Comment #10 from Holger Arnold <holgerar@googlemail.com> 2012-10-09 19:17:40 UTC ---
After some more experience running Emacs without the scrollbars enabled: this is an improvement, but the performance is still not where it was. Is there something that can be switched on/off in the graphics driver or the gtk configuration, e.g. to have the scrolling be done by the CPU rather than the graphics card?
I would try to deactivate HW acceleration in Cairo. I don't know whether this can be done by setting some environment variables or requires recompilation of Cairo. Please report if you get any results. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com