Backlight-for-XCode icon indicating copy to clipboard operation
Backlight-for-XCode copied to clipboard

NSBezierPath slows down Backlight

Open aliaksandr-andrashuk opened this issue 11 years ago • 7 comments

It seems when we started to use NSBezierPath, we have got some performance issues. To see it you can hold "down" key and when cursor reach the last line hold "up" key and again.

aliaksandr-andrashuk avatar Oct 30 '14 09:10 aliaksandr-andrashuk

Haven't noticed any huge change in performance but I will take a look.

zenangst avatar Oct 30 '14 10:10 zenangst

Same here, fast scrolling is no longer possible at all using the arrow keys. In fact, even right/left scrolling seems to be negatively affected once I enable backlight. Pity, because otherwise it's great.

mickeyl avatar Oct 31 '14 13:10 mickeyl

Yeah I get that now too, I've made a pull request with additional options so that you can decide if you want that kind of drawing or not.

zenangst avatar Oct 31 '14 14:10 zenangst

@zenangst Thanks a lot, this definitely improves things. Unfortunately though, it still seems to kill performance here (MacBookPro Retina 13, so relatlvely powerful computer), which is puzzling me, since it's just drawing a rectangle... hmm, could I profile this somehow to give real data?

mickeyl avatar Oct 31 '14 14:10 mickeyl

To add up on this... it looks like it gets slower on every line change. It starts out relatively ok, but slows down more and more. Update: Outcommenting drawRect does not change anything in performance loss, so it seems I'm hunting at the wrong place.

mickeyl avatar Oct 31 '14 14:10 mickeyl

I'm doing some digging now, seems like the view is redrawing itself all the time. That could potentially be causing the problem, I'll keep you posted.

zenangst avatar Nov 01 '14 12:11 zenangst

Any update on this? Even on my brand new MacPro 2013 (6 cores), backlight makes an already slow Xcode 7 unbearably sluggish while typing and scrolling.

mickeyl avatar Jan 05 '16 11:01 mickeyl