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
- Render Graph Execution errors when using GPU occlusion culling with 'Opaque Objects' frame setting disabled on a Camera
- Animator window: “Delete” menu item not greyed out for Base Layer context menu
- Resetting “PC_RP Asset (Universal Render Pipeline Asset)” causes Game view to become black and throws Renderer and NullReference errors in the Console window
- [Mobile] Player Crash on scripting_invoke_profiler_begin when the built Player Scene has an empty UIDocument and is built on IL2CPP
- Unnecessary Warnings are logged when running Player with -batchmode -nographics
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)