1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 06:43:24 +03:00

GH-666 Use parallel computation when DEBUG is set

This commit is contained in:
Tae Won Ha 2018-09-02 17:30:29 +02:00
parent 2b921374aa
commit 6bf0c568ff

View File

@ -35,8 +35,12 @@ extension NvimView {
context.setTextDrawingMode(.fill);
let dirtyRects = self.rectsBeingDrawn()
#if DEBUG
self.drawByParallelComputation(contentIn: dirtyRects, in: context)
#else
self.draw(contentIn: dirtyRects, in: context)
// self.drawByParallelComputation(contentIn: dirtyRects, in: context)
#endif
}
private func drawByParallelComputation(contentIn dirtyRects: [CGRect], `in` context: CGContext) {