Search Issue Tracker

Fixed

Fixed in 2020.3.38f1, 2021.3.7f1, 2022.1.9f1, 2022.2.0b3, 2023.1.0a2

Votes

1

Found in

2020.3.23f1

2020.3.34f1

2021.3.3f1

2022.1.1f1

2022.2.0a14

2023.1.0a1

Issue ID

UUM-5547

Regression

Yes

[Mac][Metal] Player freezes when VSync is turned on with Button OnClick() event

--

-

How to reproduce:
1. Open the attached “Vsync.zip” project
2. Open the “SampleScene” Scene
3. Build And Run
4. In the Player click the gameObject “Button” (repeat 3 times if nothing happens after the first click)

Expected result: VSync turns on
Actual result: Player freezes

Reproducible with: 2020.3.23f1, 2020.3.34f1, 2021.3.3f1, 2022.1.1f1, 2022.2.0a14
Not reproducible with: 2019.4.39f1, 2020.3.22f1

Reproducible on: macOS 12.2.1 (Intel), macOS 12.4 Beta (M1)
Not reproducible on: Windows 10, Windows 11

Note: Player does not freeze if built with OpenGL 4.1 instead of Metal

  1. Resolution Note (fix version 2023.1.0a2):

    Switching vsync mode while in the player could sometimes cause a freeze due to the vsync status not syncing correctly before waiting on the frame present - this has been fixed.

  2. Resolution Note (fix version 2022.2.0b3):

    Switching vsync mode while in the player could sometimes cause a freeze due to the vsync status not syncing correctly before waiting on the frame present - this has been fixed.

  3. Resolution Note (fix version 2022.1.9f1):

    Switching vsync mode while in the player could sometimes cause a freeze due to the vsync status not syncing correctly before waiting on the frame present - this has been fixed.

  4. Resolution Note (fix version 2021.3.7f1):

    Switching vsync mode while in the player could sometimes cause a freeze due to the vsync status not syncing correctly before waiting on the frame present - this has been fixed.

  5. Resolution Note (fix version 2020.3.38f1):

    Switching vsync mode while in the player could sometimes cause a freeze due to the vsync status not syncing correctly before waiting on the frame present - this has been fixed.

Comments (3)

  1. jeannette_yu

    Aug 08, 2022 02:21

    Sorry, the listed fix version was incorrect. This bug has been confirmed fixed in editor 2020.3.38f1.

  2. BasicallyGames

    Aug 06, 2022 23:23

    This issue was not fixed in 2020.3.37. My game still crashes when changing Vsync on MacOS with Metal.

  3. BasicallyGames

    Jun 27, 2022 01:02

    This bug is preventing me from releasing the latest version of my game on MacOS. I'm using Unity 2020 LTS. Really hoping it doesn't take much longer to bring the fix to LTS versions.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.