# ARKit/Scenekit app slow on iPhone X and iOS 12

**URL:** <https://forums.kodeco.com/t/arkit-scenekit-app-slow-on-iphone-x-and-ios-12/60925>\
**Category:** iOS\
**Created:** [January 29, 2019, 5:01pm UTC](https://forums.kodeco.com/t/arkit-scenekit-app-slow-on-iphone-x-and-ios-12/60925 "2019-01-29T17:01:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![efthemiosprime](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/efthemiosprime/32/81494_2.png) [@efthemiosprime](https://forums.kodeco.com/u/efthemiosprime)\
**Post date:** [January 29, 2019, 5:01pm UTC](https://forums.kodeco.com/t/arkit-scenekit-app-slow-on-iphone-x-and-ios-12/60925/1 "2019-01-29T17:01:22Z")

</div>

For some reason my app experience begin lagging with iPhone X and iOS 12. and become more slower overtime with the gestures panning… etc. However, if i momentary exit out of the app and go back, all of sudden works fine again. I don’t get this on older device such as iPhone 8, 7 and +. I also check memory leaks and nothing. Can you guys point me to the right direction on how I can fix this? Thanks.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [February 6, 2019, 4:50am UTC](https://forums.kodeco.com/t/arkit-scenekit-app-slow-on-iphone-x-and-ios-12/60925/2 "2019-02-06T04:50:54Z")

</div>

@efthemiosprime Do you still have issues with this?

---

<div class="post-metadata">

**Author:** ![efthemiosprime](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/efthemiosprime/32/81494_2.png) [@efthemiosprime](https://forums.kodeco.com/u/efthemiosprime)\
**Post date:** [February 7, 2019, 7:58pm UTC](https://forums.kodeco.com/t/arkit-scenekit-app-slow-on-iphone-x-and-ios-12/60925/3 "2019-02-07T19:58:16Z")

</div>

> [@efthemiosprime](#):
>
> older

So, I was able to fixed it. But I’m not sure what’s cause it. What I was doing is i’m loading different .scn or scene. What I did is while i’m loading a scene, i set the sceneView to hidden. Then when it’s loaded i put a little delay before i show it.

```
  sceneView.isHidden = true
  DispatchQueue.global(qos: .background).async {
    guard let scene = SCNScene(named: "Models.scnassets/Steps/\(step).scn") else { fatalError("load: failed to load step scene") }
    DispatchQueue.main.async {
      self.sceneView.scene = scene

      DispatchQueue.main.asyncAfter(deadline: .now() + 1.0, execute: {
        self.sceneView.isHidden = false
        completion?()

      })
    }
  }

```

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [February 7, 2019, 8:05pm UTC](https://forums.kodeco.com/t/arkit-scenekit-app-slow-on-iphone-x-and-ios-12/60925/4 "2019-02-07T20:05:34Z")

</div>

@efthemiosprime Thank you for sharing your solution - much appreciated!

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [July 15, 2019, 9:01am UTC](https://forums.kodeco.com/t/arkit-scenekit-app-slow-on-iphone-x-and-ios-12/60925/5 "2019-07-15T09:01:26Z")

</div>

Closed on July 15, 2019, 9:01am UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
