在我的游戏引擎中,我可以选择启用多线程渲染。在iOS 12(及更低版本)中,我的应用没有崩溃。
我没有更改代码中的任何内容,但是在iOS 13上崩溃。
2019-10-02 11:36:07.931 SimpleGame[293:11150] ---> (Inner Exception #0) Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: threading violation: expected the main thread
Oct 2 09:57:48 GL04207-MT SimpleGame[923] <Notice>: 0 CoreFoundation 0x00000001aace1c44 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1256516
Oct 2 09:57:48 GL04207-MT SimpleGame[923] <Notice>: 1 libobjc.A.dylib 0x00000001aa9fc0c8 objc_exception_throw + 60
Oct 2 09:57:48 GL04207-MT SimpleGame[923] <Notice>: 2 CoreFoundation 0x00000001aabde75c 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 194396
Oct 2 09:57:48 GL04207-MT SimpleGame[923] <Notice>: 3 Foundation 0x00000001ab01f960 672CF0CB-4951-3B91-89DF-55E953AEA00F + 571744
Oct 2 09:57:48 GL04207-MT SimpleGame[923] <Notice>: 4 FrontBoardServices …Run Code Online (Sandbox Code Playgroud)