Search Issue Tracker

Fixed in 2020.1.X

Votes

0

Found in

2018.4

2019.4.6f1

2020.1

Issue ID

1268010

Regression

No

[Windows] Turning off VSync in Application.focusChanged causes another callback with focus = true

Windows

-

How to reproduce:
1. Open the user's attached "repro-focus-error.zip" project
2. Open the "SampleScene" Scene
3. Go to File -> Build And Run
4. When the application opens, make sure "Toggle VSync" is checked
5. Click outside the application to make it out of focus

Expected result: "Focused" and "VSync" text disappears and framerate text changes to 20
Actual result: "Focused" and "VSync" text doesn't disappear and framerate text doesn't change to 20 instead stays equal to the monitor's Hz

Reproducible with: 2018.4.26f1, 2019.4.8f1, 2020.1.0a20
Not reproducible with: 2020.1.0a21, 2020.1.3f1, 2020.2.0a20

Notes:
- The issue is not reproducible in the Unity Editor
- The issue is not reproducible on Mac OS
- In 2018.4.26f1, 2020.1.0a1 and above on the reproducible versions instead of the monitor's Hz in the Actual result, a random number is displayed, usually ~5000

  1. Resolution Note (fix version 2020.1):

    Fixed in: 2020.1.0a21

Comments (1)

  1. jasonhodgen

    Aug 14, 2020 08:16

    1. Open the user's attached "repro-focus-error.zip" project
    2. Open the "SampleScene" Scene
    3. Go to File -> Build And Run
    4. When the application opens, make sure "Toggle VSync" is checked
    5. Click outside the application to make it out of focus
    https://run3donline.com/

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.