Backlight-for-XCode
Backlight-for-XCode copied to clipboard
NSBezierPath slows down Backlight
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.
Haven't noticed any huge change in performance but I will take a look.
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.
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 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?
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.
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.
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.