Skip to content

Commit

Permalink
Merge pull request #18 from Wallbraker/less-render-blocking
Browse files Browse the repository at this point in the history
Lower the amount of time that the renderer blocks
  • Loading branch information
rpavlik committed Jan 21, 2021
2 parents b2bfbf0 + 93108be commit 9eafa5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changes/conformance/pr.18.gh.OpenXR-CTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Lower the amount of time that the renderer blocks. The CTS is not a highly
optimized application and due to thread scheduling and extra GPU waits 90% CPU
wait makes it fairly tight to fit everything inside of a single display period.
2 changes: 1 addition & 1 deletion src/conformance/conformance_test/test_FrameSubmission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ namespace Conformance
constexpr int warmupFrameCount = 180; // Prewarm the frame loop for this many frames.
constexpr int testFrameCount = 200; // Average this many frames for analysis.
constexpr double waitBlockPercentage = 0.90; // Block for 90% of the display period on waitframe thread.
constexpr double renderBlockPercentage = 0.90; // Block for 90% of the display period on render thread.
constexpr double renderBlockPercentage = 0.70; // Block for 70% of the display period on render thread.

std::queue<XrFrameState> queuedFramesForRender;
std::mutex displayMutex;
Expand Down

0 comments on commit 9eafa5d

Please sign in to comment.