diff options
author | Andreas Grois <andi@grois.info> | 2018-03-17 08:56:53 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-17 08:56:53 +0100 |
commit | 5d0467629625f8a092ac2ef8ba5f30c629cc8b62 (patch) | |
tree | 6dbc1693c164ba442ae0b3bd92643c4194b17e47 /BuddhaTest/src/BuddhaTest.cpp | |
parent | 48fe1f1aad00f31d44b6814213ae89462bd39176 (diff) |
Improve parallelization by not storing the offset, but instead re-calculating it every dispatch.
By this I could get the VGPR usage down from 40 to 36.
Diffstat (limited to 'BuddhaTest/src/BuddhaTest.cpp')
-rw-r--r-- | BuddhaTest/src/BuddhaTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BuddhaTest/src/BuddhaTest.cpp b/BuddhaTest/src/BuddhaTest.cpp index 24f5893..14f4dd3 100644 --- a/BuddhaTest/src/BuddhaTest.cpp +++ b/BuddhaTest/src/BuddhaTest.cpp @@ -127,7 +127,7 @@ int main(int argc, char * argv[]) GLuint stateBuffer;
glGenBuffers(1,&stateBuffer);
glBindBuffer(GL_SHADER_STORAGE_BUFFER,stateBuffer);
- glBufferData(GL_SHADER_STORAGE_BUFFER, 4*(7*workersPerFrame),nullptr,GL_DYNAMIC_COPY);
+ glBufferData(GL_SHADER_STORAGE_BUFFER, 4*(5*workersPerFrame),nullptr,GL_DYNAMIC_COPY);
glClearBufferData(GL_SHADER_STORAGE_BUFFER,GL_R8,GL_RED,GL_UNSIGNED_INT,nullptr);
glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 5, stateBuffer);
|