Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Discussion Gfw.WaitForPresentOnGfxThread

Discussion in 'Editor & General Support' started by qiveal, Jan 29, 2023.

  1. qiveal

    qiveal

    Joined:
    Jan 31, 2022
    Posts:
    320
    My game is taking 75% of it's time to render on my mobile phone, causing it to run around 25FPS. What does this function mean and what are some ways to improve it possibly?

    EDIT: I only have 1 light in my scene.
     
  2. chemicalcrux

    chemicalcrux

    Joined:
    Mar 16, 2017
    Posts:
    726
    AFAIK this function waits until a frame gets rendered and displayed. So it's not that the function itself is doing lots of work -- your scene is just taking a long time to render.

    Perhaps your game is rendering at a very high resolution? Phone screens have really high DPIs, so what looks like a small screen can still have more pixels than the average desktop monitor.
     
  3. qiveal

    qiveal

    Joined:
    Jan 31, 2022
    Posts:
    320
    I've heard that before, I've never thought about it. Do mobile games normally render at a different resolution? What may that resolution be?