作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
升级flutter后,iOS模拟器的性能变得如此糟糕。例如,启动速度慢,显示键盘速度慢。
我跑 flutter 医生。这是我的结果。
$ flutter doctor -v
[✓] Flutter (Channel master, v1.9.8-pre.35, on Mac OS X 10.14.6 18G87, locale ja-JP)
• Flutter version 1.9.8-pre.35 at /Users/rafekun/Developer/flutter
• Framework revision 1363528eee (4 days ago), 2019-08-31 05:26:41 -0400
• Engine revision cd858489cc
• Dart version 2.5.0 (build 2.5.0-dev.4.0 36985859e4)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
• Android SDK at /Users/rafekun/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.3, Build version 10G8
• CocoaPods version 1.7.5
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 38.2.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] VS Code (version 1.37.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.3.0
[✓] Connected device (1 available)
• iPhone Xʀ • B3C345C3-5AB0-4627-B854-2C90016A3B69 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-12-4 (simulator)
• No issues found!
最佳答案
如果您在特定(较新)设备上遇到缓慢、低 FPS、滚动延迟在 Xcode 模拟器中 这是因为 Apple 放弃了对 OpenGL 的支持,而 Flutter SDK 不支持新的 Metal API 在模拟器中 .
但是官方的稳定支持很快就会提供,直到如果你需要 60 FPS,在终端运行这个切换到 Flutter SDK 的主 channel 并重建你的应用程序:
flutter channel master
来源:
关于运行 flutter 升级后iOS模拟器性能不佳,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57780485/
我是一名优秀的程序员,十分优秀!