Relative Content

Tag Archive for c++multithreadingparallel-processingsfml

How can I add parallelism to nested loops here?

I am currently developing a c++ minecraft clone in sfml and am trying to implement parallelism for rendering and modifying the chunks using a thread pool. The main issue I am currently facing is how to efficiently implement this. Currently the function which handles rendering and modifying chunks data (changing octaves, persistence, frequency in the perlin noise value) uses two nested for loops and I would like to try to run these operations in parallel such that I can modify the chunks noise much faster, as now its slow when I have > 100 chunks created.