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
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
-
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- [Linux] AutoLocale log is logged when opening a project
Resolution Note (fix version 2020.1):
Fixed in: 2020.1.0a21