Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pcn opened this issue Apr 25, 2016 · 11 comments
Closed

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

pcn opened this issue Apr 25, 2016 · 11 comments

Comments

@pcn
Copy link

pcn commented Apr 25, 2016

$ 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
Copy link
Owner

Could you also provide your laptop specs?

@pcn
Copy link
Author

pcn commented Apr 25, 2016

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
Copy link
Owner

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
Copy link
Author

pcn commented Apr 25, 2016

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
Copy link
Owner

Ok, thanks for the info! :).

@TeMPOraL
Copy link
Owner

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
Copy link
Author

pcn commented May 3, 2016

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

@seanirby
Copy link

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
Copy link
Author

pcn commented Oct 20, 2017

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: syl20bnr/spacemacs#4207 and in the end it was enabling caching that makes things better for me.

@pcn pcn closed this as completed Oct 20, 2017
@TeMPOraL
Copy link
Owner

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
Copy link
Author

pcn commented Oct 20, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants