Skip to content

Support Retina Displays #67

Closed
davepeck opened this Issue Jun 15, 2012 · 29 comments

8 participants

@davepeck

Obviously this is a bit premature, as Sublime Text 2 itself doesn't (yet) properly support Retina. And I'm not sure what ST2's Retina theming story will be. But I suppose it's only a matter of time...

Cheers,
Dave

@ticky
ticky commented Jun 15, 2012

A safe bet would probably be to include double-sized versions of existing resources as filename@2x.ext.

@buymeasoda
Owner

Adding retina versions of the graphics shouldn't be a problem, though I assume the ST2 core will need to provide some mechanism or convention for using them first.

Will be interesting to see how this is achieved, and if I only had a retina MacBook Pro to test on :) (Patiently waiting for retina to come to the Air)

@buymeasoda
Owner

Well that was quick!

http://www.sublimetext.com/forum/viewtopic.php?f=2&t=7512&start=20#p31969

Time to get busy creating the retina version ;)

@davepeck

Here's a little more detail from jps on Retina themes for ST2:

http://www.sublimetext.com/forum/viewtopic.php?f=2&t=7560

Basically, it works as expected: ensure all images have an @2x and everyone's happy.

@bluestrike2

Shit. I was kind of hoping that we'd be waiting a while for retina support. That way, I wouldn't find myself tempted to plop down my credit card at the Apple store. Jerks.

:)

@ticky
ticky commented Jun 18, 2012

I never expected it to be handled any other way. Awesome turnaround time, though. :)

@davepeck

Yeah, jps moved remarkably fast to support @2x files in themes.

Out of curiosity, are the original vector or photoshop images that went into making Soda available somewhere? I would be happy to do a little bit of the @2x work (I seem to be doing it for my own Mac app right now, so I'm in the headspace. ;-)

@chrisdrackett

I was going to help out with doing @2x versions of the graphics, but without the source files in the repo it would take too long :)

@AdamBrodzinski

buymeasoda, if you need any help testing out the retina graphics let me know. I just recently purchased a MBP retina. Also if you need any help up-converting the graphics let me know.

@buymeasoda
Owner

Retina update for Soda Light has been released. Soda Dark won't be too far off.

Let me know if it all looks ok :) I've run it on my machine in hi-dpi mode and that looked fine, but it's only a regular screen resolution system rendering everything at jumbo sizes.

One thing I did notice was when dragging tabs, it looks like ST2 might be triggering the 1x version of the tab background during the drag.

Possibly an issue with ST2 for that one? If you can confirm the issue, could you let Jon know or send a support request to him to have a look?

@buymeasoda buymeasoda was assigned Jul 8, 2012
@AdamBrodzinski

Wow looks sharp! :)

I can confirm it switches to low-res upon dragging the tab outside of the row (unsnapping it). If you drag left/right it does not blur. I also am running the latest nightly build. I also submitted a support issue for this. Thanks!

Drag Sideways:
Drag Sideways

Drag out of row:
Unsnap

@bluestrike2

Nice. Now to find that pesky credit card :).

@JustSid
JustSid commented Jul 9, 2012

Great, now I want a retina MBP as well...

@Bramjetten

It looks great on my retina MBP but the performance hit over the default Sublime theme is substantial. The UI lag is unbearable at the moment. Any solutions in sight?

@buymeasoda
Owner

I'd recommend letting Jon know as that's something he'd want to investigate.

I'm not aware of anything I can tweak from a theme perspective that would influence performance (other than removing @2x resources). Once the theme images are created and exported at the higher retina resolution, my understanding is that the UI drawing performance is in the hands of the Sublime Text 2 application core.

The default theme is still mostly standard resolution from what I can see, with only five @2x images and seventy-seven remaining standard images, which may explain the performance difference you're experiencing.

It's possible that there's some performance optimisations needed in ST2 core to operate properly with full @2x themes.

Let me know how you go :)

@chrisdrackett

@Bramjetten I'm not seeing any performance issues on my Retina Macbook Pro, maybe something else is going on? Could it be a 3rd party package?

@Bramjetten

@chrisdrackett I uninstalled Sublime along with all my preferences and installed a new copy along with the latest release of Soda. What's illustrating my problem exactly is the following:

When I randomly type gibberish as fast as I can, the editor has trouble keeping up and continues to render text long after I lift my fingers from the keyboard. I do not experience this behavior in TextMate. Or in Sublime on a non-retina resolution for that matter.

Perhaps worth noting that I'm on a 2,3 Ghz retina MBP with Mountain Lion GM installed.

@chrisdrackett

hm, maybe I'm just not a very fast typist :D

I see the same issue, but with both the normal and soda theme. I have a 2.7 also with Mountain Lion GM. I guess I've just never typed fast enough to notice!

@Bramjetten

This is a video comparing Sublime on 1440x900 on non-retina and 1440x900 on retina:
http://www.youtube.com/watch?v=0xCA2_GIgmQ

@AdamBrodzinski

Interesting.... I can make it do this if literally type as fast as my fingers can press the keys. However it's not quite as slow as yours. If I type gibberish for 5 seconds straight, I get a nearly 1 second delay.

If I type at a reasonably fast speed, like 80 wpm or something close, I can't see any delay. FWIW, I did see a significant delay before I re-booted and had a 2gb page out.

My specs are:
Normal Retina Display
OSX 10.7 Lion
2.3 ghz
8gb RAM

@Bramjetten

I have 0 bytes page-out. Only difference in our machines would be Mountain Lion.

@davepeck

It seems like support is largely finished -- fantastic! Is there a reason we should keep the bug open longer?

@buymeasoda
Owner

Just keeping it around until retina for Soda Dark is finished. Soda Light is fully retina.

@Bramjetten
@buymeasoda
Owner

@Bramjetten The best thing I can suggest for addressing the performance of ST2 with a full retina UI would be to raise a support request with Jon or open up discussion on the Sublime Text forums. Have you had any luck getting feedback on that so far?

Unfortunately, I'm not aware of any action I can take from a theme perspective to improve the situation.

@Bramjetten
@AdamBrodzinski

For what it's worth, I just upgraded to Mountain Lion and i'm getting a noticeable lag on the screen (much more than before). The lag is equally the same with the retina soda theme and the default theme for me though.

Luckily I can't actually type that fast ;D

@buymeasoda
Owner

Retina has been shipped for Soda Dark :)

I'll close this ticket now. For anyone having any issues with Sublime Text 2 rendering on retina displays, there are a couple of forum posts open on the Sublime Text forum that may be worth tracking.

@buymeasoda buymeasoda closed this Jul 29, 2012
@buymeasoda
Owner

Hi, I've made a new ticket to bring together all the previous discussion about retina and display performance so I can try and get to a decent outcome.

If you're still having problems - or if everything is working fine and you just want to share that ;) - please take a look at the new ticket and respond with any additional information you have. I've also pushed the first of a few visual theme changes I have been experimenting with to improve things. You might want to update the theme and see if it's improved things at all.

More details are available at the new issue: #107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.