Skip to content

Commit

Permalink
Fix DFR issues with DX12.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbucchia committed Sep 21, 2022
1 parent 4689e28 commit bd82613
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion XR_APILAYER_NOVENDOR_toolkit/d3d12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,9 @@ namespace {
// OpenXR will not allow more than 2 frames in-flight, so 2 would be sufficient, however we might split the
// processing in two due to text rendering, so multiply this number by 2. Oh and also we have the app GPU
// timer, so multiply again by 2.
static constexpr size_t NumInflightContexts = 8;
// We also perform eye tracked foveated rendering mask update in this context, which is dependent on the number
// of passes rendered by the app and the number of masks being used per frame. We chose 24 as a wide default.
static constexpr size_t NumInflightContexts = 8 + 24;

public:
D3D12Device(ID3D12Device* device,
Expand Down

0 comments on commit bd82613

Please sign in to comment.