Description

Running r.AllowOcclusionQueries 0 command seems to set bWait = true, causing large wait times

 

Tested: 4.22.3 CL#7053642 ,   4.24P4 CL#10387632 , 4.25 CL#10479005

 

Link to the users video, which explains the issue better:

[Link Removed]

Link to user's answerhub post:

https://answers.unrealengine.com/questions/557636/view.html

 

Steps to Reproduce
  1. Create a C++ First Person template project with attached VR headset
  2. Select VR Preview to play in VR 
  3. Press play 
  4. From the command line, execute "r.AllowOcclusionQueries 0" followed by "Stat StarFile" 
  5. wait ~5 seconds 
  6. Execute "Stat StopFIle" command
  7. Open up a Session Frontend developer window
  8. Open the "Profiler" tab
  9. Load the file created after running the "stat command" 
  10. Navigate to RenderThread>FDrawSceneCommand>RenderViewFamily>PostInitViews FlushDel>Delete Resources> RenderQuery Result
  11. Run steps 4-10 with "r.AllowOcclusionQueries 1" (issue does not occur when using 1)

Result: AllowOcclussionQueries 0 causes huge wait time

Expected: AllowOcclussionQueries 0 command to set bWait = false and there to be no huge wait time

 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-85356 in the post.

19
Login to Vote

Won't Fix
ComponentUE - Graphics Features
Affects Versions4.23.14.244.22.34.25
CreatedDec 3, 2019
ResolvedAug 27, 2021
UpdatedAug 27, 2021