Skip to content
Snippets Groups Projects
Commit 125f85fb authored by Patrick Teufel's avatar Patrick Teufel
Browse files

good performance

parent a1bac3b7
Branches
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ void SceneParticles::render()
computeProg.setUniform("BlackHolePos1", bh1);
computeProg.setUniform("BlackHolePos2", bh2);
// TODO: (3) Compute Space auf 3 Dimensionen erhhen
glDispatchCompute(nParticles.x / 10, nParticles.y / 10, nParticles.z / 10);
glDispatchCompute(40, 25, 1);
glMemoryBarrier(GL_SHADER_STORAGE_BARRIER_BIT);
// Draw the scene
......
#version 430
layout( local_size_x = 10, local_size_y = 10, local_size_z = 10 ) in;
layout( local_size_x = 1, local_size_y = 1000, local_size_z = 1 ) in;
layout(std430, binding=0) buffer Pos {
vec4 Position[];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment