性能考虑因素
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
ARCore 的运动跟踪依赖于来自摄像头的视觉信息以及来自设备惯性测量单元 (IMU) 的惯性测量结果。我们建议您遵循以下准则,帮助确保您的应用为 ARCore 提供最佳条件,以便继续跟踪和检测环境中的功能。
尽可能提供最佳的用户体验
借助 AR,您可以为用户打造独特、愉悦的体验。不过,如果用户不确定如何操作,或者不确定除了摄像头直通图像外,还应看到什么,用户可能会感到失望。
您可以通过确保应用满足以下要求,提供尽可能最佳的用户体验:
- 为用户提供明确的反馈
- 鼓励他们移动设备
- 展示如何与设备互动以体验 AR
如需查看更完整的设计建议列表,请参阅我们的增强现实设计准则。
这些指南以基础研究为基础,提供了数据洞见和建议,可帮助您为用户设计更好的 AR 体验。
鼓励用户缓慢移动摄像头
ARCore 需要来自摄像头的视觉信息来建立环境理解。设备快速移动可能会导致摄像头图像变得模糊,从而降低 ARCore 跟踪和检测特征的能力。
在短暂的运动过程中,ARCore 依赖 IMU 数据来估计设备姿势。移动停止后,视觉跟踪会恢复。
避免长时间的快速移动,这可能会导致 ARCore 无法追踪并阻止特征检测。
有效利用锚点
查看使用锚点,以更好地了解锚点的工作原理、如何在您的应用中有效地使用锚点,以及其他用户体验和设计注意事项。
避免使用触感反馈
由于设备振动可能会暂时干扰 ARCore 准确估测设备姿势的功能,因此请避免向用户提供触感反馈(例如,通过使用设备的振动器)。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eARCore utilizes visual and inertial data for motion tracking, requiring clear camera visuals and controlled device movement for optimal performance.\u003c/p\u003e\n"],["\u003cp\u003eUsers need clear instructions and feedback within AR apps to understand interactions and enhance their experience.\u003c/p\u003e\n"],["\u003cp\u003eSlow, deliberate camera movement allows ARCore to build environmental understanding and maintain accurate tracking by avoiding blurry visuals.\u003c/p\u003e\n"],["\u003cp\u003eAnchors play a crucial role in AR experiences, and developers should understand their function and best practices for implementation.\u003c/p\u003e\n"],["\u003cp\u003eHaptic feedback should be avoided in AR apps as it can disrupt ARCore's pose estimation and negatively impact tracking accuracy.\u003c/p\u003e\n"]]],[],null,["# Performance considerations\n\nARCore's [Motion tracking](/ar/discover/concepts#motion_tracking) relies on both\nvisual information from the camera and inertial measurements from the device's\ninertial measurement unit (IMU). We recommend following the following guidelines\nto help ensure that your app provides optimal conditions for ARCore to maintain\ntracking and detect features in the environment.\n\nProvide the best possible user experience\n-----------------------------------------\n\nWith AR it's possible to create unique and delightful experiences for your\nusers. However, users can become frustrated when they're either not sure\nabout how to proceed or what they should be seeing in addition to the camera\npassthrough image.\n\nYou can provide the best possible user experience by ensuring that your app:\n\n- Provides clear feedback to users\n- Encourages them to move their device\n- Shows them how to interact with their device to experience AR\n\nFor a more complete list of design recommendations, review our\n[Augmented Reality Design Guidelines](/ar/design).\n\nThese guidelines are informed by foundational research and offer insights and\nideas that can help you design better AR experiences for your users.\n\nEncourage users to move the camera slowly\n-----------------------------------------\n\nARCore requires visual information from the camera to build an\n[environmental understanding](/ar/discover/concepts#environmental_understanding).\nRapid device movement can cause the camera image to become blurry, reducing\nARCore's ability to track and detect features.\n\nDuring brief periods of movement, ARCore relies on IMU data to estimate the device\npose. When movement stops, visual tracking resumes.\n\nAvoid extended periods of rapid movement, which can cause ARCore to lose tracking\nand prevent detection of features.\n\nMake effective use of anchors\n-----------------------------\n\nReview [Working with Anchors](/ar/develop/anchors) to get a\nbetter understanding of how anchors work, how to use them effectively in your\napp, as well as other UX and design considerations.\n\nAvoid using haptic feedback\n---------------------------\n\nBecause device vibrations can temporarily interfere with ARCore's ability to\naccurately estimate the device's pose, avoid providing haptic feedback to the\nuser---for example, by using the device's vibrator."]]