aboutsummaryrefslogtreecommitdiff
path: root/BuddhaTest/src
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-11 13:13:38 +0100
committerAndreas Grois <andi@grois.info>2018-03-11 13:13:38 +0100
commit6842d96a7ec31d3ec192c715fee45e895ed01a48 (patch)
tree37ee507667a7be6791e3988574aa8b41116699d3 /BuddhaTest/src
parente15f1717aa9d58623113585c1d25473bdf793f11 (diff)
Decouple y and x value based on iteration. Should approximately square
teh available randomness!
Diffstat (limited to 'BuddhaTest/src')
-rw-r--r--BuddhaTest/src/BuddhaTest.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/BuddhaTest/src/BuddhaTest.cpp b/BuddhaTest/src/BuddhaTest.cpp
index c29a220..a03e8e8 100644
--- a/BuddhaTest/src/BuddhaTest.cpp
+++ b/BuddhaTest/src/BuddhaTest.cpp
@@ -126,9 +126,20 @@ int main(int argc, char * argv[])
glClearColor(0.0f, 0.0f, 0.4f, 0.0f);
+ //uint32_t iterationsPerFrame = settings.globalWorkGroupSizeX*settings.globalWorkGroupSizeY*settings.globalWorkGroupSizeZ*settings.localWorkgroupSizeX*settings.localWorkgroupSizeY*settings.localWorkgroupSizeZ;
+ //bool bWarningShown{false};
+
/* Loop until the user closes the window */
while (!glfwWindowShouldClose(window))
{
+ //commented out, as with the new y-decoupling we will get more points in 2D even after we had all integer values for x.
+ //check if we are "done"
+ //if(iterationsPerFrame * iterationCount <= iterationsPerFrame && iterationCount > 1 && !bWarningShown)
+ //{
+ // std::cout << "The program covered all possible integer values for starting point computation. Leaving it running will not improve the image any more." << std::endl;
+ // bWarningShown = true;
+ //}
+
//let the compute shader do something
glUseProgram(ComputeShader);
//increase iterationCount, which is used for pseudo random generation