diff --git a/Mini vMac/AppDelegate.m b/Mini vMac/AppDelegate.m index 472981f..7500d5c 100644 --- a/Mini vMac/AppDelegate.m +++ b/Mini vMac/AppDelegate.m @@ -32,7 +32,7 @@ static AppDelegate *sharedAppDelegate = nil; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { sharedAppDelegate = self; - [self performSelector:@selector(runEmulator) withObject:nil afterDelay:1.0]; + [self performSelector:@selector(runEmulator) withObject:nil afterDelay:0.1]; return YES; } diff --git a/Mini vMac/MYOSGLUE.m b/Mini vMac/MYOSGLUE.m index b902e97..6a7b5f2 100644 --- a/Mini vMac/MYOSGLUE.m +++ b/Mini vMac/MYOSGLUE.m @@ -1677,9 +1677,10 @@ GLOBALFUNC blnr ExtraTimeNotOver(void) { GLOBALPROC WaitForNextTick(void) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - NSDate *nextTickDate = [NSDate dateWithTimeIntervalSinceNow:1 / 60.0]; -label_retry: - [[NSRunLoop mainRunLoop] runUntilDate:nextTickDate]; + NSRunLoop *mainRunLoop = [NSRunLoop mainRunLoop]; + while (ExtraTimeNotOver()) { + [mainRunLoop runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceReferenceDate:NextTickChangeTime]]; + } CheckForSavedTasks();