英文:
How to hide profiler / FPS counter / HUD when running Flutter app on physical iOS device
问题
我正在从Android Studio在我的iPhone上运行一个Flutter应用程序,屏幕角落有一个FPS计数器/性能分析器视图,我似乎无法去掉它(参见下面的截图)。
当在iOS模拟器或Chrome中运行时,它不会出现。
我已尝试运行"flutter run —release",当然可以去掉调试标语,但不能去掉这个性能分析器。
我不是一个Flutter开发者,我是从尝试加载另一名开发者创建的构建中来到这里的。我安装了Android Studio并按照"flutter doctor"的说明操作,直到我到达这一点。
性能分析器显示FPS、"Pre"、GPU和内存等内容。
我不确定这是否特定于Flutter、Android Studio还是Xcode。
环境:
- Android Studio Electric Eel | 2022.1.1 Patch 2
- Xcode 14.2
- M1 Mac,运行iOS 16的iPhone 12 mini
英文:
I am running a flutter app on my iPhone from Android Studio, and there is this FPS counter / performance profiler view in the corner that I can't seem to get rid of (see screenshot below).
It does not appear when running in the iOS simulator or in Chrome.
I've tried running "flutter run —release" — that gets rid of the debug banner of course, but not this profiler thing.
I'm not a flutter developer—I got here from trying to load a build created by another developer. I installed android studio and followed the "flutter doctor" instructions until I got to this point.
The profiler shows things such as FPS, "Pre", GPU, Mem.
I am not sure if this is specific to Flutter, Android Studio, or Xcode.
Environment:
- Android Studio Electric Eel | 2022.1.1 Patch 2
- Xcode 14.2
- M1 Mac, iPhone 12 mini running iOS 16
答案1
得分: 1
事实证明,这个东西是苹果的 Metal性能HUD,在iOS的 “设置 - 开发者” 菜单中被称为 “图形HUD”。
数月前,我在探索新的iOS 16开发者设置时无意中启用了它。当时HUD并没有出现在我的界面上,因为我当时的项目没有使用Metal。但是,Flutter 使用了Metal。
当我在我的iPhone上运行Flutter应用程序时,我注意到 “metal-HUD” 出现在我的Android Studio控制台上。
苹果开发者视频:了解Metal性能HUD
英文:
Turns out that this thing is Apple's Metal Performance HUD, which is referred to as the "Graphics HUD" in iOS's "Settings -> Developer" menu.
I unwittingly enabled it months ago when exploring the new iOS 16 Developer settings. The HUD did not appear for me at that time because the project I was working on did not use Metal. Flutter does.
This became apparent to me when I observed that "metal-HUD" was appearing in my Android Studio console when running the Flutter app on my iPhone.
Apple Developer video: Discover Metal Performance HUD
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论