unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52914: 29.0.50; pgtk menu lag using mouse - very slow for menu item to appear/disappear
@ 2021-12-31 10:23 bhrgunatha
  2021-12-31 13:40 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: bhrgunatha @ 2021-12-31 10:23 UTC (permalink / raw)
  To: 52914

[-- Attachment #1: Type: text/plain, Size: 6281 bytes --]

In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 
3.24.31, cairo version 1.17.4)
  of 2021-12-31 built on starch
Repository revision: c452ffe4c28da21991f1f98007fbe1d66c7e0538
Repository branch: master
System Description: Arch Linux

Configured using:
  'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
  --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games
  --with-sound=alsa --with-modules --without-libotf --without-m17n-flt
  --without-gconf --without-gsettings --enable-link-time-optimization
  --with-native-compilation --with-xinput2 --with-pgtk --without-xaw3d
  --with-sound=alsa --with-xwidgets --without-gpm
  --without-compress-install
  '--program-transform-name=s/\([ec]tags\)/\1.emacs/'
  'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions
  -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
  -fstack-clash-protection -fcf-protection'
  LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG JSON LCMS2
LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG
RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM
XWIDGETS GTK3 ZLIB

Important settings:
   value of $LANG: en_GB.utf8
   locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
   pcre-mode: t
   paredit-mode: t
   rainbow-delimiters-mode: t
   global-company-mode: t
   company-mode: t
   which-key-mode: t
   yas-global-mode: t
   yas-minor-mode: t
   projectile-mode: t
   ido-vertical-mode: t
   all-the-icons-ivy-rich-mode: t
   ivy-rich-mode: t
   ivy-mode: t
   delete-selection-mode: t
   all-the-icons-ibuffer-mode: t
   override-global-mode: t
   global-display-line-numbers-mode: t
   display-line-numbers-mode: t
   global-hl-line-mode: t
   global-display-fill-column-indicator-mode: t
   minibuffer-depth-indicate-mode: t
   windmove-mode: t
   global-so-long-mode: t
   tooltip-mode: t
   global-eldoc-mode: t
   eldoc-mode: t
   show-paren-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   window-divider-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t

Load-path shadows:
/home/bhrgunatha/.emacs.d/elpa/transient-20211226.738/transient hides 
/usr/share/emacs/29.0.50/lisp/transient

Features:
(shadow sort mail-extr emacsbug message yank-media rmc puny rfc822 mml
mml-sec epa derived epg rfc6068 epg-config gnus-util time-date mm-decode
mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail mail-utils
mule-util time keychain-environment pcre2el rxt re-builder pp server
paredit rainbow-delimiters smartparens dash company-oddmuse
company-keywords company-etags etags fileloop generator company-gtags
company-dabbrev-code company-dabbrev company-files company-clang
company-capf company-cmake company-semantic company-template
company-bbdb company pcase which-key yasnippet moe-theme moe-dark-theme
moe-light-theme powerline powerline-separators powerline-themes
projectile lisp-mnt mail-parse rfc2231 rfc2047 rfc2045 mm-util
ietf-drums mail-prsvr grep ibuf-ext thingatpt counsel xdg xref project
dired dired-loaddefs compile text-property-search comint ansi-color
swiper ido-vertical-mode ido diminish edmacro kmacro
all-the-icons-ivy-rich ivy-rich ivy delsel ring ivy-faces ivy-overlay
colir color all-the-icons-ibuffer all-the-icons all-the-icons-faces
data-material data-weathericons data-octicons data-fileicons
data-faicons data-alltheicons ibuffer ibuffer-loaddefs use-package
use-package-ensure use-package-delight use-package-diminish
use-package-bind-key bind-key keys visuals display-line-numbers hl-line
easy-mmode display-fill-column-indicator settings mb-depth comp
comp-cstr warnings cl-extra help-mode windmove so-long definitions
advice use-package-core finder-inf rx info package browse-url url
url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq
eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars
seq gv subr-x byte-opt bytecomp byte-compile cconv cl-loaddefs cl-lib
custom-init custom-settings iso-transl tooltip eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/pgtk-win pgtk-win term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads xwidget-internal dbusbind
inotify dynamic-setting font-render-setting cairo move-toolbar gtk
x-toolkit pgtk lcms2 multi-tty make-network-process native-compile
emacs)

Memory information:
((conses 16 402402 183537)
  (symbols 48 26146 1)
  (strings 32 127928 54445)
  (string-bytes 1 4060893)
  (vectors 16 42958)
  (vector-slots 8 708041 179105)
  (floats 8 681 1062)
  (intervals 56 405 0)
  (buffers 992 13))

