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
Comments (1)
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
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)