There is no fixed rate. Information is interrupted due to hardware and is processed by the OS. If you are writing an application that simply records touchsMoved events, you can feel it - it is very fast.
, angular, , . , : , .
, , :
( -. , .)
static NSDate *touchReportDate = nil;
static touchMovedCount = 0;
- (void) logTouches
{
NSDate *saveDate = touchReportDate;
int saveCount = touchMovedCount;
touchReportDate = nil;
touchMovedCount = 0;
NSTimeInterval secs = -[saveDate timeIntervalSinceNow];
[saveDate release];
NSLog (@"%d touches in %0.2f seconds (%0.2f t/s)", saveCount, secs, (saveCount / secs));
}
- (void) touchesMoved: (NSSet *touches withEvent: (UIEvent*) event
{
if (touchReportDate == nil)
touchReportDate = [[NSDate date] retain];
if ([touchReportDate timeIntervalSinceNow] < -1)
{
[self logTouches]
}
}
- (void) touchesEnded: (NSSet *touches) withEvent: (UIEvent*) event
{
[self logTouches];
}
- (void) touchesCancelled: (NSSet *touches) withEvent: (UIEvent*) event
{
[self touchesEnded: touches withEvent: event];
}