Search Unity

Question Any way to identify what is causing lag?

Discussion in 'Editor & General Support' started by lz7cjc, Jul 15, 2022.

  1. lz7cjc

    lz7cjc

    Joined:
    Sep 10, 2019
    Posts:
    541
    Hi
    I am on V2 of my app (which is smaller in size than v1) but am finding it is very laggy when I load onto a phone.

    Is there any way to identify what is causing the lag?
    thanks

    (I have been trying to use in debug mode but for some reason the phone isn't visible in Editor)
     
  2. TzuriTeshuba

    TzuriTeshuba

    Joined:
    Aug 6, 2019
    Posts:
    185
    I think you would get more help if you provided more info. Lag is a broad term and describes half of issues encounterred. regardless of the specifics, the first place to check would be the Profiler. It seems complicated, but you should get comfortable with it relatively fast. It will tell you how much time/memory is spent on everything for every frame and saves a lot of guess work.
     
  3. lz7cjc

    lz7cjc

    Joined:
    Sep 10, 2019
    Posts:
    541
    sure -it is a google cardboard VR app and to be clear when I move my head to rotate the view, it takes a long time to react making the app impossible to use since I am using reticlepointer to choose things. It is fine in editor. Also I can't get the phone picked up in Editor to view the logs despite building as development