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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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)