summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2011-06-28 10:39:13 (GMT)
committercon <qtc-committer@nokia.com>2011-06-28 10:39:13 (GMT)
commitb88e225da2cd471e7a3985793f114ee5d142d64e (patch)
tree0566099713613b3ad165e23d8111ecaf304f885e /src/plugins
parent938a66e93a279027b812b386d98a77c46f314294 (diff)
downloadQt-b88e225da2cd471e7a3985793f114ee5d142d64e.zip
Qt-b88e225da2cd471e7a3985793f114ee5d142d64e.tar.gz
Qt-b88e225da2cd471e7a3985793f114ee5d142d64e.tar.bz2
Ensure a small event check interval on uikit platform.
For some reason I sometimes get huge nextTimerEvent() values.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/uikit/quikiteventloop.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/uikit/quikiteventloop.mm b/src/plugins/platforms/uikit/quikiteventloop.mm
index a7c276f..7c3e929 100644
--- a/src/plugins/platforms/uikit/quikiteventloop.mm
+++ b/src/plugins/platforms/uikit/quikiteventloop.mm
@@ -103,7 +103,7 @@
- (void)processEventsAndSchedule
{
QPlatformEventLoopIntegration::processEvents();
- qint64 nextTime = mIntegration->nextTimerEvent();
+ qint64 nextTime = qMin((qint64)33, mIntegration->nextTimerEvent()); // at least 30fps
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSDate *nextDate = [[NSDate date] dateByAddingTimeInterval:((double)nextTime/1000)];
[mIntegration->mTimer setFireDate:nextDate];