sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
812 stars 39 forks source link

Stuttering / lagged input / dropped input #6359

Open chad-sai opened 6 months ago

chad-sai commented 6 months ago

Description of the bug

Application sometimes runs slow, stutters, uses a lot of CPU, does not copy selection properly. Mostly happens with source code, but that's what I mostly use it for.

Steps to reproduce

Open the editor and paste in a line of code. Edit the text, or simply select part of it, and copy it to clipboard to paste elsewhere.

Expected behavior

It works as it has in the past, like a lightweight text editor with syntax highlighting. I often use ST as a way of washing off rich-text formatting when copying text or from a browser or email, before pasting into a terminal, or a chat.

Actual behavior

It stutters and runs slow, burns CPU, and copy/pasting text from it sometimes doesn't paste the portion of the text which was selected and copied, but the full buffer. This full buffer copy could simply be that ST did not successfully perform a new copy, so the last thing on the buffer (what was pasted into ST) is still present, that is, the full buffer.

Sometimes it takes multiple clicks to move around in the editor, or there are delays between a keypress and it appearing.

Sublime Text build number

4169

Operating system & version

MacOS 14.4.1 (23E224)

(Linux) Desktop environment and/or window manager

No response

Additional information

I have two external monitors connected, one via HDMI port on MacBook Pro, the other via a USB-C dongle's HDMI port. Issue happens regardless of which display the ST window is on.

OpenGL context information

No response

BenjaminSchaaf commented 6 months ago

Does it happen in safe mode?

pannous commented 5 months ago

Same issue MacOS Build 4169. Issue does indeed go away in safe mode!

All packages added to "ignored_packages":[…] so it should be 'like clean' ? But isn't:

Up to 5 seconds lag when moving cursor. Almost unusable:( Started ≈ 2 weeks ago

pannous commented 5 months ago

Renamed Installed Packages to Installed Packages.bak and Packages to Packages.bak

a bit better, but it's still struggling. actually as bad as before.

In new plaintext file "lorum ipsum" can move cursor smoothly for some seconds, than back to 5sec lag

Hiding / disabling everything under "View" did not help

full screen mode fixes it! (not a proper solution but temporary workaround!)

BenjaminSchaaf commented 5 months ago

@pannous Does it still happen if you enable/disable the "hardware_acceleration" setting?

pannous commented 5 months ago

thanks!

"hardware_acceleration":"true",

makes it noticeably better. After some 'warmup' almost back to normal. struggling for 1/2 sec every 10 sec.

( PS: Mac M2 tiny files similar to big files, used to work fine on gigantic files )

If you know the root cause "good enough for me". Swiping under the rug maybe not perfect;)

BenjaminSchaaf commented 5 months ago

Could you share all your settings? It's also possible a reboot may resolve some issues.