Post

Replies

Boosts

Views

Activity

Reply to CAMetalLayer nextDrawable delay with Control Center
I encountered the same issue when using Metal framework (Xcode 13.3) to render a scrollable view on iPad Pro 11 with M1 chip (iPadOS 15.4). MTKView works well with 120fps when I open the app and interact with it. However, opening the control center (or the notification center) and then closing it, the frame rate often drops to 80Hz. the demo project - https://github.com/Yang-Xijie/ScrollablePencilMTKView Does anyone has some great solutions? Stoping the MTKView rendering and opening later by setting isPaused in SceneDelegate might be one workaround (Genshin Impact uses this). func sceneWillResignActive(_ scene: UIScene) { mainVC.documentVC?.renderView.isPaused = true } func sceneDidBecomeActive(_ scene: UIScene) { mainVC.documentVC?.renderView.isPaused = false } Or some tricky methods that never stop rendering? Notability will still render its pages when user interacts with control center. I do wonder how this is achieved...
Apr ’22