Search Unity

Bug Vsync isn't used when de-maximizing the game window, until re-enabled

Discussion in 'Editor & General Support' started by aveakrause, Aug 29, 2021.

  1. aveakrause

    aveakrause

    Joined:
    Oct 3, 2018
    Posts:
    70
    Checking the "vsync" option in the display settings in the game window turns vsync on.
    If you then maximize the window, then de-maximize it, even though the vsync option is still checked, it is not in fact being used. Reticking (untick + retick) the option re-enables vsync.

    This is an issue for me because while vsync is off, my GPU hits 100%, but since I stream on Twitch, this noticeably lags my Twitch stream. If I then retick the option, my GPU goes back down to it's standard 60ish% while streaming + deving.

    Expected behavior: Unity always respects the vsync option in the display settings for the game window.
    Actual behavior: Unity forgets the fact that vsync is supposed to be enabled after de-maximizing the game window.

    I've seen this issue in many different versions. This project is 2020.3.2f1, the other project I work in all the time has the same issue using 2020.3.12f1.