From 8eb5a276bc0e449b87ca00e92a54855d1b6659ba Mon Sep 17 00:00:00 2001 From: dmitry Date: Sat, 14 Jul 2018 04:45:18 +0000 Subject: [PATCH] cocoa: breaking forceful Window update to cause invalidation instead of the immediate redrawing. The forceful redrawing is exteremely slow in Cocoa. This potentially might introdcue some bugs, though helps to imrove the performance dramatically (in places where UpdateWindow() is heavly (ob)used) git-svn-id: trunk@58515 - --- lcl/interfaces/cocoa/cocoaprivate.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lcl/interfaces/cocoa/cocoaprivate.pp b/lcl/interfaces/cocoa/cocoaprivate.pp index 6826a6ae8f..23daffd087 100644 --- a/lcl/interfaces/cocoa/cocoaprivate.pp +++ b/lcl/interfaces/cocoa/cocoaprivate.pp @@ -830,7 +830,8 @@ end; procedure LCLViewExtension.lclUpdate; begin - display; + setNeedsDisplay_(true); + //display; end; procedure LCLViewExtension.lclRelativePos(var Left, Top: Integer);