Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Unity's UI is not responsive enough.

Discussion in 'UGUI & TextMesh Pro' started by mfatihbarut, Aug 1, 2022.

  1. mfatihbarut

    mfatihbarut

    Joined:
    Apr 11, 2018
    Posts:
    1,058
    Hi,
    In my case Unity's UI is not responsive enough.
    May the code below cause it?
    in Update method I use this

    if (Input.touchCount > 0) { OnDemandRendering.renderFrameInterval = 1; }
    else
    {
    OnDemandRendering.renderFrameInterval = 5;
    }

    because I use this
    Application.targetFrameRate = 150;
    OnDemandRendering.renderFrameInterval = 5;
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    You could tell us, is the code you shared causing this? If you change the values or remove the code, do you still see the issue? And please be specific, what do you mean by "responsive enough".
     
  3. mfatihbarut

    mfatihbarut

    Joined:
    Apr 11, 2018
    Posts:
    1,058
    I can share my game after google play approves it, you can see it by yourself.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Sorry I don't follow. You typically don't want to publish your game until it's working as you want. And I can't see by myself because I can't change the code and try different values, as I suggested. Have you confirmed that the code you shared is causing the issue yourself by removing it and/or changing the values? Ideally BEFORE you publish!