Slow scrolling and text drawing

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Slow scrolling and text drawing

Dennis Benzinger

Hi!

If I scroll in GVim by keeping j or k pressed is very slow. Doing the
same with Vim in Gnome terminal is much faster.

If I run :version in GVim I can see the individual lines being drawn one
after another. In Vim the whole :version output is instantly there. The
same happens with :hi or the filename completion.

Making the GVim window smaller (about 20 rows or columns) speeds it up.
Turning syntax highlighting off doesn't help much.

I'm using version 7.2 with patches 1-75, the GTK2 GUI on 64bit Linux.

Is this a GTK+ problem? Which GTK+ widget does GVim use to display the text?


Dennis Benzinger

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Slow scrolling and text drawing

Dominique Pellé

Dennis Benzinger wrote:

> Hi!
>
> If I scroll in GVim by keeping j or k pressed is very slow. Doing the
> same with Vim in Gnome terminal is much faster.
>
> If I run :version in GVim I can see the individual lines being drawn one
> after another. In Vim the whole :version output is instantly there. The
> same happens with :hi or the filename completion.
>
> Making the GVim window smaller (about 20 rows or columns) speeds it up.
> Turning syntax highlighting off doesn't help much.
>
> I'm using version 7.2 with patches 1-75, the GTK2 GUI on 64bit Linux.
>
> Is this a GTK+ problem? Which GTK+ widget does GVim use to display the text?
>
> Dennis Benzinger


First thing to try would be to run "gvim -u NONE -U NONE" and check
whether it's still slow, to ensure that it's not something in your .vimrc
or a plugin which is causing it.

Maybe you have the same issue as the one discussed discussed
earlier in Oct 2008. Subject was: "GVim slow on Ubuntu 8.10":

http://groups.google.com/group/vim_use/browse_thread/thread/dd1d8d9a799adf4a/48d71c94bf6be986

As far as I know, no root cause has been found and it's not
fixed. Not everybody is affected by this bug which makes it
harder to debug. I'm using Ubuntu-8.10 and gvim-7.2.101 (GTK2)
and I'm not affected by this "slow gvim" bug.

-- Dominique

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Slow scrolling and text drawing

Dennis Benzinger

Hi Dominique!

Am 04.02.2009 21:05, Dominique Pelle schrieb:
> [...]
> First thing to try would be to run "gvim -u NONE -U NONE" and check
> whether it's still slow, to ensure that it's not something in your .vimrc
> or a plugin which is causing it.

No, that doesn't help. It's still slow.

> [...]
> As far as I know, no root cause has been found and it's not
> fixed. Not everybody is affected by this bug which makes it
> harder to debug. I'm using Ubuntu-8.10 and gvim-7.2.101 (GTK2)
> and I'm not affected by this "slow gvim" bug.
> [...]

I'm using Ubuntu 8.10 too. Do you use the 32 or 64 bit version? Which
video driver are you using? What's the resolution of your screen? How
big are your GVim windows? I've noticed that with small windows (80x24)
it's much faster than with large windows. Can you please post your
:version output?


Thanks for your help,
Dennis Benzinger

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Slow scrolling and text drawing

Tony Mechelynck

On 05/02/09 12:08, Dennis Benzinger wrote:

> Hi Dominique!
>
> Am 04.02.2009 21:05, Dominique Pelle schrieb:
>> [...]
>> First thing to try would be to run "gvim -u NONE -U NONE" and check
>> whether it's still slow, to ensure that it's not something in your .vimrc
>> or a plugin which is causing it.
>
> No, that doesn't help. It's still slow.
>
>> [...]
>> As far as I know, no root cause has been found and it's not
>> fixed. Not everybody is affected by this bug which makes it
>> harder to debug. I'm using Ubuntu-8.10 and gvim-7.2.101 (GTK2)
>> and I'm not affected by this "slow gvim" bug.
>> [...]
>
> I'm using Ubuntu 8.10 too. Do you use the 32 or 64 bit version? Which
> video driver are you using? What's the resolution of your screen? How
> big are your GVim windows? I've noticed that with small windows (80x24)
> it's much faster than with large windows. Can you please post your
> :version output?
>
>
> Thanks for your help,
> Dennis Benzinger

