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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
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)