Home Download Buy Blog Forum Support

Typing very slow/delayed even on small files

Re: Typing very slow/delayed even on small files

Postby facelessuser on Sun Nov 06, 2011 1:31 am

Ahh... more than likely if you don't know if you have plugins, you probably don't have plugins. I am not using a huge screen, so maybe there is some issue.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: Typing very slow/delayed even on small files

Postby ianfitz on Sun Nov 06, 2011 3:14 am

Here's a little video I made to demonstrate the behavior. I really hammered on the keys so you can hear when the physical act of typing stops. This is on a my Macbook Air, but to show it in the 'worst case scenario' I'm outputting it my Apple Cinema Display 24".

http://vimeo.com/31667360
ianfitz
 
Posts: 7
Joined: Sun Oct 30, 2011 1:03 am

Re: Typing very slow/delayed even on small files

Postby peppy on Wed Nov 09, 2011 7:57 am

Here's a video which attempts to demonstrate the issue on my setup: http://dl.dropbox.com/u/16332218/IMG_2319.MOV

Even during keyboard navigation operations, when running fullscreen this latency makes sublime pretty hard to productively use. I feel the need to stop typing every so often to let the editor catch up, else I'm my brain gets into a conflicted state.

No plugins enabled.
peppy
 
Posts: 52
Joined: Thu Aug 04, 2011 4:52 pm
Location: perth, australia

Re: Typing very slow/delayed even on small files

Postby ianfitz on Fri Nov 11, 2011 3:03 am

Wooho, good news! I updated to 10.7.2, and this problem has gone away. Even at full screen on a 24" display, typing is extremely fast and responsive. So looks like this was a Lion bug, not Sublime Text

Peppy, what version of Lion are you running? Can you try updating?
ianfitz
 
Posts: 7
Joined: Sun Oct 30, 2011 1:03 am

Re: Typing very slow/delayed even on small files

Postby peppy on Fri Nov 11, 2011 3:38 am

Unfortunately I'm already on 10.7.2. Comparing to other text editors (TextMate, TextEdit and XCode) at the same window dimensions, sublime definitely does fall behind in terms of performance. For me it would seem to be capping at a CPU bottleneck, with sublime completely saturating one CPU (and windowserver sitting at 30% usage on the other).
peppy
 
Posts: 52
Joined: Thu Aug 04, 2011 4:52 pm
Location: perth, australia

Re: Typing very slow/delayed even on small files

Postby nicolas on Tue Jun 19, 2012 7:57 pm

I had the same problem with my new iMac (Mac OS Lion), whereas at the office, I didn't encounter the problem, with OS X Lion too.

I disabled the "minimap" and the problem was solved !

Hope this will help you !
Nicolas
nicolas
 
Posts: 3
Joined: Tue Jun 19, 2012 7:52 pm

Re: Typing very slow/delayed even on small files

Postby spiv on Fri Jul 06, 2012 2:52 am

I found the same thing to be true on my brand new macbook pro. I believe the poster was onto something in terms of it being screen resolution. The new macbook pros have retina display, i.e. 4x normal screen res. I have the latest OS. Sublime Text 2 has always been super snappy for me but on this new computer, the typing lags behind.
spiv
 
Posts: 1
Joined: Fri Jul 06, 2012 2:50 am

Re: Typing very slow/delayed even on small files

Postby utotwel on Fri Jul 06, 2012 1:07 pm

I can confirm this problem exists on the new "retina" Macbook Pros on latest version of Lion. When using full screen mode on the highest resolution, the editor is unusable it is so laggy. I have to keep mine sized to taking up maybe only about 40% of the screen to make it usable and even then I can sense a slight lag as I type. Any ideas? No plug-ins installed.
utotwel
 
Posts: 19
Joined: Fri Dec 31, 2010 4:46 am

Re: Typing very slow/delayed even on small files

Postby kpthunder on Sat Jul 07, 2012 6:40 am

I just got a MacBook Pro Retina and can confirm the lag on a fresh install of Sublime Text 2 on Lion 10.7.4 with no other applications running. I am running at the resolution that "looks like 1920x1200" or 1920x1200 (HDPI). The larger the editor window the longer the lag. The issue of lagging affects Chocolat even more, but doesn't affect full screen CodeMirror in Chrome Canary at all. Chrome Canary in general seems to be unaffected by the lag. I have yet to try IntelliJ with retina support but will try it soon. Hacker Typer in Chrome Canary has a little bit of lag but less than Sublime Text 2.

Update:
Just tried CollabEdit and Google Docs with large windows and full screen. No lag. Sublime Text 2 in full screen is unbearably slow. IntelliJ is still downloading.

Update 2:
Experimenting with different resolutions using SwitchResX. There is no lag at 1680x1050, although at that resolution I don't personally have a reason to own a retina MacBook (I could buy a normal MacBook Pro at that resolution). There is lag at 1680x1050 (HDPI). If the editor is large enough there is some lag at 2880x1800.

Update 3:
At 1920x1200 (HDPI) there is no lag in IntelliJ using the retina hack.
kpthunder
 
Posts: 3
Joined: Sat Jul 07, 2012 6:32 am

Re: Typing very slow/delayed even on small files

Postby aoeu on Wed Jul 11, 2012 11:40 am

I'm having the same problem on my Retina MBP.

On Lion I was able to get rendering up to 60 FPS by opening "Quartz Debug" and disabling Quartz Extreme. Also the GPU has to be in integrated mode for the performance to be good. You can force this with gfxCardStatus.

Obviously disabling Quartz Extreme makes other applications very slow (such as Google Chrome). Also on Mountain Lion I'm not able to replicate the good performance with this trick.

This leads me to believe that Sublime does something that interferes with hardware acceleration. I have never done any GUI programming on OSX so I can only guess, but I imagine any software rendering could cause this by requiring copying back and forth between graphics and normal memory (which could be faster on the integrated GPU that shares memory with the CPU).
aoeu
 
Posts: 2
Joined: Wed Jul 11, 2012 2:47 am

PreviousNext

Return to Technical Support

Who is online

Users browsing this forum: xeno, Yahoo [Bot] and 32 guests