If you try various 'guifont' settings (various faces and various sizes),
is it always equally slow?



I also use Vim 7.2 with GTK2 GUI (currently actually 7.2.102 and
GTK2/Gnome2 on openSUSE 11.1 but the difference shouldn't matter). I'm
on a 32-bit machine. I'm displaying at 1024x768 pixels, 16M colours,
using a SiS 660 card with "sis" X driver. I'll attach my ":version"
output at the bottom of this post though I doubt you'll find it useful.
I'm currently using Bitstream Vera Sans Mono 7 and this Vim build isn't
as lightning-fast in GUI mode (maximized: 63 lines, 199 columns) as in
Console mode (80 columns, 43 lines in konsole) but I don't find it
unbearably slow. Maybe I'm patient.

Best regards,
Tony.

VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Feb  5 2009 21:07:38)
Included patches: 1-102
Extra patches: Extra float functions (Bill McCarthy)
Compiled by [hidden email]
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
+cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con_gui
+diff +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search
+farsi +file_in_path +find_in_path +float +folding -footer +fork()
+gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap
+libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
+modify_fname +mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm
+mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte +multi_lang
-mzscheme +netbeans_intg -osfiletype +path_extra +perl +postscript
+printer +profile +python +quickfix +reltime +rightleft +ruby
+scrollbind +signs +smartindent -sniff +statusline -sun_workshop
+syntax +tag_binary -tag_old_static -tag_any_white +tcl +terminfo
+termresponse +textobjects +title +toolbar +user_commands +vertsplit
+virtualedit +visual +visualextra +viminfo +vreplace +wildignore
+wildmenu +windows +writebackup +X11 -xfontset +xim +xsmp_interact
+xterm_clipboard +xterm_save
    system vimrc file: "$VIM/vimrc"
      user vimrc file: "$HOME/.vimrc"
       user exrc file: "$HOME/.exrc"
   system gvimrc file: "$VIM/gvimrc"
     user gvimrc file: "$HOME/.gvimrc"
     system menu file: "$VIMRUNTIME/menu.vim"
   fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12   -DORBIT2=1 -pthread
-I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0
-I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1
-I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include
-I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0
-I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2
-I/usr/include/pango-1.0 -I/usr/include/gail-1.0
-I/usr/include/freetype2 -I/usr/include/atk-1.0
-I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1
-I/usr/include/libpng12     -O2 -fno-strength-reduce -Wall
-D_FORTIFY_SOURCE=1    -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV
-DDEBUGGING  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/perl5/5.10.0/i586-linux-thread-multi/CORE
-I/usr/include/python2.6 -pthread -I/usr/include
-D_LARGEFILE64_SOURCE=1  -I/usr/lib/ruby/1.8/i586-linux
Linking: gcc   -L.  -rdynamic -Wl,-export-dynamic  -Wl,-E
-Wl,-rpath,/usr/lib/perl5/5.10.0/i586-linux-thread-multi/CORE
-L/usr/local/lib -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo
-lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0
-lglib-2.0     -lgnomeui-2 -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2
-lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lORBit-2 -lart_lgpl_2
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
-lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lz
-lfontconfig -lgconf-2 -lgthread-2.0 -lrt -lgmodule-2.0 -lgobject-2.0
-lglib-2.0   -lXt -lncurses -lacl -lgpm   -Wl,-E
-Wl,-rpath,/usr/lib/perl5/5.10.0/i586-linux-thread-multi/CORE
-L/usr/lib/perl5/5.10.0/i586-linux-thread-multi/CORE -lperl -lutil -lc
-L/usr/lib/python2.6/config -lpython2.6 -lutil -Xlinker -export-dynamic
-L/usr/lib -ltcl8.5 -lieee -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby -lm


--
"I'd love to go out with you, but I've been scheduled for a karma
transplant."

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Slow scrolling and text drawing

John Little-4


> > I'm using Ubuntu 8.10 too....

FWIW, I'm on Kubuntu 8.10, x86_64,  nvidia driver version 173,
Bitstream vera sans mono and gvim is fine.  (KDE 4 is another
story...)

eval.txt (that is, :help eval) displayed in an 80 line window, takes 9
s to page to the end (holding the page down key down).

Regards, John
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---