Permalink
Browse files

GPU buffer oriented: increase ray bounce group size from 64 to 256; 1…

…25 -> 147 Mray/s
  • Loading branch information...
aras-p committed Apr 24, 2018
1 parent 9243f0a commit 326ec92b82b317186ca7dbc70c0f15a01ca32e38
Showing with 2 additions and 2 deletions.
  1. +1 −1 Cpp/Source/Config.h
  2. +1 −1 Cpp/Windows/ComputeShaderBounce.hlsl
@@ -17,7 +17,7 @@
#define DO_COMPUTE_GPU 1
#define kCSGroupSizeX 16
#define kCSGroupSizeY 16
#define kCSRayBatchSize 64
#define kCSRayBatchSize 256
// Should float3 struct use SSE?
#define DO_FLOAT3_WITH_SSE (!(DO_COMPUTE_GPU) && 1)
@@ -8,7 +8,7 @@ void main(uint3 gid : SV_DispatchThreadID, uint3 tid : SV_GroupThreadID)
{
if (tid.x == 0)
s_RayCounter = 0;
GroupMemoryBarrier();
GroupMemoryBarrierWithGroupSync();
Params params = g_Params[0];
uint rngState = (gid.x * 9781 + params.frames * 6271) | 1;

0 comments on commit 326ec92

Please sign in to comment.