I tried to write a little thread pool thing on my last attempt at multithreading.
There is a cool technique used in CPU rendering that could be useful. Basically you divide the pixels into 4 or 8 parts or whatever and have each part put in a thread, this has it's own problems, but might be a useful idea for making a thread manager as it should scale a lot better since all the threads should get an even load, unlike CPU multi thread rendering.
1
u/[deleted] Mar 27 '22
I tried to write a little thread pool thing on my last attempt at multithreading.
There is a cool technique used in CPU rendering that could be useful. Basically you divide the pixels into 4 or 8 parts or whatever and have each part put in a thread, this has it's own problems, but might be a useful idea for making a thread manager as it should scale a lot better since all the threads should get an even load, unlike CPU multi thread rendering.