Search Issue Tracker
Duplicate
Votes
0
Found in
2017.3.0f3
Issue ID
996509
Regression
No
Window focus is regained when setting QualitySettings.vSyncCount
Reproduction steps:
1. Download project "FocusListener.zip" and open in Unity
2. File -> Build Settings
3. Select Standalone and "Build and Run"
4. Switch focus on another window
Expected: Application.isFocused and hasFocus (OnApplicationFocus) should be set to false if the focus is not on Unity
Actual: both properties are almost always true (sometimes briefly turns to false)
Reproduced on: 5.6.5p1; 2017.1.3p1; 2017.2.1p3; 2017.3.1f1; 2018.1.0b6; 2018.2.0a1
Note: this triggers the issue - QualitySettings.vSyncCount = hasFocus ? 1 : 0
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
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
Burglecut_0001
Mar 08, 2018 00:48
I'm getting bit by this bug. It's marked "duplicate", so I can't vote for it. But I'm unable to find the duplicate bug so I can vote for that one.
This makes it so I can't lower the frame rate when the application loses focus. If I set vsyncCount = 0 in order to set the targetFrameRate, the application erroneously gains focus again.
My users' tired CPUs and computer fans hope that this will get resolved soon. Thanks.
(Also reproduced on Windows Standalone 2017.3.1.p3)