Using the new pgtk flag to compile, menu bar items are very slow to
appear using a mouse e.g. clicking the Tools menu, the menu appears
after about a second delay.

Similarly clicking to dismiss menus or select/de-select sub menus
are delayed too.

There is no delay using the keyboard (F10).

Moving between menus with the keyboard has no delay either.

I'm not sure if related, but scrolling a buffer using the mouse wheel is
is also not as smooth as before.

Using --with-x-toolkit=gtk3 instead of --with-pgtk does not lag.

Regards,

bhrgunatha




[-- Attachment #2: Type: text/html, Size: 8149 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#52914: 29.0.50; pgtk menu lag using mouse - very slow for menu item to appear/disappear
  2021-12-31 10:23 bug#52914: 29.0.50; pgtk menu lag using mouse - very slow for menu item to appear/disappear bhrgunatha
@ 2021-12-31 13:40 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-01-06 16:49   ` bhrgunatha
  0 siblings, 1 reply; 4+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-31 13:40 UTC (permalink / raw)
  To: bhrgunatha; +Cc: 52914

bhrgunatha <bhrgunatha@gmail.com> writes:

> Using the new pgtk flag to compile, menu bar items are very slow to
> appear using a mouse e.g. clicking the Tools menu, the menu appears
> after about a second delay.

Could you please set a breakpoint on `menu_bar_button_pressed_cb' in
gtkutil.c, and see how many times it is called?

That callback being triggered too rapidly seems to be the most likely
problem.

> Using --with-x-toolkit=gtk3 instead of --with-pgtk does not lag.

By the way, are you running Emacs on Wayland?

If not, I recommend you use the regular X build instead, since it is
simply superior to the PGTK port.

Thanks.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#52914: 29.0.50; pgtk menu lag using mouse - very slow for menu item to appear/disappear
  2021-12-31 13:40 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-01-06 16:49   ` bhrgunatha
  2022-01-07  0:46     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: bhrgunatha @ 2022-01-06 16:49 UTC (permalink / raw)
  To: Po Lu; +Cc: 52914

[-- Attachment #1: Type: text/plain, Size: 1135 bytes --]

Sorry for the delay, I had to learn how to debug emacs first.

According to gdb it only hits that callback function 6 times (after 
starting emacs, selecting menu items a couple of times, then using the 
menu to quit emacs).
I'm not using wayland yet and was just experimenting with the new pgtk 
feature and the only issue I had was the menu lag.

I'm not sure what else I can offer.

I will continue with the regular X build, thanks.


On 31/12/2021 21:40, Po Lu wrote:
> bhrgunatha<bhrgunatha@gmail.com>  writes:
>
>> Using the new pgtk flag to compile, menu bar items are very slow to
>> appear using a mouse e.g. clicking the Tools menu, the menu appears
>> after about a second delay.
> Could you please set a breakpoint on `menu_bar_button_pressed_cb' in
> gtkutil.c, and see how many times it is called?
>
> That callback being triggered too rapidly seems to be the most likely
> problem.
>
>> Using --with-x-toolkit=gtk3 instead of --with-pgtk does not lag.
> By the way, are you running Emacs on Wayland?
>
> If not, I recommend you use the regular X build instead, since it is
> simply superior to the PGTK port.
>
> Thanks.

[-- Attachment #2: Type: text/html, Size: 1911 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#52914: 29.0.50; pgtk menu lag using mouse - very slow for menu item to appear/disappear
  2022-01-06 16:49   ` bhrgunatha
@ 2022-01-07  0:46     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 4+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-01-07  0:46 UTC (permalink / raw)
  To: bhrgunatha; +Cc: 52914

bhrgunatha <bhrgunatha@gmail.com> writes:

> Sorry for the delay, I had to learn how to debug emacs first.
>
> According to gdb it only hits that callback function 6 times (after
> starting emacs, selecting menu items a couple of times, then using the
> menu to quit emacs).  I'm not using wayland yet and was just
> experimenting with the new pgtk feature and the only issue I had was
> the menu lag.

Hmm, that seems odd.  I can't reproduce this, but I'll leave this issue
open if some wiser person knows what's going on.

Thanks.






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-07  0:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-31 10:23 bug#52914: 29.0.50; pgtk menu lag using mouse - very slow for menu item to appear/disappear bhrgunatha
2021-12-31 13:40 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-06 16:49   ` bhrgunatha
2022-01-07  0:46     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).