restore multithreading on iOS and use DisplayLink to decouple rendering from the main loop

This commit is contained in:
2019-03-01 15:16:05 +01:00
parent 8cd02787b3
commit 27f4cb3ba8
4 changed files with 69 additions and 81 deletions

View File

@@ -21,6 +21,7 @@
>
{
@public GameView* glview;
@public CADisplayLink *displayLink;
}
- (void)display_file:(std::string)filename;
- (void)reset_touch;
@@ -32,4 +33,6 @@
- (void)unregisterForKeyboardNotifications;
- (void)crash;
- (void)share_file:(NSString*)file_path;
- (void)tick;
- (void)render_loop;
@end