Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. 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.

Bug VSync will not turn off in build

Discussion in 'Editor & General Support' started by stets43, Aug 26, 2023.

  1. stets43

    stets43

    Joined:
    Dec 13, 2022
    Posts:
    7
    Vsync is causing very bad performance issues in my build. I have it turned off in the player settings as well as via script with QualitySettings.vSyncCount = 0. It works fine in the editor, but in my build, it fails to turn off. This is a Mac intel 64bit + Silicon Mono build. Thank you!
     
    Last edited: Aug 26, 2023
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    39,571
    This doesn't seem likely.

    Have you actually profiled the running game (in build) and determined this??

    Can you describe the symptoms you see and why you think Vsync is at fault?
     
    CodeSmile likes this.
  3. stets43

    stets43

    Joined:
    Dec 13, 2022
    Posts:
    7
    The profiler bugs out on the mac build. I can duplicate the performance issue on the editor by enabling vSync. Even without Application.targetFrameRate being set, the build does not push past 60 fps. Around January this year, this was not the case. It would push to the highest framerate. I am very worried Apple is making a move to lock down vSync, similar to mobile and I'm the first to notice.
     
  4. stets43

    stets43

    Joined:
    Dec 13, 2022
    Posts:
    7
    Honestly still not 100% sure it's vSync. The core of the issue is that it feels as though there is an input buffer when multiple keys are pressed. I really can't get to the bottom of this.