mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 17:39:18 +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
|
if (StyleName = 'gtk') or (StyleName = 'gtk+') then
|
||||||
QTimer_setInterval(ATimer, 1) {issue #31191}
|
QTimer_setInterval(ATimer, 1) {issue #31191}
|
||||||
else
|
else
|
||||||
QTimer_setInterval(ATimer, {$IFDEF QtCocoa}1{$ELSE} 0 {$ENDIF});
|
QTimer_setInterval(ATimer, {$IFDEF QtCocoa}5{$ELSE} 0 {$ENDIF});
|
||||||
QTimer_start(ATimer);
|
QTimer_start(ATimer);
|
||||||
FMainTimerID := QTimer_timerId(ATimer);
|
FMainTimerID := QTimer_timerId(ATimer);
|
||||||
QApplication_exec();
|
QApplication_exec();
|
||||||
|
Loading…
Reference in New Issue
Block a user