Increase the max time in the iOS run loop from DBL_EPSILON to one millisecond to address issue where the virtual keyboard is sluggish. (#4580)
Signed-off-by: bosnichd <bosnichd@amazon.com>
This commit is contained in:
@@ -112,9 +112,10 @@ namespace AzFramework
|
||||
void ApplicationIos::PumpSystemEventLoopUntilEmpty()
|
||||
{
|
||||
SInt32 result;
|
||||
const CFTimeInterval MaxSecondsInRunLoop = 0.001; // One millisecond
|
||||
do
|
||||
{
|
||||
result = CFRunLoopRunInMode(kCFRunLoopDefaultMode, DBL_EPSILON, TRUE);
|
||||
result = CFRunLoopRunInMode(kCFRunLoopDefaultMode, MaxSecondsInRunLoop, TRUE);
|
||||
}
|
||||
while (result == kCFRunLoopRunHandledSource);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user