TeMPOraL / nyan-mode

Nyan Cat for Emacs! Nyanyanyanyanyanyanyanyanyan!
GNU General Public License v3.0
794 stars 68 forks source link

nyan on ubuntu xenial causes lag on vertical cursor movement #27

Closed pcn closed 6 years ago

pcn commented 8 years ago
$ emacs  --version
GNU Emacs 24.5.1
Copyright (C) 2015 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

Enabling nyan on my laptop causes a pretty long delay when scrolling vertically by holding down C-n. What can I do to provide you with relevant info?

TeMPOraL commented 8 years ago

Could you also provide your laptop specs?

pcn commented 8 years ago

It's a pretty performant laptop in general. Dell 9550, 4k screen, quad-core, 16gb RAM, 512gb SSD. I'm not sure at the moment if it's using accelerated nvidia drivers or not.

TeMPOraL commented 8 years ago

Thanks! One more question - was it a change of behaviour since last update, or have you just started using Nyan Mode?

Anyway, I'll look into that soon, and in general into speeding up Nyan Mode.

pcn commented 8 years ago

I've had this for about a month, and it's behaved this way consistently. In the past I've used nyan-mode on a macbook, so I don't have a good basis for comparison.

TeMPOraL commented 8 years ago

Ok, thanks for the info! :).

TeMPOraL commented 8 years ago

I have some ideas for improvements and will be testing them shortly (I do also need to learn how to profile Emacs...). In the meantime, have you tried switching from default linum-mode to nlinum-mode? It works more-less the same, but gives significant performance improvements when scrolling buffers.

pcn commented 8 years ago

I haven't, but I'll look at that.

seanirby commented 7 years ago

Thought I would chime in since I was also having issues with intermittent lagging while scrolling. Turning off 'nyan-mode' mode resulted in a minor improvement but turning off powerline fixed the lag completely.

My Emacs version is 25.2.50.1 and my laptop is a 2013 Macbook Pro Retina(2.4Ghz CPU and 8GB of RAM)

Thanks for the package btw :)

pcn commented 6 years ago

I've investigated this more in my setup, and currently on ubuntu zesty with emacs25. I discovered M-x profiler-start. It turns out that projectile was doing a tremendous amount of extra work on every line move. I don't know if this was my original problem, but at this point things are much better for me.

I mostly followed this issue for ideas: https://github.com/syl20bnr/spacemacs/issues/4207 and in the end it was enabling caching that makes things better for me.

TeMPOraL commented 6 years ago

Were you working on a Java and/or SVN-versioned project? I know I had a serious performance issue with Projectile in this combination some time ago.

pcn commented 6 years ago

No, I've been using git and mostly things like python, terraform, saltstack, and some rust. Maybe some projects are clojure but those are just in the background.