Skip to content

Commit

Permalink
Decrease the max block size to decrease CS thread latency, allowing t…
Browse files Browse the repository at this point in the history
…he dxvk-cs thread to execute work sooner, without idle bubbles. This ultimately allows InjectRTX to happen sooner in the frame, and thus improves FPS.
  • Loading branch information
AlexDunn committed Sep 3, 2024
1 parent ac93ae0 commit 62a7625
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dxvk/dxvk_cs.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ namespace dxvk {
* Stores a list of commands.
*/
class DxvkCsChunk : public RcObject {
constexpr static size_t MaxBlockSize = 16384;
// NV-DXVK start: we tend to send a lot less data through CS than vanilla DXVK bigger numbers increase CS latency
constexpr static size_t MaxBlockSize = 4096;
// NV-DXVK end
public:

DxvkCsChunk();
Expand Down

0 comments on commit 62a7625

Please sign in to comment.