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 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:
    5
    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:
    37,201
    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:
    5
    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:
    5
    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.