From 6842d96a7ec31d3ec192c715fee45e895ed01a48 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sun, 11 Mar 2018 13:13:38 +0100 Subject: Decouple y and x value based on iteration. Should approximately square teh available randomness! --- BuddhaTest/src/BuddhaTest.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'BuddhaTest/src') 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 -- cgit v1.2.3