Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug World tracking performance is being affected by resource constraints

Discussion in 'AR' started by silentslack, Jun 13, 2022.

  1. silentslack

    silentslack

    Joined:
    Apr 5, 2013
    Posts:
    391
    Hi,

    I have a bare basic ARFoundation Face Tracking scene that has been working fine in the past. However, since updating to the latest ARKit and ARFoundation (re-building after a year away from the project) and running on iPhone 12 Pro I seem to get a memory leak which will result in a crash after about 1minute of usage.

    Unity: Tested both 2020.3.33 & 2021.3.4 latest on LTS
    ARFoundation: 4.2.3
    ARKit: 4.2.3
    ARFaceTracking: 4.2.3

    Error:
    ARWorldTrackingTechnique <0x104e315b0>: World tracking performance is being affected by resource constraints [13]
    Is repeated logged.

    Followed by:
    WARNING -> applicationDidReceiveMemoryWarning()

    Then crashes.
     
  2. silentslack

    silentslack

    Joined:
    Apr 5, 2013
    Posts:
    391
    After some further testing seems to be fine - looks like it was caused by a wireframe system I was using that was creating a new mesh every update. I still get the ARWorldTrackingTechnique <0x104e315b0>: World tracking performance is being affected by resource constraints [13] log but does not seem to crash and memory footprint looks ok.

    Thanks.