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
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
- Text render issues and various exceptions in TextCore when using TextSettings option "Match Material Presets"
- NullReferenceException error is thrown when unpacking multiple instances of the same UI Document
- URP Decal Projectors don't render when they are hidden in the Hierarchy, unlike other GameObjects
- Reflection Probe “adjusting number of stops to over or under expose the texture” setting does not update in Scene realtime
- UI Toolkit rendered text breaks when toggling FontWeight styles through code
Resolution Note (fix version 2020.1):
Fixed in: 2020.1.0a21