sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

Maverics - "CoreText performance note"

Open s2krish opened this issue 11 years ago • 6 comments

I got following message in console log. My system is MBP Late 2011 (MacBookPro8,1), OS X 10.9

11/23/13 2:05:52.787 PM Sublime Text 2[509]: CoreText performance note: Client called CTFontCreateWithName() using name "Menlo Regular" and got font with PostScript name "Menlo-Regular". For best performance, only use PostScript names when calling this API.
11/23/13 2:05:52.787 PM Sublime Text 2[509]: CoreText performance note: Set a breakpoint on CTFontLogSuboptimalRequest to debug.
11/23/13 2:05:52.788 PM Sublime Text 2[509]: CoreText performance note: Client called CTFontCreateWithName() using name "Lucida Grande" and got font with PostScript name "LucidaGrande". For best performance, only use PostScript names when calling this API.
11/23/13 2:05:52.793 PM Sublime Text 2[509]: CoreText performance note: Client called CTFontCreateWithName() using name "Menlo Regular" and got font with PostScript name "Menlo-Regular". For best performance, only use PostScript names when calling this API.
11/23/13 2:05:52.810 PM Sublime Text 2[509]: CoreText performance note: Client called CTFontCreateWithName() using name "Menlo Regular" and got font with PostScript name "Menlo-Regular". For best performance, only use PostScript names when calling this API.
11/23/13 2:05:52.813 PM Sublime Text 2[509]: CoreText performance note: Client called CTFontCreateWithName() using name "Menlo Regular" and got font with PostScript name "Menlo-Regular". For best performance, only use PostScript names when calling this API.
11/23/13 2:05:52.830 PM Sublime Text 2[509]: CoreText performance note: Client called CTFontCreateWithName() using name "Lucida Grande" and got font with PostScript name "LucidaGrande". For best performance, only use PostScript names when calling this API.
11/23/13 2:05:52.867 PM Sublime Text 2[509]: CoreText performance note: Client called CTFontCreateWithName() using name "Courier New" and got font with PostScript name "CourierNewPSMT". For best performance, only use PostScript names when calling this API.
11/23/13 2:05:52.943 PM Sublime Text 2[509]: CoreText performance note: Client called CTFontCreateWithName() using name "Courier New" and got font with PostScript name "CourierNewPSMT". For best performance, only use PostScript names when calling this API.
11/23/13 2:05:52.950 PM Sublime Text 2[509]: CoreText performance note: Client called CTFontCreateWithName() using name "Courier New" and got font with PostScript name "CourierNewPSMT". For best performance, only use PostScript names when calling this API.
11/23/13 2:05:52.956 PM Sublime Text 2[509]: CoreText performance note: Client called CTFontCreateWithName() using name "Courier New" and got font with PostScript name "CourierNewPSMT". For best performance, only use PostScript names when calling this API.
11/23/13 2:05:53.068 PM Sublime Text 2[509]: CoreText performance note: Client called CTFontCreateWithName() using name "Lucida Grande" and got font with PostScript name "LucidaGrande". For best performance, only use PostScript names when calling this API.
11/23/13 2:05:53.069 PM Sublime Text 2[509]: CoreText performance note: Client called CTFontCreateWithName() using name "Lucida Grande" and got font with PostScript name "LucidaGrande". For best performance, only use PostScript names when calling this API.

s2krish avatar Nov 23 '13 08:11 s2krish

Can you please test this with Sublime Text 3 Build 3047 or Build 3056 if you're a registered user and see if you get the same type of messages? Unfortunately, ST2 bugs are very low on the priority list unless they're extremely serious. While this bug isn't serious, it's more likely to get attention if you can replicate it in ST3.

Thanks!

MattDMo avatar Nov 23 '13 17:11 MattDMo

Thanks! ST3 also has same bug. May be it is not bug, but just as OS X 10.9 note for performance.

s2krish avatar Nov 24 '13 10:11 s2krish

I'm getting the same thing. I was trying to fix a bug with my sublime (it's hanging forever when I open it) and then I saw this... would it be the cause?

bsides avatar Jan 09 '14 12:01 bsides

@bsides If you're on Mavericks, there are a whole bunch of other things that could be happening, and I'd put this issue pretty low on the list. From what I can tell, this is essentially just a warning that "performance could be better" if the API was called in a slightly different way - it doesn't mean that ST is hanging, or even that there's a real serious degradation of performance (although there could be, I'm not familiar with this API).

Personally, I'm staying on Mountain Lion until a whole lot of issues with Mavericks get addressed, including many issues with Python, which is my primary language currently. I might be comfortable with upgrading by 10.9.5 or so :grinning:

MattDMo avatar Jan 13 '14 23:01 MattDMo

You can use "font_face": "Monaco", as "quickhack".

gordio avatar Mar 17 '14 00:03 gordio

Making a note of the fix: https://stackoverflow.com/questions/18291333/coretext-performance-warning-when-creating-a-ctfont

BenjaminSchaaf avatar Sep 13 '22 07:09 BenjaminSchaaf