Search Issue Tracker
By Design
Votes
0
Found in
2021.3.39f1
2022.3.32f1
6000.0.5f1
Issue ID
UUM-73805
Regression
No
WaitForEndOfFrame does not work when the Game view is not visible
Reproduction steps:
1. Open the attached "Report_Sceneview" project
2. Open the “Assets/Scenes/SampleScene” scene
3. Enter the Play mode
4. Observe the Console logs
5. Switch to the Scene view
6. Observe the Console logs
Expected Result: “start TestRoutine” and “end TestRoutine” are thrown in the Console when the Game view is visible and not visible
Actual Result: “start TestRoutine” and “end TestRoutine” are thrown only when the Game view is visible, and only “start TestRoutine” is thrown when the Game view is not visible
Reproducible with: 2021.3.39f1, 2022.3.32f1, 6000.0.5f1
Reproducible on: Windows 11 Pro
Not reproducible on: No other environments tested
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
- Shadow cascades and lights flicker when using Shadowmap Sampling
- Frame Debugger is not disabled when switching Scenes if the Frame Debugger window is not open during the transition
- Standalone Profiler Targets another Project if a Standalone Profiler was launched in it before when switching between Edit or Play Mode Targets
- Crash on ForwardRenderLoopJob when opening a specific project
- [Android] Memory leak and eventual crash on Snapdragon 8 Gen 1+ devices when a Clear Pass is executed after Framebuffer Fetch
Resolution Note:
This is actually as designed and documented in https://docs.unity3d.com/ScriptReference/WaitForEndOfFrame.html:
WaitForEndOfFrame is tightly related to game rendering and so, if the gameview is not active, or if the editor is executed in batch mode - and thus the game itself is not rendering - the end of frame event is not raised.