שכבת-על של ביצועים ב-ARCore
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
טכנולוגיית ARCore יכולה להציג חלונית שכבת-על עם נתונים סטטיסטיים של ביצועים של אפליקציות כמו
השימוש במעבד (CPU) ובזיכרון, כדי לספק סקירה כללית בזמן אמת של משאבי המערכת.

יש לפעול לפי השלבים הבאים כדי להפעיל את שכבת-העל של הביצועים.
צריך לפתוח את חוויית ה-AR באפליקציה כדי שיהיה סשן ARCore פעיל
ריצה. האפליקציה חייבת להיות במצב AR כדי לקבל שידור שמאפשר
את שכבת-העל. תמונות התצוגה המקדימה של מצלמת ה-AR צריכות להיות גלויות במכשיר.
מסך.
עליך להשתמש בפקודת השידור הבאה של מנהל הפעילות כדי להפעיל את
שכבת-על של ביצועים לאפליקציה.
# 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
אפשר להפנות אותך לתפריט Settings כדי להעניק את חבילת ARCore
הרשאה לצייר שכבות-על. צריך לבצע את השלב הזה רק פעם אחת. חיפוש
Google Play Services for AR והגדרת את המתג של ההרשאות ל-Allowed
לפני שחוזרים לאפליקציה.
אם הפעלת את שכבת-העל של הביצועים מבלי להעניק ARCore
הרשאה לצייר שכבות-על, תועברו לתפריט ההגדרות בכל
הזמן שבו האפליקציה מתחילה סשן ARCore חדש. במקרה כזה, צריך
להעניק הרשאת ARCore או להשבית את שכבת-העל של הביצועים.
כדי להשבית את שכבת-העל של הביצועים:
צריך לפתוח את חוויית ה-AR באפליקציה כדי שיהיה סשן ARCore פעיל
ריצה. האפליקציה חייבת להיות במצב AR כדי לקבל את השידור שמשבית את השידור
את שכבת-העל. תמונות התצוגה המקדימה של מצלמת ה-AR צריכות להיות גלויות במכשיר.
מסך.
השתמשו בפקודת השידור הבאה של מנהל הפעילות כדי להשבית את
שכבת-על של ביצועים לאפליקציה.
# 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
אפשר גם להשבית את שכבת-העל של הביצועים על ידי הקשה על לחצן הסגירה
בשכבת-העל וניקוי
בהעדפות המשותפות של האפליקציה שלכם ל-Android. דרך אחת לעשות זאת היא לנקות את
.
פירוש ערכי השימוש במעבד (CPU)
בשדה Process CPU Usage מוצג משך זמן המעבד (CPU)
בתהליך האפליקציה משתמש כרגע כאחוז מסך
זמן CPU (מעבד) זמין. הערך הזה כולל עומסי עבודה (workloads) של אפליקציות, עומסי עבודה של ARCore,
וכל ספרייה אחרת שהאפליקציה שלכם משתמשת בה. לדוגמה, השדה יוצג
שימוש ב-25% במעבד אם תהליך האפליקציה מגיע לרוויה מלאה של ליבה אחת של מעבד (CPU)
על מכשיר עם ארבע ליבות.
שכבת-העל של הביצועים מספקת גם פירוט של השימוש במעבד (CPU)
תכונות ARCore. פירוטים אלה מתבטאים גם כאחוז
סך זמן המעבד (CPU) הזמין במכשיר. עומסי העבודה הם:
שכבת-העל אינה מציגה תכונות שהושבתו או שמשתמשות בפחות מ-
0.1% מזמן המעבד (CPU).
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eARCore offers a performance overlay that displays real-time CPU and memory usage statistics for your app during AR experiences.\u003c/p\u003e\n"],["\u003cp\u003eTo enable or disable the overlay, use specific ADB commands while your app is actively running in AR mode.\u003c/p\u003e\n"],["\u003cp\u003eThe overlay requires permission to draw overlays, which can be granted in the device's settings for "Google Play Services for AR".\u003c/p\u003e\n"],["\u003cp\u003eCPU 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.\u003c/p\u003e\n"]]],[],null,["# ARCore performance overlay\n\nARCore can display an overlay panel with an app's performance statistics such as\nCPU and memory usage, providing a real-time overview of system resources.\n\nEnable the performance overlay\n------------------------------\n\nFollow these steps to enable the performance overlay.\n\n1. Open the AR experience in your app so that there is an active ARCore session\n running. **Your app must be in AR mode to receive the broadcast that enables\n the overlay.** The AR camera preview images should be visible on the device\n screen.\n\n2. Use the following activity manager broadcast command to enable the\n performance overlay for your app.\n\n # Enables ARCore's performance overlay and saves a setting to your app's\n # Android Shared Preferences, so that the overlay remains enabled in\n # subsequent ARCore sessions.\n\n # Your app must have an actively running ARCore session to receive the broadcast.\n adb shell am broadcast -a com.google.ar.core.ENABLE_PERFORMANCE_OVERLAY\n\n3. You may be directed to the **Settings** menu to grant the ARCore package\n permission to draw overlays. This step only needs to be performed once. Find\n **Google Play Services for AR** and set the permissions toggle to **Allowed**\n before navigating back to your app.\n\n If you have enabled the performance overlay without granting ARCore\n permission to draw overlays, you will be directed to the Settings menu each\n time the app begins a new ARCore session. In this case, you should either\n grant ARCore permission, or disable the performance overlay.\n\nDisable the performance overlay\n-------------------------------\n\nFollow these steps to disable the performance overlay.\n\n1. Open the AR experience in your app so that there is an active ARCore session\n running. **Your app must be in AR mode to receive the broadcast that disables\n the overlay.** The AR camera preview images should be visible on the device\n screen.\n\n2. Use the following activity manager broadcast command to disable the\n performance overlay for your app.\n\n # Disables ARCore's performance overlay and saves a setting to your app's\n # Android Shared Preferences, so that the overlay remains disabled in\n # subsequent ARCore sessions.\n\n # Your app must have an actively running ARCore session to receive the broadcast.\n adb shell am broadcast -a com.google.ar.core.DISABLE_PERFORMANCE_OVERLAY\n\nYou can also disable the performance overlay by tapping the close button\non the overlay and clearing\nyour app's Android Shared Preferences. One way to do this is to clear your app's\ndata.\n\nInterpreting CPU usage values\n-----------------------------\n\nThe **Process CPU Usage** field displays the amount of CPU time that the\napplication process currently uses as a percentage of the device's total\navailable CPU time. This value includes application workloads, ARCore workloads,\nand any other libraries that your app uses. For example, the field would display\n25% CPU usage if the application process fully saturates a single CPU core when\nrunning on a quad-core device.\n\nThe performance overlay also provides a CPU usage breakdown for individual\nARCore features. These breakdowns are also expressed as a percentage of the\ndevice's total available CPU time. The workloads are:\n\n- [Motion Tracking](/ar/discover/concepts#motion_tracking)\n- [Plane Detection](/ar/discover/concepts#environmental_understanding)\n\nThe overlay does not display any features that are disabled or using less than\n0.1% CPU time."]]