Sublime Forum

Build 4189 lagging noticeably

#1

I just updated my sublime text today after it prompted me a bit recently… however, I’m now seeing some significant lag at various times while using it. One of the common things seems to be while trying to type after pasting a line of text into it. I’ve also seen it doing so while saving or switching tabs. Has this update introduced something that’s connecting to the network in a way that the previous version wasn’t? My paranoia keeps expecting to hear that someone decided to connect the application to an AI for whatever cool new feature was wanted. (I definitely don’t want my content being used for training or otherwise scraped without my knowledge.) The lag time at the moment isn’t preventing me from working, but is definitely a noticeable issue and one that will get more annoying over time. I’m hoping there’s some way to correct for it.

0 Likes

#2

ST hasn’t added any AI feature nor does it reach out to internet for any sort of code intelligence out of the box.

Various syntax definitions have been updated as well as syntax engine saw some changes. Some more info about syntax you see issues with, including some code snippets, where lag is noticible would probably help narrowing things down.

Beyond that, especially MacOS users reported lags after recent OS updates, which may be related with possible OpenGL driver bugs/changes, especially when running ST on external displays.

Other than that, Main Menu > Tools > Developer > Profile Plugins may provide some hints about plugins’ event hooks possibly causing delays on certain actions.

… or even try running ST in SAFE MODE to check, whether it laggs with all plugins disabled, too.

0 Likes

#3

I’m running on Windows, everything the latest version. I’ve noticed the two reliable ways it happens are after I paste something from one tab to another, and when I save using the keyboard shortcut. Saving takes about 3 seconds of lag / hang time before it lets me move on. I didn’t used to do that before this last update. Unfortunately, it’s a frequently step in my work flow when building code for a web page, as I’m making small changes and testing as I go.
I looked at the profile plugins as suggested, I do see a range of times shown there, but none of them appear to be greater than 0 (they’re all decimals like 0.408 and 0.002 etc.)

0 Likes

#4

Does it happen in safe mode?

0 Likes

#5

I have the same lag problem when switching tab using MacOs shortcut command + option + left/right.

The lag is a bit random, I’d say about 20% of actions lag, and the duration is between 0.5s to 3s.

It only appeared after updating with build 4189 this morning, though I can’t remember if I jumped over build 4186 as it was just before the holidays. I haven’t updated MacOs for a long time.

It doesn’t seem to lag in safe mode.

0 Likes

#6

If it’s not happening in safe mode then it’s most likely caused by a plugin. What do you get when you profile plugins as suggested by deathaxe?

0 Likes

#7

I’m not sure what I’m supposed to see. I restarted ST, switched tab until I encoutered a lag and immediately showed Profile Plugins:

on_activated:
Default.history_list: 0.006s total, mean: 0.000s, max: 0.005s
SideBarEnhancements.SideBar: 0.002s total, mean: 0.000s, max: 0.000s

on_hover:
Default.symbol: 0.001s total, mean: 0.000s, max: 0.001s

on_post_text_command:
Default.history_list: 0.000s total
Default.paste_from_history: 0.000s total

on_text_command:
Default.history_list: 0.000s total

on_window_command:
Default.history_list: 0.001s total, mean: 0.000s, max: 0.000s

0 Likes