mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-05 22:20:32 +02:00
Qt5: reduce CPU usage on Mac cocoa 64bit.
git-svn-id: trunk@60526 -
This commit is contained in:
parent
aabe1d2294
commit
bf7fb97f97
@ -257,7 +257,7 @@ begin
|
||||
if (StyleName = 'gtk') or (StyleName = 'gtk+') then
|
||||
QTimer_setInterval(ATimer, 1) {issue #31191}
|
||||
else
|
||||
QTimer_setInterval(ATimer, {$IFDEF QtCocoa}1{$ELSE} 0 {$ENDIF});
|
||||
QTimer_setInterval(ATimer, {$IFDEF QtCocoa}5{$ELSE} 0 {$ENDIF});
|
||||
QTimer_start(ATimer);
|
||||
FMainTimerID := QTimer_timerId(ATimer);
|
||||
QApplication_exec();
|
||||
|
Loading…
Reference in New Issue
Block a user