sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

Laggy keyboard input until "Profile plugins" is opened

Open FooBarrior opened this issue 6 years ago • 4 comments

Description

Any typing in any Sublime Text 3 window (e.g. Textarea, Search commands, search/replace, console) hangs for ~1 sec. After "Profile events" tab is opened, the lag disappears.

Hotkeys like closing/opening tabls, selecting text, and even just moving a caret work OK. The problem seems to appear only on entering/removing letters in the text area

I have no plugins installed and even tried to remove "plugin_host", and to ignore all packages visible in console log. That didn't change a thing.

Steps to reproduce

  1. Launch sublime text 3
  2. Start typing

Expected behavior

No feasible delay between key press and appearance

Actual behavior

The delay is about 1 sec. If you type several letters, the delay doesn't summate, but looks more like MAX (although not exactly, it grows a little)

Environment

  • Build: 3207
  • Operating system and version: fresh Arch Linux as of July 9. uname -r: 5.2.6-arch1-1-ARCH
  • DE/WM: Gnome 3 / Wayland

FooBarrior avatar Aug 09 '19 11:08 FooBarrior

"profile events" shows values close to 0:

This list shows how much time each plugin has taken to respond to each event:

on_activated:
    Default.pane: 0.000s total, mean: 0.000s, max: 0.000s
    Vintage.vintage: 0.001s total, mean: 0.000s, max: 0.000s

on_deactivated:
    Default.history_list: 0.004s total, mean: 0.000s, max: 0.000s
    Vintage.vintage: 0.001s total, mean: 0.000s, max: 0.000s

on_selection_modified:
    Vintage.vintage: 0.003s total, mean: 0.000s, max: 0.000s

FooBarrior avatar Aug 09 '19 11:08 FooBarrior

Seems that alt-tabbing brings the problem back after "Profile events" window opened, but seems not always, I can't follow it clearly. I remember like it wasn't until I've deleted User/Cache

FooBarrior avatar Aug 09 '19 11:08 FooBarrior

ANYTHING I press in a menu eliminates the lag (if a focus doesn't change, like in File->Save As..), not only "Profile events"

FooBarrior avatar Aug 09 '19 11:08 FooBarrior

Are you still seeing this?

BenjaminSchaaf avatar Feb 14 '24 07:02 BenjaminSchaaf