Stay organized with collections Save and categorize content based on your preferences.
ARCore can display an overlay panel with an app’s performance statistics such as CPU and memory usage, providing a real-time overview of system resources.
Enable the performance overlayFollow these steps to enable the performance overlay.
Open the AR experience in your app so that there is an active ARCore session running. Your app must be in AR mode to receive the broadcast that enables the overlay. The AR camera preview images should be visible on the device screen.
Use the following activity manager broadcast command to enable the performance overlay for your app.
# Enables ARCore's performance overlay and saves a setting to your app's
# Android Shared Preferences, so that the overlay remains enabled in
# subsequent ARCore sessions.
# Your app must have an actively running ARCore session to receive the broadcast.
adb shell am broadcast -a com.google.ar.core.ENABLE_PERFORMANCE_OVERLAY
You may be directed to the Settings menu to grant the ARCore package permission to draw overlays. This step only needs to be performed once. Find Google Play Services for AR and set the permissions toggle to Allowed before navigating back to your app.
If you have enabled the performance overlay without granting ARCore permission to draw overlays, you will be directed to the Settings menu each time the app begins a new ARCore session. In this case, you should either grant ARCore permission, or disable the performance overlay.
Follow these steps to disable the performance overlay.
Open the AR experience in your app so that there is an active ARCore session running. Your app must be in AR mode to receive the broadcast that disables the overlay. The AR camera preview images should be visible on the device screen.
Use the following activity manager broadcast command to disable the performance overlay for your app.
# Disables ARCore's performance overlay and saves a setting to your app's
# Android Shared Preferences, so that the overlay remains disabled in
# subsequent ARCore sessions.
# Your app must have an actively running ARCore session to receive the broadcast.
adb shell am broadcast -a com.google.ar.core.DISABLE_PERFORMANCE_OVERLAY
You can also disable the performance overlay by tapping the close button on the overlay and clearing your app’s Android Shared Preferences. One way to do this is to clear your app’s data.
Interpreting CPU usage valuesThe Process CPU Usage field displays the amount of CPU time that the application process currently uses as a percentage of the device’s total available CPU time. This value includes application workloads, ARCore workloads, and any other libraries that your app uses. For example, the field would display 25% CPU usage if the application process fully saturates a single CPU core when running on a quad-core device.
The performance overlay also provides a CPU usage breakdown for individual ARCore features. These breakdowns are also expressed as a percentage of the device’s total available CPU time. The workloads are:
The overlay does not display any features that are disabled or using less than 0.1% CPU time.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["ARCore offers a performance overlay that displays real-time CPU and memory usage statistics for your app during AR experiences."],["To enable or disable the overlay, use specific ADB commands while your app is actively running in AR mode."],["The overlay requires permission to draw overlays, which can be granted in the device's settings for \"Google Play Services for AR\"."],["CPU usage is shown as a percentage of total device CPU, including both app and ARCore processes, and further broken down by specific ARCore features like motion tracking and plane detection."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4