Sublime Forum

CPU usage spikes just by typing

#1

Hi,

I’m using build 3176, and there is a huge CPU spike when I start typing, just in normal speed. It’s impossible to use the editor because of this - any words typed in will only appear after I have stopped typing, and the CPU has had enough time to calcute this extreme task that I ask of it, and display the letters typed. This happens no matter if I have 12 tabs opened or just one.

It’s not the newest pice of hardware, but the same thing does not happen with Libreoffice or leafpad.

OS is Lubuntu 18.04 64 bit. I uninstalled all my packages (removed the .config/sublime text 3 folder) so it’s not a package problem.

Anybody knows what to do about this? ST3 is my favorite text editor!! I am heartbroken.

0 Likes

#2

Hello @EmilBeBri,

I feel the need to ask what language are you using when this happens?

The behavior you describe was happening to me with omnisharp-sublime while writing C#. I got it worked out mostly and the rest is butter smooth.

I am asking because I am wondering if it could just be a LSP response time thing.

0 Likes

#3

Hello @dewm_solo! The language is just markdown. I can’t remember if the it also persisted when switching to another language (I use sublime mainly for .R, .Rmd. .tex and .md), but will try to see if it can be isolated to only markdown files.

For some reason, the problem has gone again. No idea why. It seems to go and come back again. I installed Atom, and use that when Sublime gets all worked up.

Will post again when it happens again, and tell wether it persists in files other than markdown. Any other ideas for troubleshooting are very welcome in the meantime, of course.

0 Likes

#4

You may have a misbehaving plugin, try reverting ST and slowly add back your plugins to try and narrow it down. Given how it isn’t consistent this may be difficult to try out, but it may work. (or try the ignored_packages preference)

0 Likes

#5

Well it didn’t stop happening when I uninstalled all my plugins, as I wrote in my original post. So that’s very odd. And even odder(?) that it hasn’'t happened since.

Strange.

0 Likes

#6

Nothing changed in the Sublime “world” so…Something else was affecting your pc?

0 Likes

#7

Well that must be the reason I guess. Just strange that it only affected the typing in ST, and not in Atom editor, or Leafpad (the default “notepad” in Lubuntu), or in Libreoffice.

Well. Thanks for the response!

0 Likes