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:
parent
2b921374aa
commit
6bf0c568ff
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user