Multithreading RayTracer generating artifacts with two different algorithms
问题 I have been trying to implement multithreading with my RayTracer, but I am experimenting strange artifacts related to MT. Now I am sure that is not algorithm related, because its happening with two different approaches. Bellow is what happening with a MT algorithm where the first thread takes care of the lower half of the image and the other the top half. In first case I send the thread0 to return before doing anything, in the second case, the thread1 returns. Working as expected. Now with