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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Discussion Gfw.WaitForPresentOnGfxThread

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

  1. qiveal

    qiveal

    Joined:
    Jan 31, 2022
    Posts:
    298
    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:
    650
    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:
    298
    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?