-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate enabling Metal on iOS simulators above version 13.0. #52358
Comments
From what I can tell it requires Catalina |
Attempting to query the device on the simulator and laptop reveals "Apple iOS simulator GPU" vs "AMD Radeon Pro 460". There may still be some form of passthrough. I am not sure about the performance. Will tackle this after Metal on iOS devices is done for now. |
Seems possible according to guidance in https://developer.apple.com/documentation/metal/developing_metal_apps_that_run_in_simulator?language=objc. |
Yes, and from that doc:
|
Yeah. I saw that. Its pretty exciting. Though, to be honest, most of the work necessary to support this will be in Skia. I'm setting up a call with some Skia folks to discuss unrelated Metal stuff next week. Will bring this up to see how much of an effort this will be. |
Support for Metal in the simulators should be enabled in Skia after https://skia-review.googlesource.com/c/skia/+/282270. I'll gather guidance form the Skia folks of how this will be maintained moving forward. But excitingly, it did not seem very involved. Flutter engine should now be able to switch to Metal in |
From my testing, the impact on simulator performance seems to be huge. Also, when using metal, plugins like |
Sounds good. I have submitted the Skia patch blocking your draft PR. Let's land this thing and make the switch. |
any news about this? I'm not sure why Flutter apps are running ok on iOS simulators without notch (iPhone 7/8/SE), after I try the app iPhone XR/11/11 Pro Max the animations/transitions look slow than normal. (native apps on Simulator run fine). |
This has landed in the engine and should be available in the SDK soon. We can leave this open until it rolls in. |
Available in SDK as of #67705 |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Metal is supported on iOS simulator versions above that level. However, it is not clear if the support is added via host passthrough or emulation. OpenGL emulation was found to be slower than just using the Skia software renderer directly. The same restrictions may apply to Metal as well if it is emulated on simulators. OTOH, if its just host passthrough, Metal on emulators should be a nice bump in rendering performance.
The text was updated successfully, but these errors were encountered: